summaryrefslogtreecommitdiff
path: root/inc/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/cache.php')
-rw-r--r--inc/cache.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/cache.php b/inc/cache.php
index 3881672e..e29b282d 100644
--- a/inc/cache.php
+++ b/inc/cache.php
@@ -1,5 +1,14 @@
<?php
+/*
+ * Copyright (c) 2010-2012 Tinyboard Development Group
+ */
+
+if(realpath($_SERVER['SCRIPT_FILENAME']) == str_replace('\\', '/', __FILE__)) {
+ // You cannot request this file directly.
+ exit;
+}
+
class Cache {
private static $cache;
public static function init() {