Browse Source

don't print START every time to the debug file (unless print_err is not commented out)

pull/40/head
towards-a-new-leftypol 3 years ago
parent
commit
ab09d5dfd8
  1. 3
      inc/anti-bot.php

3
inc/anti-bot.php

@ -9,7 +9,6 @@ defined('TINYBOARD') or exit;
$hidden_inputs_twig = array();
$logfile = "/tmp/lainchan_err.out";
file_put_contents($logfile, "\n\nSTART\n\n", FILE_APPEND);
function print_err($s) {
// global $logfile;
@ -20,6 +19,8 @@ function print_err2($s) {
print_err($s);
}
print_err("\n\nSTART\n\n");
class AntiBot {
public $salt, $inputs = array(), $index = 0;

Loading…
Cancel
Save