* */ require_once('../../src/base.inc.php'); // Verify User is admin if (!$_SESSION['currentUser']->isAdmin()) { header('Location: ' . buildUrl('moderate/')); exit; } $error = ''; $page = false; if (isset($_GET['id']) and is_numeric($_GET['id'])) { $page = Page::getById($_GET['id']); if ($page !== false and isset($_GET['confirmed'])) { $page->delete(); header('Location: index.php'); } } require_once('../src/header.inc.php'); echo "
Are you sure you want to delete " . $page->getTitle() ."?
" . "getId() ."&confirmed\">Yes" . " No
"; } else { echo "No page to delete.
"; } require_once('../src/footer.inc.php'); ?>