* */ require_once('../../src/base.inc.php'); // Verify User is admin if (!$_SESSION['currentUser']->isAdmin()) { header('Location: ' . buildUrl('moderate/')); exit; } $error = ''; require_once('../src/header.inc.php'); echo "

Pages

"; echo "

Create Page

"; $pi = new PageIterator(); $pi->query(); if ($pi->valid()) { echo "
" . "Title" . " Actions
"; foreach ($pi as $page) { printf("
" . "%s" . " " . " edit" . " delete
", buildUrl('page/' . $page->getURL()), $page->getTitle(), $page->getId(), $page->getId() ); } } else { echo "

There are no pages to edit. Click the button above to create one.

"; } require_once('../src/footer.inc.php'); ?>