<?php !defined('A_P') && exit('Forbidden'); $a_key = 'thread'; if (isset($_GET['ajax'])) { define('AJAX', '1'); } require_once R_P . 'require/writelog.php'; S::gp(array('cyid', 'action', 'tidarray', 'seltid')); $selids = $foruminfo = array(); require_once R_P . 'apps/groups/lib/colony.class.php'; $newColony = new PwColony($cyid); if (!($colony =& $newColony->getInfo())) { Showmsg('data_error'); } require_once R_P . 'require/bbscode.php'; $newColony->initBanner(); $groupRight =& $newColony->getRight(); $colony_name = $newColony->getNameStyle(); $descrip = convert($colony['descrip'], array()); $newColony->checkAction($action); if (!$tidarray && is_numeric($seltid)) { $tidarray = array($seltid); } if (empty($tidarray)) { Showmsg('no_selected_topic'); } //验证帖子的合法性(是否是本群的帖子,是否越权操作) $threaddb = $newColony->checkTopic($tidarray); empty($threaddb) && Showmsg('data_error'); $selids = array_keys($threaddb);
$updatecache = true; $j_url = "{$basename}&action=cache"; } elseif ($_POST['step'] == 'photo') { $j_url = "{$basename}&action=photo"; } $updatecache && updatecache_cnc(); adminmsg('operate_success', $j_url); } elseif ($action == 'thread') { S::gp(array('cyid')); if ($_POST['step'] == 'updatecache') { $j_url = "{$basename}&action=cache"; $cyid = (int) $cyid; !$cyid && adminmsg('illegal_group_cyid', $j_url); require_once R_P . 'apps/groups/lib/colony.class.php'; $newColony = new PwColony($cyid); $colony = $newColony->getInfo(); $count = $newColony->getArgumentCount(); if ($count != $colony['tnum']) { $newColony->updateInfoCount(array('tnum' => $count)); } adminmsg('operate_success', $j_url); } } elseif ($action == 'class') { $classdb = $isclass = array(); $query = $db->query("SELECT * FROM pw_cnclass"); while ($rt = $db->fetch_array($query)) { $classdb[$rt['fid']] = $rt; if ($rt['ifopen']) { $isclass[] = $rt['fid']; } }