1st commit for syncing own Jlog developments with master

This commit is contained in:
RobbBienert 2024-10-04 16:40:09 +02:00
parent 2ae67af572
commit 517c58344d
54 changed files with 1784 additions and 1062 deletions

View file

@ -8,7 +8,7 @@
class MiniAntispam extends JlogPlugin {
function hook_commentForm($form) {
function hook_commentForm($form, $cf) {
$uid = $this->generate_uid();
$uid_inputs = "\n ".'<input type="hidden" name="privatkey" value="'.$uid.'" />';
$uid_inputs .= "\n ".'<input type="text" style="display: none;" name="publickey" value="'.$uid.'" />';
@ -29,7 +29,7 @@ class MiniAntispam extends JlogPlugin {
$uid = '';
mt_srand((double)microtime()*1000000);
for($i=0; $i < $len; $i++) $uid .= $acceptedChars{ mt_rand(0, $maxchar) };
for($i=0; $i < $len; $i++) $uid .= $acceptedChars[mt_rand(0, $maxchar)];
return $uid;
}