diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-13 22:21:07 +1000 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-04-13 22:21:07 +1000 |
| commit | b8951025635edc3c291d39bbab9f248e8c3de720 (patch) | |
| tree | 1362e4efd96652d058ed1f4b4e56370aa43c64fc /inc/template.php | |
| parent | a9bdc6eeb7f6dfa462d0400c51ffd37f562a8be2 (diff) | |
block loading include files directly
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
|
