function Totoro_Cmd_Begin() { global $zbp; if (GetVars('act', 'GET') == 'CommentChk') { if (!$zbp->ValidToken(GetVars('token', 'GET'))) { $zbp->ShowError(5, __FILE__, __LINE__); die; } $id = (int) GetVars('id', 'GET'); $ischecking = (bool) GetVars('ischecking', 'GET'); if ($ischecking) { Totoro_init(); global $Totoro; $Totoro->add_black_list($id); } } }
<?php require '../../../zb_system/function/c_system_base.php'; require '../../../zb_system/function/c_system_admin.php'; $zbp->Load(); $action = 'root'; if (!$zbp->CheckRights($action)) { $zbp->ShowError(6); die; } if (!$zbp->CheckPlugin('Totoro')) { $zbp->ShowError(48); die; } Totoro_init(); $blogtitle = 'Totoro反垃圾评论'; require $blogpath . 'zb_system/admin/admin_header.php'; ?> <style type="text/css"> .text-config { width: 95% } </style> <?php require $blogpath . 'zb_system/admin/admin_top.php'; ?> <div id="divMain"> <div class="divHeader"><?php echo $blogtitle; ?>