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 "

{locale:pages}

"; echo "
"; echo ""; while ($data = $pagesQuery->fetch_assoc()) echo ""; echo "
{locale:page_title}{locale:page_modified}{locale:page_delete}
$data[pageTitle]".date($_set['dateformat'], $data['pageModified'] > $data['pageCreated'] ? $data['pageModified'] : $data['pageCreated'])."".($data['pageDeleted'] ? date($_set['dateformat'], $data['pageDeleted']) : "")."
"; echo "
"; } } ?>

{locale:page_editor}

data)) : addTitle($page->data['pageTitle']); ?>