delBrokenLinks(); break; case "ignoreBrokenLinks": ignoreBrokenLinks(); break; case "listModReq": listModReq(); break; case "changeModReq": changeModReq(); break; case "ignoreModReq": ignoreModReq(); break; case "delCat": delCat(); break; case "modCat": modCat(); break; case "modCatS": modCatS(); break; case "modLink": modLink(); break; case "modLinkS": modLinkS(); break; case "delLink": delLink();
$statusMessage = makeStatusMessage(1, "error"); return; } $user = getUser($conn); if ($user['access'] != 3) { $statusMessage = makeStatusMessage(3, "error"); mysqli_close($conn); return; } $log = createLog(1); // ADD ADMIN LOG if (isset($_POST['id'])) { if (isset($_POST['delete'])) { delCat($conn, 1); } elseif (isset($_POST['restore'])) { delCat($conn, 0); } else { updCat($conn); } } elseif (isset($_POST['names'])) { insCat($conn); } elseif (isset($_POST['showCats'])) { getCats(); } else { getCatFields($conn); } mysqli_close($conn); return; function delCat($conn, $del) { $updQ = new updateSQL($conn);