summary refs log tree commit diff stats
path: root/pages/admin.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-08-09 09:14:58 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-08-09 09:14:58 -0400
commit893957c41481a0cd5eb624096337762ffa54ff28 (patch)
tree09d2487f8add5a6281e3482a471abf21faa4f819 /pages/admin.php
parentd27a3784c81f0c582e43655509e806978b7e65e4 (diff)
downloadfourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.gz
fourisland-893957c41481a0cd5eb624096337762ffa54ff28.tar.bz2
fourisland-893957c41481a0cd5eb624096337762ffa54ff28.zip
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 <!DOCTYPE> post (the &lt; 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');
Diffstat (limited to 'pages/admin.php')
-rwxr-xr-xpages/admin.php13
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 {