Exemple #1
0
     }
     $no = $mysql->escape_string($_GET['no']);
     $imonly = $_GET['imgonly'] == '1' ? 0 : 1;
     delete_post($no, 0, $imonly, 0, 1, 1);
     echo '<meta http-equiv="refresh" content="0; url=' . PHP_ASELF_ABS . '?mode=' . $_GET['refer'] . '" />';
     break;
 case 'ban':
     if (!valid('moderator')) {
         error(S_NOPERM);
     }
     require_once CORE_DIR . "/admin/bans.php";
     $banish = new Banish();
     if (isset($no)) {
     }
     $banish->postOptions($no, $ip, $banlength, $banType, $perma, $pubreason, $staffnote, $custmess, $showbanmess, $afterban);
     $banish->form($_GET['no']);
     break;
 case 'more':
     echo $table->moreInfo($_GET['no']);
     break;
 case "modify":
     require_once CORE_DIR . "/admin/modify.php";
     $modify = new Modify();
     echo $modify->mod($_GET['no'], $_GET['action']);
     break;
 case 'logout':
     setcookie('saguaro_apass', '0', 1);
     setcookie('saguaro_auser', '0', 1);
     echo "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=" . PHP_SELF2_ABS . "\">";
     break;
 case 'rebuild':
Exemple #2
0
     require_once CORE_DIR . "/admin/postInfo.php";
     $list = new DelTable();
     echo $list->moreInfo($_GET['no']);
     break;
 case 'logout':
     setcookie('saguaro_apass', '0', 1);
     setcookie('saguaro_auser', '0', 1);
     echo "<META HTTP-EQUIV=\"refresh\" content=\"0;URL=" . PHP_SELF2_ABS . "\">";
     break;
 case 'ban':
     require_once CORE_DIR . "/admin/banish.php";
     $banish = new Banish();
     if (isset($no) && isset($_SERVER['REMOTE_ADDR']) && isset($_POST['banlength']) && isset($_POST['banType']) && isset($_POST['perma']) && isset($_POST['pubreason']) && isset($_POST['staffnote']) && isset($_POST['custmess']) && isset($_POST['showbanmess']) && isset($_POST['afterban'])) {
     }
     $banish->postOptions($no, $_SERVER['REMOTE_ADDR'], $_POST['banlength'], $_POST['banType'], $_POST['perma'], $_POST['pubreason'], $_POST['staffnote'], $_POST['custmess'], $_POST['showbanmess'], $_POST['afterban']);
     $banish->form($_GET['ip'], $_GET['no']);
     break;
 case 'reports':
     head();
     require_once CORE_DIR . "/admin/report.php";
     $getReport = new Report();
     if (isset($_GET['no'])) {
         $getReport->reportClear($_GET['no']);
     }
     $active = $getReport->reportGetAllBoard();
     echo $getReport->reportList();
     break;
 case 'rebuild':
     require_once CORE_DIR . "/log/rebuild.php";
     rebuild();
     break;