include "footer.php"; } } if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die("Access Denied"); } global $prefix, $db; $aid = substr("{$aid}", 0, 25); $row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='{$aid}'")); if ($row['radminsuper'] == 1) { switch ($_GET['action']) { case "AddCat": AddCat(); break; case "DelCat": DelCat(); break; case "EditCat": EditCat(); break; case "AddCoupon": AddCoupon(); break; case "DelCoupon": DelCoupon(); break; case "EditCoupon": EditCoupon(); break; case "addOrder": addOrder();
PrintCreerGalery(); break; case "creegal": AddNewGal($galcat, $newgal, $acces); break; case "formimgs": PrintFormImgs(); break; case "addimgs": AddImgs($imggal, $newcard1, $newdesc1, $newcard2, $newdesc2, $newcard3, $newdesc3, $newcard4, $newdesc4, $newcard5, $newdesc5); break; case "viewarbo": PrintArbo(); break; case "delcat": DelCat($catid, $go); break; case "editcat": Edit("Cat", $catid); break; case "delsscat": DelSsCat($sscatid, $go); break; case "delgal": DelGal($galid, $go); break; case "editgal": Edit("Gal", $galid); break; case "editimg": EditImg($imgid);