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($seo[2])) $page = new page($seo[2]); else { $pagesQuery = $_sql->query("SELECT pageSlug, pageTitle FROM pages"); if ($pagesQuery->num_rows) { echo "

{locale:pages}

"; echo ""; while ($data = $pagesQuery->fetch_assoc()) echo ""; echo "
{locale:page_title}
$data[pageTitle]
"; } } ?>

{locale:page_editor}

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