summary refs log tree commit diff stats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/footer.php9
-rwxr-xr-xincludes/functions.php4
-rwxr-xr-xincludes/header.php11
-rwxr-xr-xincludes/updatePending.php2
4 files changed, 10 insertions, 16 deletions
diff --git a/includes/footer.php b/includes/footer.php index 09be74f..8cb0f2d 100755 --- a/includes/footer.php +++ b/includes/footer.php
@@ -111,7 +111,8 @@ if (!isset($noRightbar))
111 $getpost2 = mysql_query($getpost); 111 $getpost2 = mysql_query($getpost);
112 $getpost3 = mysql_fetch_array($getpost2); 112 $getpost3 = mysql_fetch_array($getpost2);
113 113
114 $template->adds_block('COMMENTS', array( 'AREA' => 'blog', 114 $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'],
115 'AREA' => 'blog',
115 'CODED' => $getpost3['slug'], 116 'CODED' => $getpost3['slug'],
116 'ENDING' => '/', 117 'ENDING' => '/',
117 'TITLE' => stripslashes($getpost3['title']), 118 'TITLE' => stripslashes($getpost3['title']),
@@ -121,7 +122,8 @@ if (!isset($noRightbar))
121 { 122 {
122 $num = substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1); 123 $num = substr($getcomments3[$i]['page_id'],strpos($getcomments3[$i]['page_id'],'-')+1);
123 124
124 $template->adds_block('COMMENTS', array( 'AREA' => 'quotes', 125 $template->adds_block('COMMENTS', array( 'ID' => $getcomments3[$i]['id'],
126 'AREA' => 'quotes',
125 'CODED' => $num, 127 'CODED' => $num,
126 'ENDING' => '.php', 128 'ENDING' => '.php',
127 'TITLE' => 'Quote #' . $num, 129 'TITLE' => 'Quote #' . $num,
@@ -208,6 +210,9 @@ if (!isset($noRightbar))
208 } 210 }
209} 211}
210 212
213$template->add('REDIRPAGE',rawurlencode($_SERVER['REQUEST_URI']));
214$template->add('LOGDATA',echoLogData());
215
211$template->display(); 216$template->display();
212 217
213?> 218?>
diff --git a/includes/functions.php b/includes/functions.php index c377c29..e7b7537 100755 --- a/includes/functions.php +++ b/includes/functions.php
@@ -63,9 +63,9 @@ function generateError($error)
63function echoLogData() 63function echoLogData()
64{ 64{
65 if (!isLoggedIn()) { 65 if (!isLoggedIn()) {
66 return('Login'); 66 return('in');
67 } else { 67 } else {
68 return('Logout'); 68 return('out');
69 } 69 }
70} 70}
71 71
diff --git a/includes/header.php b/includes/header.php index 3bedbd7..e9f31f6 100755 --- a/includes/header.php +++ b/includes/header.php
@@ -45,17 +45,6 @@ $headerTemp->add('HEADTAGS',isset($headtags) ? $headtags : '');
45$headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : ''); 45$headerTemp->add('EXTRATITLE',isset($title) ? ($title . ' - ') : '');
46$headerTemp->add('PAGEID',(isset($pageID)) ? $pageID : 'none'); 46$headerTemp->add('PAGEID',(isset($pageID)) ? $pageID : 'none');
47 47
48if (!isset($noMembers))
49{
50 $headerTemp->add('LOWERLOGDATA',strtolower(echoLogData()));
51 $headerTemp->add('REDIRPAGE',rawurlencode($_SERVER['REQUEST_URI']));
52 $headerTemp->add('LOGDATA',echoLogData());
53 if (getUserlevel() < 3)
54 {
55 $headerTemp->adds_block('PANEL',array('exi'=>1));
56 }
57}
58
59if (isset($_POST['message'])) 48if (isset($_POST['message']))
60{ 49{
61 $headerTemp->adds_block('MESSAGE',array('MSG' => $_POST['message'])); 50 $headerTemp->adds_block('MESSAGE',array('MSG' => $_POST['message']));
diff --git a/includes/updatePending.php b/includes/updatePending.php index a96a2b6..08c46e8 100755 --- a/includes/updatePending.php +++ b/includes/updatePending.php
@@ -22,7 +22,7 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22 22
23require('headerproc.php'); 23require('headerproc.php');
24 24
25//$disablePendingQueue = 1; // Use this when Four Island goes down 25$disablePendingQueue = 1; // Use this when Four Island goes down
26 26
27if (!isset($disablePendingQueue)) 27if (!isset($disablePendingQueue))
28{ 28{