5 | | $page = str_replace(".", "", $_GET['a']); |
6 | | $page = str_replace("/", "", $page); |
7 | | |
8 | | require_once("config.php"); |
9 | | |
10 | | $killboard = new Killboard(KB_SITE); |
11 | | //if ($killboard->isSuspended()) |
12 | | // $page = "suspended"; |
13 | | |
14 | | if (substr($_SERVER['HTTP_USER_AGENT'], 0, 15) == "EVE-minibrowser" && $page != "igb" && $page != "post_igb" && $page != "portrait_grab" && $page != "bills") |
15 | | $page = "igb"; |
16 | | |
17 | | if ($page == "") |
18 | | $page = "home"; |
19 | | if(substr($page,0,9) == "settings_"){ |
20 | | $settingsPage = true; |
| 5 | $page = str_replace('.', '', $_GET['a']); |
| 6 | $page = str_replace('/', '', $page); |
| 7 | if ($page == '') |
| 8 | { |
| 9 | $page = 'home'; |
22 | | $config = $killboard->getConfig(); |
23 | | $mods_active = explode(",",$config->getConfig("mods_active")); |
24 | | $modOverrides = false; |
25 | | foreach($mods_active as $mod){ |
26 | | if(file_exists("mods/$mod/$page.php")){ |
27 | | if($modOverrides) die("Error: Two or more of the mods you have activated are conflicting"); |
28 | | $modOverrides = true; |
29 | | $modOverride = $mod; |
30 | | } |
31 | | } |
32 | | if(!$settingsPage && !file_exists("common/".$page.".php") && !$modOverrides){ |
33 | | $page = "home"; |
| 11 | if (substr($_SERVER['HTTP_USER_AGENT'], 0, 15) == 'EVE-minibrowser' && $page != 'igb' && $page != 'post_igb' && $page != 'portrait_grab' && $page != 'bills') |
| 12 | { |
| 13 | $page = 'igb'; |
36 | | if (KB_CACHE == 1 && count($_POST) == 0 && !in_array($page, $cacheignore)) $docache = true; |
| 16 | require_once('config.php'); |
| 17 | $killboard = new Killboard(KB_SITE); |
| 18 | $config = $killboard->getConfig(); |
| 19 | // if ($killboard->isSuspended()) |
| 20 | // $page = 'suspended'; |
| 21 | |
| 22 | if (substr($page, 0, 9) == 'settings_') |
| 23 | { |
| 24 | $settingsPage = true; |
| 25 | } |
| 26 | $mods_active = explode(',', $config->getConfig('mods_active')); |
| 27 | $modOverrides = false; |
| 28 | foreach ($mods_active as $mod) |
| 29 | { |
| 30 | if (file_exists('mods/'.$mod.'/'.$page.'.php')) |
| 31 | { |
| 32 | if ($modOverrides) |
| 33 | { |
| 34 | die('Error: Two or more of the mods you have activated are conflicting'); |
| 35 | } |
| 36 | $modOverrides = true; |
| 37 | $modOverride = $mod; |
| 38 | } |
| 39 | } |
| 40 | if (!$settingsPage && !file_exists('common/'.$page.'.php') && !$modOverrides) |
| 41 | { |
| 42 | $page = 'home'; |
| 43 | } |
| 44 | |
| 45 | if (KB_CACHE == 1 && count($_POST) == 0 && !in_array($page, $cacheignore)) |
| 46 | { |
| 47 | $docache = true; |
| 48 | } |