From 893957c41481a0cd5eb624096337762ffa54ff28 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 9 Aug 2009 09:14:58 -0400 Subject: Created layout 7 The following changes were also made in this revision: * All HTML was changed to XHTML and a !DOCTYPE was included to reflect this * Rewrote quotes tracking system to be much less complicated and actually working * Changed quotes rendering to look more like Chirpy than Rash * Fixed comment textarea bug * Rewrote a ton of CSS so it's not as bloated * Added a JavaScript confirmation when deleting a comment * AJAXified voting on the POTW * AJAXified voting and flagging quotes * AJAXified commenting * AJAXified voting on posts * Added DateFinder back after it was accidentally deleted in Layout 4.5 The following database changes must be performed as soon as possible: * Fix title of NO post (the < is missing the semicolon) * Restore post Frasty Tha Snaman from a backup * Reset "flag" field of all rows in "rash_quotes" to 0 * Remove the "vote" and "flag" columns of "rash_tracking" * Rename the "quote_id" column of "rash_tracking" to "vote" The following external code changes must also be performed as soon as possible: * Add the following line to the end of the // Four Island block in The Fourm's functions.php: require('/svr/www/hatkirby/fourisland/main/includes/specialdates.php'); --- pages/admin.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'pages/admin.php') 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()) $template->adds_block('INTERNAL',array('exi'=>1)); $template->add_ref(0, 'POST', array( 'ID' => $getdraft3['id'], 'YEARID' => ((date('Y')-2006) % 4), - 'DATE' => date('F dS Y \a\\t g:i:s a'), + 'DATE' => date('F jS Y \a\\t g:i:s a'), 'MONTH' => date('M'), 'DAY' => date('d'), 'CODED' => $getdraft3['slug'], @@ -335,7 +335,7 @@ if (isLoggedIn()) $template->adds_block('INTERNAL',array('exi'=>1)); $template->add_ref(0, 'POST', array( 'ID' => $getpending3['id'], 'YEARID' => ((date('Y')-2006) % 4), - 'DATE' => date('F dS Y \a\\t g:i:s a'), + 'DATE' => date('F jS Y \a\\t g:i:s a'), 'MONTH' => date('M'), 'DAY' => date('d'), 'CODED' => $getpending3['slug'], @@ -544,7 +544,7 @@ if (isLoggedIn()) $template->add('USERNAME', $getcomment3['author']); $template->add('CODEDEMAIL', md5(strtolower($getcomment3['email']))); $template->add('TEXT', parseText($getcomment3['comment'])); - $template->add('DATE', date("F dS Y \a\\t g:i:s a",strtotime($getcomment3['pubDate']))); + $template->add('DATE', date("F jS Y \a\\t g:i:s a",strtotime($getcomment3['pubDate']))); } else { $template = new FITemplate('msg'); $template->add('BACK', 'the previous page'); @@ -649,8 +649,7 @@ if (isLoggedIn()) { if (isset($_GET['approve'])) { - $today = mktime(date('G'),date('i'),date('s'),date('m'),date('d'),date('Y')); - $insquote = "INSERT INTO rash_quotes (quote,date) VALUES (\"" . mysql_real_escape_string($getpending3['quote']) . "\",\"" . $today . "\")"; + $insquote = "INSERT INTO rash_quotes (quote,date) VALUES (\"" . mysql_real_escape_string($getpending3['quote']) . "\",\"" . time() . "\")"; $insquote2 = mysql_query($insquote); $delpending = "DELETE FROM rash_queue WHERE id = " . $_GET['id']; @@ -721,9 +720,9 @@ if (isLoggedIn()) $getconfig3 = mysql_fetch_array($getconfig2); if ($getconfig3['value'] == '1') { - $template->add('ON', ' CHECKED="CHECKED"'); + $template->add('ON', ' checked="checked"'); } else { - $template->add('OFF', ' CHECKED="CHECKED"'); + $template->add('OFF', ' checked="checked"'); } } } else { -- cgit 1.4.1