summaryrefslogtreecommitdiff
path: root/execute.php
diff options
context:
space:
mode:
authorGuillaume Mazoyer <respawneral@gmail.com>2014-06-04 11:04:21 +0200
committerGuillaume Mazoyer <respawneral@gmail.com>2014-06-04 11:04:21 +0200
commit0269dccacb67f25beb39dac8f16fb3d5538c7782 (patch)
treea257d5ef3d49883ca9dd819622521ae43f491bee /execute.php
parent3b65c83a5e2ce34a27d104fdb3761cbea18cda90 (diff)
Little improvement for the logging function.
Log spamers into the logs file.
Diffstat (limited to 'execute.php')
-rw-r--r--execute.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/execute.php b/execute.php
index d927141..9761c57 100644
--- a/execute.php
+++ b/execute.php
@@ -25,6 +25,7 @@ require_once 'utils.php';
// Obvious spam
if (!isset($_POST['dontlook']) || !empty($_POST['dontlook'])) {
+ log_to_file('Spam detected from '.$_SERVER['REMOTE_ADDR'].'.');
die('Spam detected');
}