From 6a1d5b60e6ec541a36727b84b71168f62221f7d7 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 9 Aug 2009 13:46:55 -0400 Subject: Added IE support Because IE doesn't support XHTML, Four Island checks to see if the browser is IE and if it is, changes the Content Type to HTML. It also displays a warning at the top of the screen telling the user that their browsing experience will be much better with a better browser. --- includes/header.php | 147 +++++++++++++++++++++++++++------------------------- 1 file changed, 76 insertions(+), 71 deletions(-) (limited to 'includes') 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 @@ -add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); -$headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); -$headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); -$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"'); - -if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) -{ - $headerTemp->add('REDIRPAGE',rawurlencode($_SERVER['REQUEST_URI'])); - $headerTemp->add('LOGDATA',echoLogData()); - $headerTemp->add('SID',getSessionID()); - $headerTemp->adds_block('MEMBERS',array('exi' => 1)); - - if (isAdmin()) - { - $headerTemp->adds_block('ADMIN',array('exi' => 1)); - } -} - -if (isset($hatNav) && is_array($hatNav)) -{ - $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1)); - - foreach ($hatNav as $item) - { - $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); - } -} - -$headerTemp->add('POTW', getPollOfTheWeek()); - -$gethits = "SELECT * FROM config WHERE name = \"hits\""; -$gethits2 = mysql_query($gethits); -$gethits3 = mysql_fetch_array($gethits2); -$headerTemp->add('HITS', $gethits3['value']); - -$gethits = "SELECT * FROM config WHERE name = \"todayHits\""; -$gethits2 = mysql_query($gethits); -$gethits3 = mysql_fetch_array($gethits2); -$headerTemp->add('TODAY', $gethits3['value']); - -$headerTemp->add('DATEFINDER', sd_dateFinder()); - -$headerTemp->display(); - -?> +add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); +$headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); +$headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); +$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"'); + +if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) +{ + $headerTemp->add('REDIRPAGE',rawurlencode($_SERVER['REQUEST_URI'])); + $headerTemp->add('LOGDATA',echoLogData()); + $headerTemp->add('SID',getSessionID()); + $headerTemp->adds_block('MEMBERS',array('exi' => 1)); + + if (isAdmin()) + { + $headerTemp->adds_block('ADMIN',array('exi' => 1)); + } +} + +if (isset($hatNav) && is_array($hatNav)) +{ + $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1)); + + foreach ($hatNav as $item) + { + $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon'])); + } +} + +$headerTemp->add('POTW', getPollOfTheWeek()); + +$gethits = "SELECT * FROM config WHERE name = \"hits\""; +$gethits2 = mysql_query($gethits); +$gethits3 = mysql_fetch_array($gethits2); +$headerTemp->add('HITS', $gethits3['value']); + +$gethits = "SELECT * FROM config WHERE name = \"todayHits\""; +$gethits2 = mysql_query($gethits); +$gethits3 = mysql_fetch_array($gethits2); +$headerTemp->add('TODAY', $gethits3['value']); + +$headerTemp->add('DATEFINDER', sd_dateFinder()); + +if ($usingIE) +{ + $headerTemp->add('FLASH', 'It appears you are using Internet Explorer. Four Island is not likely to work properly in IE due to a huge bug in it. There are better browsers out there, why not try one?'); +} + +$headerTemp->display(); + +?> -- cgit 1.4.1