コード例 #1
0
ファイル: index.php プロジェクト: koki-h/xoops_utf8
     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();
コード例 #2
0
    $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);