diff options
Diffstat (limited to 'pages/admin.php')
-rwxr-xr-x | pages/admin.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pages/admin.php b/pages/admin.php index 12a2d01..326cbdd 100755 --- a/pages/admin.php +++ b/pages/admin.php | |||
@@ -233,7 +233,7 @@ if (isLoggedIn()) | |||
233 | $template->adds_block('INTERNAL',array('exi'=>1)); | 233 | $template->adds_block('INTERNAL',array('exi'=>1)); |
234 | $template->add_ref(0, 'POST', array( 'ID' => $getdraft3['id'], | 234 | $template->add_ref(0, 'POST', array( 'ID' => $getdraft3['id'], |
235 | 'YEARID' => ((date('Y')-2006) % 4), | 235 | 'YEARID' => ((date('Y')-2006) % 4), |
236 | 'DATE' => date('F dS Y \a\\t g:i:s a'), | 236 | 'DATE' => date('F jS Y \a\\t g:i:s a'), |
237 | 'MONTH' => date('M'), | 237 | 'MONTH' => date('M'), |
238 | 'DAY' => date('d'), | 238 | 'DAY' => date('d'), |
239 | 'CODED' => $getdraft3['slug'], | 239 | 'CODED' => $getdraft3['slug'], |
@@ -335,7 +335,7 @@ if (isLoggedIn()) | |||
335 | $template->adds_block('INTERNAL',array('exi'=>1)); | 335 | $template->adds_block('INTERNAL',array('exi'=>1)); |
336 | $template->add_ref(0, 'POST', array( 'ID' => $getpending3['id'], | 336 | $template->add_ref(0, 'POST', array( 'ID' => $getpending3['id'], |
337 | 'YEARID' => ((date('Y')-2006) % 4), | 337 | 'YEARID' => ((date('Y')-2006) % 4), |
338 | 'DATE' => date('F dS Y \a\\t g:i:s a'), | 338 | 'DATE' => date('F jS Y \a\\t g:i:s a'), |
339 | 'MONTH' => date('M'), | 339 | 'MONTH' => date('M'), |
340 | 'DAY' => date('d'), | 340 | 'DAY' => date('d'), |
341 | 'CODED' => $getpending3['slug'], | 341 | 'CODED' => $getpending3['slug'], |
@@ -544,7 +544,7 @@ if (isLoggedIn()) | |||
544 | $template->add('USERNAME', $getcomment3['author']); | 544 | $template->add('USERNAME', $getcomment3['author']); |
545 | $template->add('CODEDEMAIL', md5(strtolower($getcomment3['email']))); | 545 | $template->add('CODEDEMAIL', md5(strtolower($getcomment3['email']))); |
546 | $template->add('TEXT', parseText($getcomment3['comment'])); | 546 | $template->add('TEXT', parseText($getcomment3['comment'])); |
547 | $template->add('DATE', date("F dS Y \a\\t g:i:s a",strtotime($getcomment3['pubDate']))); | 547 | $template->add('DATE', date("F jS Y \a\\t g:i:s a",strtotime($getcomment3['pubDate']))); |
548 | } else { | 548 | } else { |
549 | $template = new FITemplate('msg'); | 549 | $template = new FITemplate('msg'); |
550 | $template->add('BACK', 'the previous page'); | 550 | $template->add('BACK', 'the previous page'); |
@@ -649,8 +649,7 @@ if (isLoggedIn()) | |||
649 | { | 649 | { |
650 | if (isset($_GET['approve'])) | 650 | if (isset($_GET['approve'])) |
651 | { | 651 | { |
652 | $today = mktime(date('G'),date('i'),date('s'),date('m'),date('d'),date('Y')); | 652 | $insquote = "INSERT INTO rash_quotes (quote,date) VALUES (\"" . mysql_real_escape_string($getpending3['quote']) . "\",\"" . time() . "\")"; |
653 | $insquote = "INSERT INTO rash_quotes (quote,date) VALUES (\"" . mysql_real_escape_string($getpending3['quote']) . "\",\"" . $today . "\")"; | ||
654 | $insquote2 = mysql_query($insquote); | 653 | $insquote2 = mysql_query($insquote); |
655 | 654 | ||
656 | $delpending = "DELETE FROM rash_queue WHERE id = " . $_GET['id']; | 655 | $delpending = "DELETE FROM rash_queue WHERE id = " . $_GET['id']; |
@@ -721,9 +720,9 @@ if (isLoggedIn()) | |||
721 | $getconfig3 = mysql_fetch_array($getconfig2); | 720 | $getconfig3 = mysql_fetch_array($getconfig2); |
722 | if ($getconfig3['value'] == '1') | 721 | if ($getconfig3['value'] == '1') |
723 | { | 722 | { |
724 | $template->add('ON', ' CHECKED="CHECKED"'); | 723 | $template->add('ON', ' checked="checked"'); |
725 | } else { | 724 | } else { |
726 | $template->add('OFF', ' CHECKED="CHECKED"'); | 725 | $template->add('OFF', ' checked="checked"'); |
727 | } | 726 | } |
728 | } | 727 | } |
729 | } else { | 728 | } else { |