www.gusucode.com > 08CMS空白站群系统 3.3 繁体 UTF-8 > upload/index.php
<? include_once './include/general.inc.php'; include_once './include/common.fun.php'; $querystr = $_SERVER['QUERY_STRING']; un_virtual($querystr); parse_str($querystr,$temparr); //处理子站id $nsid = empty($temparr['sid']) ? 0 : max(0,intval($temparr['sid'])); if($nsid && empty($subsites[$nsid])) $nsid = 0; switch_cache($nsid); $sid = $nsid; unset($temparr['sid'],$nsid); if_siteclosed($sid); $cnstr = cnstr($temparr); if($cnstr && ($cnode = cnodearr($cnstr,$sid))){ $pmids = cn_pmids($cnstr,$sid); if(!$curuser->pmbypmids('cread',$pmids)) message(lang('none catas browse permission')); }else $cnstr = ''; $cache1circle && $cachefile = htmlcac_dir('cn','',1).cac_namepre('index',$cnstr).'.php'; if($cache1circle && is_file($cachefile) && (filemtime($cachefile) > ($timestamp - $cache1circle * 60))) mexit(read_htmlcac($cachefile)); $item = array(); if(!$cnstr){ $tplname = !$sid ? $hometpl : $btags['hometpl']; $item['rss'] = $cms_abs.'rss.php'.($sid ? "?sid=$sid" : ''); }else{ $item = cn_parsearr($cnstr,$sid); re_cnode($item,$cnstr,$cnode); $tplname = $cnode['indextpl']; } empty($tplname) && message(lang('please define related template')); $template = load_tpl($tplname,1); nreplace($template,'c',$temparr); nreplace($template,'u',$item); nreplace($template,'b',$item); code_parse($template); $template .= "<script language=\"javascript\" src=\"".$cms_abs."static.php?mode=cnindex&fromd=1".($sid ? "&sid=$sid" : '').($cnstr ? "&$cnstr" : '')."\"></script>"; $cache1circle && save_htmlcac($template,$cachefile); echo $template; mexit(); ?>