summaryrefslogtreecommitdiff
path: root/inc/functions.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-06 20:12:04 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-06 20:12:04 +1000
commit7f0de936082fb35d4e18fbadfe9849acdfc03ab6 (patch)
tree37bc90513d794dbe804aae05837109af00e035be /inc/functions.php
parent8a244ab61e7e45f65667a8330b5d61fe918bffb2 (diff)
Cleaner check to make sure inc/ files aren't accessed directly.
Diffstat (limited to 'inc/functions.php')
-rw-r--r--inc/functions.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 918a6ea9..9601c0f8 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -9,6 +9,8 @@ if (realpath($_SERVER['SCRIPT_FILENAME']) == str_replace('\\', '/', __FILE__)) {
exit;
}
+define('TINYBOARD', null);
+
$microtime_start = microtime(true);
require_once 'inc/display.php';