From 51337807124d7f57d6cff6656d41b5fd57010c6b Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Wed, 19 Nov 2008 20:46:07 -0500 Subject: Removed 'wiki' module Since MediaWiki was introduced to Four Island, the old wiki module hasn't been used, so it is not necessary to be present. --- pages/admin.php | 65 --------------------------------------------------------- 1 file changed, 65 deletions(-) (limited to 'pages/admin.php') diff --git a/pages/admin.php b/pages/admin.php index 90b3d29..e0c8d3f 100755 --- a/pages/admin.php +++ b/pages/admin.php @@ -502,71 +502,6 @@ if (isLoggedIn()) $template->add('BACK', 'the previous page'); $template->add('MSG', 'I\'m sorry, that comment doesn\'t exist.'); } - } else if ($_GET['page'] == 'managePages') - { - $template = new FITemplate('admin/managePages'); - - $getpages = "SELECT wiki_pages.*, wiki_revisions.author FROM wiki_pages, wiki_revisions WHERE wiki_revisions.id = wiki_pages.revision ORDER BY id ASC"; - $getpages2 = mysql_query($getpages); - $i=0; $template = new FITemplate('msg'); - $template->add('BACK', 'the previous page'); - $template->add('MSG', 'I\'m sorry, but this page doesn\'t exist.'); - while ($getpages3[$i] = mysql_fetch_array($getpages2)) - { - $template->adds_block('PAGE', array( 'TITLE' => $getpages3[$i]['title'], - 'AUTHOR' => $getpages3[$i]['author'], - 'ID' => $getpages3[$i]['id'], - 'CODED' => $getpages3[$i]['slug'])); - $i++; - } - } else if ($_GET['page'] == 'pageHistory') - { - $getpage = "SELECT * FROM wiki_pages WHERE id = " . $_GET['id'] . " ORDER BY id ASC"; - $getpage2 = mysql_query($getpage); - $getpage3 = mysql_fetch_array($getpage2); - - if ($getpage3['id'] == $_GET['id']) - { - $template = new FITemplate('admin/pageHistory'); - - $getrev = "SELECT * FROM wiki_revisions WHERE id = " . $getpage3['revision']; - $getrev2 = mysql_query($getrev); - $getrev3 = mysql_fetch_array($getrev2); - - $template->adds_block('REV', array( 'AUTHOR' => $getrev3['author'], - 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getrev3['pubDate'])), - 'ID' => $getrev3['id'])); - - while ($getrev3['previous'] != 0) - { - $getrev = "SELECT * FROM wiki_revisions WHERE id = " . $getrev3['previous']; - $getrev2 = mysql_query($getrev); - $getrev3 = mysql_fetch_array($getrev2); - - $template->adds_block('REV', array( 'AUTHOR' => $getrev3['author'], - 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getrev3['pubDate'])), - 'ID' => $getrev3['id'])); - } - } else { - $template = new FITemplate('msg'); - $template->add('BACK', 'the previous page'); - $template->add('MSG', 'I\'m sorry, but this page doesn\'t exist.'); - } - } else if ($_GET['page'] == 'viewRevision') - { - $getrev = "SELECT * FROM wiki_revisions WHERE id = " . $_GET['id']; - $getrev2 = mysql_query($getrev); - $getrev3 = mysql_fetch_array($getrev2); - - if ($getrev3['id'] == $_GET['id']) - { - $template = new FITemplate('admin/viewRevision'); - $template->add('TEXT', $getrev3['text']); - } else { - $template = new FITemplate('msg'); - $template->add('BACK', 'the previous page'); - $template->add('MSG', 'I\'m sorry, but this revision doesn\'t exist.'); - } } else if ($_GET['page'] == 'pollProcess') { if (!isset($_GET['step'])) -- cgit 1.4.1