From ab09d5dfd881dfa7e443ab21951307255979e50f Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Tue, 29 Dec 2020 20:12:43 -0500 Subject: [PATCH] don't print START every time to the debug file (unless print_err is not commented out) --- inc/anti-bot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/anti-bot.php b/inc/anti-bot.php index d2b6d467..b6be5e60 100644 --- a/inc/anti-bot.php +++ b/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;