summaryrefslogtreecommitdiff
path: root/inc/anti-bot.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/anti-bot.php')
-rw-r--r--inc/anti-bot.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/inc/anti-bot.php b/inc/anti-bot.php
index 41e0a1d6..dbe87e2b 100644
--- a/inc/anti-bot.php
+++ b/inc/anti-bot.php
@@ -4,10 +4,7 @@
* Copyright (c) 2010-2013 Tinyboard Development Group
*/
-if (realpath($_SERVER['SCRIPT_FILENAME']) == str_replace('\\', '/', __FILE__)) {
- // You cannot request this file directly.
- exit;
-}
+defined('TINYBOARD') or exit;
$hidden_inputs_twig = array();