<?php require_once "admin_conn.php"; chkLogin(); $action = be("get", "action"); switch ($action) { case "reduction": reduction(); break; case "del": del(); break; case "delall": delall(); break; case "compress": compress(); break; case "bak": bak(); break; case "repair": repair(); break; case "getsize": getsize(); break; default: headAdmin("数据库管理"); main(); break;
<?php include "begin.php"; if ($_POST["cp"] != null) { $reduction = reduction($_POST["cp"]); if ($reduction >= 0) { setcookie("reduc", $reduction, time() + 86400); $_COOKIE["reduc"] = $reduction; header('Location: recapitulatif.php?id=' . $_COOKIE["idMatch"] . '&red=1'); } else { header('Location: recapitulatif.php?id=' . $_COOKIE["idMatch"] . '&red=-1'); } } else { header('Location: recapitulatif.php?id=' . $_COOKIE["idMatch"] . '&red=-1'); }