Пример #1
0
        }
    }
    $sm = sminit("popup.tpl");
    $sm->assign("text", $message);
    $sm->assign("timeout", 5);
    // 5s
    $sm->assign("title", "Moderation action");
    $sm->display("popup.tpl");
    die;
} elseif ($_GET['quicker'] == 1) {
    // First check if we even have the params we need
    if (!isset($_GET['board']) || !isset($_GET['post'])) {
        $message = "No post and/or board parameter, nothing to do!";
    } else {
        $db = new ThornModDBI();
        if ($db->checkban()) {
            THdie("ADbanned");
        }
        // Get the board name.
        $board_folder = trim($_GET['board']);
        // Check for local mod access or global mod/admin access.
        if (is_in_csl($board_folder, $_SESSION['mod_array']) != 1 && $_SESSION['admin'] != 1 && $_SESSION['mod_global'] != 1) {
            $message = "You are not permitted to moderate posts on this board";
        } else {
            // Set some stuff up.
            $board_id = $db->getboardnumber($board_folder);
            // Make sure we retrieved a valid board folder
            if ($board_folder == null) {
                $message = "That board does not exist!";
            } else {
                $postid = intval($_GET['post']);