updateImages(); die; } if($_POST["ajax"] != "") { $p->getAddPage(); die; } if($_GET["viewdetails"] != "") { $p->HeaderTemplate("",""); $p->viewDetails(); $p->FooterTemplate(); die; } $p->HeaderTemplate("",""); $p->viewPage(); $p->FooterTemplate(); ?>