include_once M_ROOT . './include/general.fun.php'; include_once M_ROOT . './include/parse/general.php'; load_cache('mconfigs'); @extract($mconfigs); !empty($cmsclosed) && exit('System Closed'); empty($rss_enabled) && exit('RSS Disabled'); $rss_num = 20; include_once M_ROOT . './include/mysql.cls.php'; $db = new cls_mysql(); $db->connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect, true, $dbcharset); include_once M_ROOT . './include/userinfo.cls.php'; load_cache('grouptypes'); sys_cache('nouserinfos'); $authorization = md5($authkey); $curuser = new cls_userinfo(); $curuser->rss_user(); load_cache('cotypes,permissions'); $querystr = $_SERVER['QUERY_STRING']; parse_str($querystr, $temparr); //参数有先后排序 $sid = empty($temparr['sid']) ? 0 : max(0, intval($temparr['sid'])); load_cache('catalogs,cnodes', $sid); $vararr = array('caid'); foreach ($cotypes as $coid => $cotype) { $cotype['sortable'] && ($vararr[] = 'ccid' . $coid); } $cnstr = ''; $cn_name = $cmsname; $sqlstr = ''; foreach ($temparr as $k => $v) { if (in_array($k, $vararr)) {