} if ($canonical->currentArgs['subAction'] == 'check') { if (isset($_SESSION['login-token'])) { $admin = new bwAdmin(); $admin->verifySessionToken($_SESSION['login-token']); if ($admin->verified) { ajaxSuccess(''); } } stopError(''); } if ($canonical->currentArgs['subAction'] == 'load') { if (!isset($_REQUEST['aID'])) { stopError(bw::$conf['l']['admin:msg:NotExist']); } $comment->alterAID($_REQUEST['aID']); $comment->getComList(); $totalBatches = ceil($comment->totalCom / bw::$conf['comPerLoad']); $view->setPassData(array('comments' => $comment->comList)); $view->setPassData(array('totalbatches' => $totalBatches, 'currentbatch' => $canonical->currentPage)); $view->setMaster('ajaxcommentgroup'); $view->setWorkFlow(array('ajaxcommentgroup')); $view->finalize(); } } if ($canonical->currentArgs['mainAction'] == 'sina') { define("WB_AKEY", bw::$conf['sinaAKey']); define("WB_SKEY", bw::$conf['sinaSKey']); define("WB_CALLBACK_URL", bw::$conf['siteURL'] . '/' . bw::$conf['linkPrefixSend'] . '/sina/callback/'); include_once P . 'inc/script/sina-weibo/saetv2.ex.class.php'; if ($canonical->currentArgs['subAction'] == 'start') {