3) { $page = new page($_POST['pageSlug']); if (isset($_POST['pageAdd'])) { if ($page->create($_POST['pageTitle'], $_POST['pageContent'])) array_push($info, $_locale['page_added']); else array_push($error, $_locale['page_not_added']); } elseif (isset($_POST['pageUpdate'])) { if ($page->update($_POST['pageTitle'], $_POST['pageContent'])) array_push($info, $_locale['page_updated']); else array_push($error, $_locale['page_not_updated']); } } if (isset($_POST['page_delete'])) { $page = new page($_POST['page_delete']); if ($page -> delete()) array_push($info, $_locale['page_deleted']); else array_push($error, $_locale['page_delete_failed']); } if (isset($seo[2])) $page = new page($seo[2]); else { $pagesQuery = $_sql->query("SELECT pageSlug, pageTitle, pageCreated, pageModified, pageDeleted FROM pages ORDER BY pageDeleted ASC, pageTitle ASC"); if ($pagesQuery->num_rows) { echo "