forked from leftypol/leftypol
Remove useless debug messages
lainchan was a mistake
This commit is contained in:
parent
c388081617
commit
2f64d7edff
5 changed files with 0 additions and 40 deletions
|
@ -8,19 +8,6 @@ defined('TINYBOARD') or exit;
|
|||
|
||||
$hidden_inputs_twig = array();
|
||||
|
||||
$logfile = "/tmp/lainchan_err.out";
|
||||
|
||||
function print_err($s) {
|
||||
// global $logfile;
|
||||
// file_put_contents($logfile, $s . "\n", FILE_APPEND);
|
||||
}
|
||||
|
||||
function print_err2($s) {
|
||||
print_err($s);
|
||||
}
|
||||
|
||||
print_err("\n\nSTART\n\n");
|
||||
|
||||
class AntiBot {
|
||||
public $salt, $inputs = array(), $index = 0;
|
||||
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
|
||||
defined('TINYBOARD') or exit;
|
||||
|
||||
require_once 'inc/anti-bot.php';
|
||||
|
||||
class Filter {
|
||||
public $flood_check;
|
||||
private $condition;
|
||||
|
@ -19,7 +17,6 @@ class Filter {
|
|||
}
|
||||
|
||||
public function match($condition, $match) {
|
||||
print_err("Filter condition: " . $condition);
|
||||
$condition = strtolower($condition);
|
||||
|
||||
$post = &$this->post;
|
||||
|
@ -220,8 +217,6 @@ function purge_flood_table() {
|
|||
function do_filters(array $post) {
|
||||
global $config;
|
||||
|
||||
print_err("do_filters begin");
|
||||
|
||||
if (!isset($config['filters']) || empty($config['filters']))
|
||||
return;
|
||||
|
||||
|
@ -239,7 +234,6 @@ function do_filters(array $post) {
|
|||
}
|
||||
|
||||
foreach ($config['filters'] as $filter_array) {
|
||||
print_err("creating new filter, running check");
|
||||
$filter = new Filter($filter_array);
|
||||
$filter->flood_check = $flood_check;
|
||||
if ($filter->check($post)) {
|
||||
|
|
|
@ -357,7 +357,6 @@ function define_groups() {
|
|||
function create_antibot($board, $thread = null) {
|
||||
require_once dirname(__FILE__) . '/anti-bot.php';
|
||||
|
||||
print_err("Create Antibot.");
|
||||
return _create_antibot($board, $thread);
|
||||
}
|
||||
|
||||
|
@ -1624,7 +1623,6 @@ function checkSpam(array $extra_salt = array()) {
|
|||
|
||||
// Iterate through each input
|
||||
foreach ($inputs as $name => $value) {
|
||||
print_err("-> " . $name . ' : ' . $value);
|
||||
$_hash .= $name . '=' . $value;
|
||||
}
|
||||
|
||||
|
@ -1635,7 +1633,6 @@ function checkSpam(array $extra_salt = array()) {
|
|||
$_hash = sha1($_hash . $extra_salt);
|
||||
|
||||
if ($hash != $_hash) {
|
||||
print_err("Hash mismatch");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,8 +6,6 @@
|
|||
|
||||
defined('TINYBOARD') or exit;
|
||||
|
||||
require_once 'inc/anti-bot.php'; // DELETE ME THIS IS FOR print_err function only!
|
||||
|
||||
function mod_page($title, $template, $args, $subtitle = false) {
|
||||
global $config, $mod;
|
||||
|
||||
|
@ -2688,7 +2686,6 @@ function mod_new_pm($username) {
|
|||
|
||||
function mod_rebuild() {
|
||||
global $config, $twig;
|
||||
print_err("mod_rebuild");
|
||||
|
||||
if (!hasPermission($config['mod']['rebuild']))
|
||||
error($config['error']['noaccess']);
|
||||
|
@ -2713,9 +2710,7 @@ function mod_rebuild() {
|
|||
|
||||
if (isset($_POST['rebuild_themes'])) {
|
||||
$log[] = 'Regenerating theme files';
|
||||
print_err("mod_rebuild calling rebuildThemes");
|
||||
rebuildThemes('all');
|
||||
print_err("mod_rebuild calling rebuildThemes ok");
|
||||
}
|
||||
|
||||
if (isset($_POST['rebuild_javascript'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue