if (isset($_GET['cmd'])) { $cmd = $_GET['cmd']; } else { if (isset($_POST['cmd'])) { $cmd = $_POST['cmd']; } } switch ($cmd) { case "add": add($_POST['title']); break; case "edit": edit($_GET['bid']); break; case "finishEdit": finishEdit($_POST['bid'], $_POST['edit_banner_area_title']); break; case "delete": deleteBannerArea($_GET['bid']); break; case "addBanner": addBanner($_POST['bannerImg'], $_POST['bannerLink'], $_POST['area_id']); break; case "editBanner": editBanner($_GET['id']); break; case "finishEditBanner": finishEditBanner($_POST['id'], $_POST['bannerImg'], $_POST['bannerLink'], $_POST['area_id']); break; case "deleteBanner": deleteBanner($_GET['id']);
} else { if (isset($_POST['cmd'])) { $cmd = $_POST['cmd']; } } switch ($cmd) { case "add": add($_POST['page_menu_id']); break; case "finishAdd": finishAdd($_POST['page_menu_id'], $_POST['page_parent'], $_POST['page_label'], $_POST['page_title'], $_POST['page_body']); break; case "edit": edit($_GET['pid']); break; case "finishEdit": finishEdit($_POST['pid'], $_POST['page_menu_id'], $_POST['page_parent'], $_POST['page_label'], $_POST['page_title'], $_POST['page_body']); break; case "delete": deletePage($_GET['pid']); break; case "move": move($_POST['pid'], $_POST['page_menu_id']); break; case "weight": weight($_GET['op'], $_GET['id']); break; default: main(); break; }
if (isset($_GET['cmd'])) { $cmd = $_GET['cmd']; } else { if (isset($_POST['cmd'])) { $cmd = $_POST['cmd']; } } switch ($cmd) { case "add": add($_POST['title'], $_POST['type']); break; case "edit": edit($_GET['mid']); break; case "finishEdit": finishEdit($_POST['mid'], $_POST['edit_menu_title'], $_POST['menu_type']); break; case "delete": deleteMenu($_GET['mid']); break; case "addSpecialMenu": addSpecialMenu($_POST['specialMenuType'], $_POST['specialMenu'], $_POST['specialLabel']); break; case "editSpecialMenu": editSpecialMenu($_GET['id']); break; case "finishEditSpecialMenu": finishEditSpecialMenu($_POST['id'], $_POST['specialMenuType'], $_POST['specialMenu'], $_POST['specialLabel']); break; case "deleteSpecialMenu": deleteSpecialMenu($_GET['id']);