summary refs log tree commit diff stats
path: root/includes/footer.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/footer.php')
-rwxr-xr-xincludes/footer.php57
1 files changed, 30 insertions, 27 deletions
diff --git a/includes/footer.php b/includes/footer.php index be8dd1b..4daf35e 100755 --- a/includes/footer.php +++ b/includes/footer.php
@@ -37,32 +37,38 @@ if (!isset($noRightbar))
37 37
38 if (!isset($noHatNav)) 38 if (!isset($noHatNav))
39 { 39 {
40 $template->adds_block('USEHATNAV', array('exi'=>1)); 40 $cnthatnav = "SELECT COUNT(*) FROM hatnav WHERE category = \"" . $pageCategory . "\"";
41 if (!isset($genHatNav)) 41 $cnthatnav2 = mysql_query($cnthatnav);
42 $cnthatnav3 = mysql_fetch_array($cnthatnav2);
43
44 if ($cnthatnav3['COUNT(*)'] > 0)
42 { 45 {
43 $gethnis = 'SELECT * FROM hatnav WHERE category = "' . 46 $template->adds_block('USEHATNAV', array('exi'=>1));
44 $pageCategory . '"'; 47 if (!isset($genHatNav))
45 $gethnis2 = mysql_query($gethnis);
46 $i=0;
47 while ($gethnis3[$i] = mysql_fetch_array($gethnis2))
48 { 48 {
49 $template->adds_block('HATNAV', array( 'AID' => $gethnis3[$i]['AID'], 49 $gethnis = 'SELECT * FROM hatnav WHERE category = "' . $pageCategory . '"';
50 'HREF' => $gethnis3[$i]['href'], 50 $gethnis2 = mysql_query($gethnis);
51 'IMAGE' => '/theme/images/icons/' . $gethnis3[$i]['image'] . '.png', 51 $i=0;
52 'TEXT' => $gethnis3[$i]['text'], 52 while ($gethnis3[$i] = mysql_fetch_array($gethnis2))
53 'NEW' => dispIfNotOld($gethnis3[$i]['lastEdit']))); 53 {
54 $i++; 54 $template->adds_block('HATNAV', array( 'AID' => $gethnis3[$i]['AID'],
55 } 55 'HREF' => $gethnis3[$i]['href'],
56 } else { 56 'IMAGE' => '/theme/images/icons/' . $gethnis3[$i]['image'] . '.png',
57 $i=0; 57 'TEXT' => $gethnis3[$i]['text'],
58 while ($i < $genHatNavNum) 58 'NEW' => dispIfNotOld($gethnis3[$i]['lastEdit'])));
59 { 59 $i++;
60 $template->adds_block('HATNAV', array( 'AID' => 'post', 60 }
61 'HREF' => $genHatNav[$i]['href'], 61 } else {
62 'IMAGE' => '/theme/images/blue.PNG', 62 $i=0;
63 'TEXT' => $genHatNav[$i]['text'], 63 while ($i < $genHatNavNum)
64 'NEW' => '')); 64 {
65 $i++; 65 $template->adds_block('HATNAV', array( 'AID' => 'post',
66 'HREF' => $genHatNav[$i]['href'],
67 'IMAGE' => '/theme/images/blue.PNG',
68 'TEXT' => $genHatNav[$i]['text'],
69 'NEW' => ''));
70 $i++;
71 }
66 } 72 }
67 } 73 }
68 } 74 }
@@ -235,9 +241,6 @@ if (!isset($noRightbar))
235 } 241 }
236} 242}
237 243
238$template->add('REDIRPAGE',rawurlencode($_SERVER['REQUEST_URI']));
239$template->add('LOGDATA',echoLogData());
240
241$template->display(); 244$template->display();
242 245
243?> 246?>