diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2008-11-19 20:46:07 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2008-11-19 20:46:07 -0500 |
commit | 51337807124d7f57d6cff6656d41b5fd57010c6b (patch) | |
tree | 1e620e6e10c6deed4715d1f0615b81f71f53280c /pages/admin.php | |
parent | c8551e2509fe68c77b0efe9b22f4dbadff981473 (diff) | |
download | fourisland-51337807124d7f57d6cff6656d41b5fd57010c6b.tar.gz fourisland-51337807124d7f57d6cff6656d41b5fd57010c6b.tar.bz2 fourisland-51337807124d7f57d6cff6656d41b5fd57010c6b.zip |
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.
Diffstat (limited to 'pages/admin.php')
-rwxr-xr-x | pages/admin.php | 65 |
1 files changed, 0 insertions, 65 deletions
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()) | |||
502 | $template->add('BACK', 'the previous page'); | 502 | $template->add('BACK', 'the previous page'); |
503 | $template->add('MSG', 'I\'m sorry, that comment doesn\'t exist.'); | 503 | $template->add('MSG', 'I\'m sorry, that comment doesn\'t exist.'); |
504 | } | 504 | } |
505 | } else if ($_GET['page'] == 'managePages') | ||
506 | { | ||
507 | $template = new FITemplate('admin/managePages'); | ||
508 | |||
509 | $getpages = "SELECT wiki_pages.*, wiki_revisions.author FROM wiki_pages, wiki_revisions WHERE wiki_revisions.id = wiki_pages.revision ORDER BY id ASC"; | ||
510 | $getpages2 = mysql_query($getpages); | ||
511 | $i=0; $template = new FITemplate('msg'); | ||
512 | $template->add('BACK', 'the previous page'); | ||
513 | $template->add('MSG', 'I\'m sorry, but this page doesn\'t exist.'); | ||
514 | while ($getpages3[$i] = mysql_fetch_array($getpages2)) | ||
515 | { | ||
516 | $template->adds_block('PAGE', array( 'TITLE' => $getpages3[$i]['title'], | ||
517 | 'AUTHOR' => $getpages3[$i]['author'], | ||
518 | 'ID' => $getpages3[$i]['id'], | ||
519 | 'CODED' => $getpages3[$i]['slug'])); | ||
520 | $i++; | ||
521 | } | ||
522 | } else if ($_GET['page'] == 'pageHistory') | ||
523 | { | ||
524 | $getpage = "SELECT * FROM wiki_pages WHERE id = " . $_GET['id'] . " ORDER BY id ASC"; | ||
525 | $getpage2 = mysql_query($getpage); | ||
526 | $getpage3 = mysql_fetch_array($getpage2); | ||
527 | |||
528 | if ($getpage3['id'] == $_GET['id']) | ||
529 | { | ||
530 | $template = new FITemplate('admin/pageHistory'); | ||
531 | |||
532 | $getrev = "SELECT * FROM wiki_revisions WHERE id = " . $getpage3['revision']; | ||
533 | $getrev2 = mysql_query($getrev); | ||
534 | $getrev3 = mysql_fetch_array($getrev2); | ||
535 | |||
536 | $template->adds_block('REV', array( 'AUTHOR' => $getrev3['author'], | ||
537 | 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getrev3['pubDate'])), | ||
538 | 'ID' => $getrev3['id'])); | ||
539 | |||
540 | while ($getrev3['previous'] != 0) | ||
541 | { | ||
542 | $getrev = "SELECT * FROM wiki_revisions WHERE id = " . $getrev3['previous']; | ||
543 | $getrev2 = mysql_query($getrev); | ||
544 | $getrev3 = mysql_fetch_array($getrev2); | ||
545 | |||
546 | $template->adds_block('REV', array( 'AUTHOR' => $getrev3['author'], | ||
547 | 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getrev3['pubDate'])), | ||
548 | 'ID' => $getrev3['id'])); | ||
549 | } | ||
550 | } else { | ||
551 | $template = new FITemplate('msg'); | ||
552 | $template->add('BACK', 'the previous page'); | ||
553 | $template->add('MSG', 'I\'m sorry, but this page doesn\'t exist.'); | ||
554 | } | ||
555 | } else if ($_GET['page'] == 'viewRevision') | ||
556 | { | ||
557 | $getrev = "SELECT * FROM wiki_revisions WHERE id = " . $_GET['id']; | ||
558 | $getrev2 = mysql_query($getrev); | ||
559 | $getrev3 = mysql_fetch_array($getrev2); | ||
560 | |||
561 | if ($getrev3['id'] == $_GET['id']) | ||
562 | { | ||
563 | $template = new FITemplate('admin/viewRevision'); | ||
564 | $template->add('TEXT', $getrev3['text']); | ||
565 | } else { | ||
566 | $template = new FITemplate('msg'); | ||
567 | $template->add('BACK', 'the previous page'); | ||
568 | $template->add('MSG', 'I\'m sorry, but this revision doesn\'t exist.'); | ||
569 | } | ||
570 | } else if ($_GET['page'] == 'pollProcess') | 505 | } else if ($_GET['page'] == 'pollProcess') |
571 | { | 506 | { |
572 | if (!isset($_GET['step'])) | 507 | if (!isset($_GET['step'])) |