summary refs log tree commit diff stats
path: root/includes/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/header.php')
-rwxr-xr-xincludes/header.php47
1 files changed, 25 insertions, 22 deletions
diff --git a/includes/header.php b/includes/header.php index 427ad93..5a6b8e2 100755 --- a/includes/header.php +++ b/includes/header.php
@@ -24,31 +24,10 @@ require('headerproc.php');
24 24
25$headerTemp = new FITemplate('header'); 25$headerTemp = new FITemplate('header');
26 26
27if (!isset($_GET['emulateTime']))
28{
29 if ((date('G') >= 20) || (date('G') <= 6))
30 {
31 $bodyID = 'night';
32 } else {
33 $bodyID = 'day';
34 }
35} else {
36 $bodyID = $_GET['emulateTime'];
37}
38
39$headerTemp->add('BODYID',$bodyID);
40$headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none'); 27$headerTemp->add('CATEGORY',(isset($pageCategory)) ? $pageCategory : 'none');
41$headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none'); 28$headerTemp->add('AID',(isset($pageAID)) ? $pageAID : 'none');
42$headerTemp->add('BODYTAGS',(isset($bodyTags)) ? $bodyTags : '');
43$headerTemp->add('HEADTAGS',isset($headtags) ? $headtags : '');
44$headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); 29$headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : '');
45$headerTemp->add('PAGEID',(isset($pageID)) ? $pageID : 'none'); 30$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' class="active"');
46$headerTemp->add(strtoupper($pageCategory) . 'ACTIVE', ' CLASS="active"');
47
48if (isset($_POST['message']))
49{
50 $headerTemp->adds_block('MESSAGE',array('MSG' => $_POST['message']));
51}
52 31
53if (($pageCategory != 'fourm') && ($pageCategory != 'wiki')) 32if (($pageCategory != 'fourm') && ($pageCategory != 'wiki'))
54{ 33{
@@ -63,6 +42,30 @@ if (($pageCategory != 'fourm') && ($pageCategory != 'wiki'))
63 } 42 }
64} 43}
65 44
45if (isset($hatNav) && is_array($hatNav))
46{
47 $headerTemp->adds_block('CREATE_HATNAV', array('exi'=>1));
48
49 foreach ($hatNav as $item)
50 {
51 $headerTemp->adds_block('HATNAV',array('TITLE' => $item['title'], 'URL' => $item['url'], 'ICON' => $item['icon']));
52 }
53}
54
55$headerTemp->add('POTW', getPollOfTheWeek());
56
57$gethits = "SELECT * FROM config WHERE name = \"hits\"";
58$gethits2 = mysql_query($gethits);
59$gethits3 = mysql_fetch_array($gethits2);
60$headerTemp->add('HITS', $gethits3['value']);
61
62$gethits = "SELECT * FROM config WHERE name = \"todayHits\"";
63$gethits2 = mysql_query($gethits);
64$gethits3 = mysql_fetch_array($gethits2);
65$headerTemp->add('TODAY', $gethits3['value']);
66
67$headerTemp->add('DATEFINDER', sd_dateFinder());
68
66$headerTemp->display(); 69$headerTemp->display();
67 70
68?> 71?>