get($contentid); if(!$r || $r['status'] != 99) showmessage('鎮ㄨ鏌ョ湅鐨勪俊鎭笉瀛樺湪鎴栬呰繕鏈氳繃瀹℃壒錛?); $allow_priv = true; if($r['groupids_view']) { if(!$priv_group->check('contentid', $contentid, 'view', $_groupid)) { $allow_priv = false; } if(!$allow_priv) { $group_extend_result = $db->query("SELECT * FROM `".DB_PRE."member_group_extend` WHERE `userid`=$_userid"); while($e_rs = $db->fetch_array($group_extend_result)) { if($priv_group->check('contentid', $contentid, 'view', $e_rs['groupid'])) { $allow_priv = true; break; } } } } else { $allow_priv = $hava_checked = false; $group_extend_result = $db->query("SELECT * FROM `".DB_PRE."member_group_extend` WHERE `userid`=$_userid"); while($e_rs = $db->fetch_array($group_extend_result)) { $e_groupid = $e_rs['groupid']; if($priv_group->check('catid', $r['catid'], 'view', $e_groupid)) { $allow_priv = true; break; } $hava_checked = true; } if(!$hava_checked) $allow_priv = true; if(!$priv_group->check('catid', $r['catid'], 'view', $_groupid)) showmessage('鎮ㄦ病鏈夋祻瑙堣鏍忕洰鐨勬潈闄?); } $C = cache_read('category_'.$r['catid'].'.php'); $attachment = new attachment($mod, $r['catid']); $out = new content_output(); $data = $out->get($r); extract($data); $allow_readpoint = 1; if($C['defaultchargepoint'] || $r['readpoint']) { $readpoint = $r['readpoint'] ? $r['readpoint'] : $C['defaultchargepoint']; $pay = load('pay_api.class.php', 'pay', 'api'); if($C['repeatchargedays']) { if($pay->is_exchanged($contentid, $C['repeatchargedays']) === FALSE) { $allow_readpoint = 0; } } else { session_start(); if($_SESSION['pay_contentid'] != $contentid) $allow_readpoint = 0; } } if(isset($r['paginationtype'])) { $paginationtype = $r['paginationtype']; $maxcharperpage = $r['maxcharperpage']; } $page = $page ? $page : 1; $pages = $titles = ''; if($paginationtype==1) { if(strpos($content, '[/page]')!==false) { $content = preg_replace("|\[page\](.*)\[/page\]|U", '', $content); } if(strpos($content, '[page]')!==false) { $content = str_replace('[page]', '', $content); } $content = contentpage($content, $maxcharperpage); } elseif($paginationtype==0) { if(strpos($content, '[/page]')!==false) { $content = preg_replace("|\[page\](.*)\[/page\]|U", '', $content); } if(strpos($content, '[page]')!==false) { $content = str_replace('[page]', '', $content); } } $CONTENT_POS = strpos($content, '[page]'); if($CONTENT_POS !== false) { require_once 'url.class.php'; $curl = new url(); $contents = array_filter(explode('[page]', $content)); $pagenumber = count($contents); for($i=1; $i<=$pagenumber; $i++) { $pageurls[$i] = $curl->show($r['contentid'], $i, $r['catid'], $r['inputtime']); } if(strpos($content, '[/page]') !== false) { if(preg_match_all("|\[page\](.*)\[/page\]|U", $content, $m, PREG_PATTERN_ORDER)) { foreach($m[1] as $k=>$v) { $p = $k+1; $titles .= ''.$p.'銆?.strip_tags($v).''; } } } $pages = $curl->show_pages($page, $pagenumber, $pageurls); if($CONTENT_POS==0)//鍒ゆ柇[page]鍑虹幇鐨勪綅緗槸鍚﹀湪絎竴浣? { $content = $contents[$page]; } else { $content = $contents[$page-1]; } if($titles) { list($title, $content) = explode('[/page]', $content); } } $title = strip_tags($title); $head['title'] = $title.'_'.$C['catname'].'_'.$PHPCMS['sitename']; $head['keywords'] = str_replace(' ', ',', $r['keywords']); $head['description'] = $r['description']; if(!$template) $template = $C['template_show']; if(!$C['defaultchargepoint'] && !$r['readpoint']) { header('Last-Modified: '.gmdate('D, d M Y H:i:s', $r['updatetime']).' GMT'); header('Expires: '.gmdate('D, d M Y H:i:s', $r['updatetime']+CACHE_PAGE_CONTENT_TTL).' GMT'); header('Cache-Control: max-age='.CACHE_PAGE_CONTENT_TTL.', must-revalidate'); } include template('phpcms', $template); cache_page(CACHE_PAGE_CONTENT_TTL); ?> 抽纸加工能赚钱 派思股份股票 青海十一选五前三走势图 重庆麻将下载72张 江西11选五多乐彩 快乐10分钟开奖走势图 东方财富网 在线配资开户 北京11选5即开型结果图示 马竞拿过欧冠冠军吗 北京赛车pk10平台是多少