diff options
Diffstat (limited to 'includes/layout.php')
-rw-r--r-- | includes/layout.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/includes/layout.php b/includes/layout.php index 8e92256..ffe1aa6 100644 --- a/includes/layout.php +++ b/includes/layout.php | |||
@@ -22,21 +22,6 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | |||
22 | 22 | ||
23 | require('headerproc.php'); | 23 | require('headerproc.php'); |
24 | 24 | ||
25 | if (isset($_GET['layout'])) | ||
26 | { | ||
27 | if (!file_exists('theme/layouts/' . basename($_GET['layout']))) | ||
28 | { | ||
29 | $_GET['layout'] = '7'; | ||
30 | } | ||
31 | |||
32 | setcookie('layout', $_GET['layout'], time()+60*60*24*30, '/', '.fourisland.com'); | ||
33 | |||
34 | unset($_GET['layout']); | ||
35 | |||
36 | header('Location: ' . getRewriteURL()); | ||
37 | exit; | ||
38 | } | ||
39 | |||
40 | $template = new FITemplate('layouts/' . getLayout() . '/layout'); | 25 | $template = new FITemplate('layouts/' . getLayout() . '/layout'); |
41 | 26 | ||
42 | $template->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); | 27 | $template->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); |