diff options
Diffstat (limited to 'includes/header.php')
| -rwxr-xr-x | includes/header.php | 147 |
1 files changed, 76 insertions, 71 deletions
| diff --git a/includes/header.php b/includes/header.php index 5a6b8e2..ae39bad 100755 --- a/includes/header.php +++ b/includes/header.php | |||
| @@ -1,71 +1,76 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | /* | 2 | /* |
| 3 | 444444444 | 3 | 444444444 |
| 4 | 4::::::::4 | 4 | 4::::::::4 |
| 5 | 4:::::::::4 | 5 | 4:::::::::4 |
| 6 | 4::::44::::4 | 6 | 4::::44::::4 |
| 7 | 4::::4 4::::4 Four Island | 7 | 4::::4 4::::4 Four Island |
| 8 | 4::::4 4::::4 | 8 | 4::::4 4::::4 |
| 9 | 4::::4 4::::4 Written and maintained by Starla Insigna | 9 | 4::::4 4::::4 Written and maintained by Starla Insigna |
| 10 | 4::::444444::::444 | 10 | 4::::444444::::444 |
| 11 | 4::::::::::::::::4 includes/header.php | 11 | 4::::::::::::::::4 includes/header.php |
| 12 | 4444444444:::::444 | 12 | 4444444444:::::444 |
| 13 | 4::::4 Please do not use, reproduce or steal the | 13 | 4::::4 Please do not use, reproduce or steal the |
| 14 | 4::::4 contents of this file without explicit | 14 | 4::::4 contents of this file without explicit |
| 15 | 4::::4 permission from Hatkirby. | 15 | 4::::4 permission from Hatkirby. |
| 16 | 44::::::44 | 16 | 44::::::44 |
| 17 | 4::::::::4 | 17 | 4::::::::4 |
| 18 | 4444444444 | 18 | 4444444444 |
| 19 | */ | 19 | */ |
| 20 | 20 | ||
| 21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | 21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} |
| 22 | 22 | ||
| 23 | require('headerproc.php'); | 23 | require('headerproc.php'); |
| 24 | 24 | ||
| 25 | $headerTemp = new FITemplate('header'); | 25 | $headerTemp = new FITemplate('header'); |
| 26 | 26 | ||
| 27 | $headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); | 27 | $headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); |
| 28 | $headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); | 28 | $headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); |
| 29 | $headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); | 29 | $headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); |
| 30 | $headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"'); | 30 | $headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"'); |
| 31 | 31 | ||
| 32 | if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) | 32 | if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) |
| 33 | { | 33 | { |
| 34 | $headerTemp->add('REDIRPAGE',rawurlencode($_SERVER['REQUEST_URI'])); | 34 | $headerTemp->add('REDIRPAGE',rawurlencode($_SERVER['REQUEST_URI'])); |
| 35 | $headerTemp->add('LOGDATA',echoLogData()); | 35 | $headerTemp->add('LOGDATA',echoLogData()); |
| 36 | $headerTemp->add('SID',getSessionID()); | 36 | $headerTemp->add('SID',getSessionID()); |
| 37 | $headerTemp->adds_block('MEMBERS',array('exi' => 1)); | 37 | $headerTemp->adds_block('MEMBERS',array('exi' => 1)); |
| 38 | 38 | ||
| 39 | if (isAdmin()) | 39 | if (isAdmin()) |
| 40 | { | 40 | { |
| 41 | $headerTemp->adds_block('ADMIN',array('exi' => 1)); | 41 | $headerTemp->adds_block('ADMIN',array('exi' => 1)); |
| 42 | } | 42 | } |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | if (isset($hatNav) && is_array($hatNav)) | 45 | if (isset($hatNav) && is_array($hatNav)) |
| 46 | { | 46 | { |
| 47 | $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1)); | 47 | $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1)); |
| 48 | 48 | ||
| 49 | foreach ($hatNav as $item) | 49 | foreach ($hatNav as $item) |
| 50 | { | 50 | { |
| 51 | $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); | 51 | $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); |
| 52 | } | 52 | } |
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | $headerTemp->add('POTW', getPollOfTheWeek()); | 55 | $headerTemp->add('POTW', getPollOfTheWeek()); |
| 56 | 56 | ||
| 57 | $gethits = "SELECT * FROM config WHERE name = \"hits\""; | 57 | $gethits = "SELECT * FROM config WHERE name = \"hits\""; |
| 58 | $gethits2 = mysql_query($gethits); | 58 | $gethits2 = mysql_query($gethits); |
| 59 | $gethits3 = mysql_fetch_array($gethits2); | 59 | $gethits3 = mysql_fetch_array($gethits2); |
| 60 | $headerTemp->add('HITS', $gethits3['value']); | 60 | $headerTemp->add('HITS', $gethits3['value']); |
| 61 | 61 | ||
| 62 | $gethits = "SELECT * FROM config WHERE name = \"todayHits\""; | 62 | $gethits = "SELECT * FROM config WHERE name = \"todayHits\""; |
| 63 | $gethits2 = mysql_query($gethits); | 63 | $gethits2 = mysql_query($gethits); |
| 64 | $gethits3 = mysql_fetch_array($gethits2); | 64 | $gethits3 = mysql_fetch_array($gethits2); |
| 65 | $headerTemp->add('TODAY', $gethits3['value']); | 65 | $headerTemp->add('TODAY', $gethits3['value']); |
| 66 | 66 | ||
| 67 | $headerTemp->add('DATEFINDER', sd_dateFinder()); | 67 | $headerTemp->add('DATEFINDER', sd_dateFinder()); |
| 68 | 68 | ||
| 69 | $headerTemp->display(); | 69 | if ($usingIE) |
| 70 | 70 | { | |
| 71 | ?> | 71 | $headerTemp->add('FLASH', 'It appears you are using Internet Explorer. Four Island is not likely to work properly in IE due to a <a href="http://www.webdevout.net/articles/beware-of-xhtml#ie">huge bug</a> in it. <a href="http://getfirefox.com/">There are better browsers out there, why not try one?</a>'); |
| 72 | } | ||
| 73 | |||
| 74 | $headerTemp->display(); | ||
| 75 | |||
| 76 | ?> | ||
