require_once '../include.php'; $act = $_REQUEST['act']; @($id = $_REQUEST['id']); if ($act == "logout") { $mes = logout(); } elseif ($act == "addAdmin") { $mes = addAdmin(); } elseif ($act == "editAdmin") { $mes = editAdmin($id); } elseif ($act == "delAdmin") { $mes = delAdmin($id); } elseif ($act == "addCate") { $mes = addCate(); } elseif ($act == "delCate") { $mes = delCate($id); } elseif ($act == "editCate") { $mes = editCate($id); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <?php if ($mes) { echo $mes;
logout(); } elseif ($act == 'addAdmin') { $mes = addAdmin(); } elseif ($act == 'editAdmin') { $mes = editAdmin($id); } elseif ($act == 'delAdmin') { $mes = delAdmin($id); } elseif ($act == 'addCate') { $mes = addCate(); } elseif ($act == 'editCate') { $id = $_REQUEST['id']; $where = "id={$id}"; $mes = editCate($where); } elseif ($act == 'delCate') { $where = "id={$id}"; $mes = delCate($where); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <?php if ($mes) { echo $mes; } ?>