diff options
Diffstat (limited to 'inc/template.php')
| -rw-r--r-- | inc/template.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/inc/template.php b/inc/template.php index e0761d6a..e966a057 100644 --- a/inc/template.php +++ b/inc/template.php @@ -1,8 +1,9 @@ <?php
-
- // PHP Template Preprocessor by Savetheinternet
- // http://codecanyon.net/user/Savetheinternet
- // savetheinternet@n0v4.com
+ if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
+ // You cannot request this file directly.
+ header('Location: ../', true, 302);
+ exit;
+ }
// -----------------------------------------------------
// Standard configuration
|
