increase($typeid, array('viewnum' => 1)); } elseif($_GET['type'] === 'article' && $typeid = intval($_GET['typeid'])) { C::t('portal_article_count')->increase($typeid, array('viewnum' => 1)); $tablename = 'portal_article_count'; } if($tablename) { $dynamicdata = C::t($tablename)->fetch($typeid); $output['viewnum'] = $dynamicdata['viewnum']; $output['commentnum'] = $dynamicdata['commentnum']; } if($output['uid']) { $_G['style']['tplfile'] = 'misc/userstatus'; if(check_diy_perm($topic)){ require template('common/header_diynav'); echo $diynav; } $output['diynav'] = str_replace(array("\r", "\n"), '' ,ob_get_contents()); ob_end_clean(); $_G['gzipcompress'] ? ob_start('ob_gzhandler') : ob_start(); require template('common/header_userstatus'); $output['userstatus'] = str_replace(array("\r", "\n"), '' ,ob_get_contents()); ob_end_clean(); $_G['gzipcompress'] ? ob_start('ob_gzhandler') : ob_start(); require template('common/header_qmenu'); $output['qmenu'] = str_replace(array("\r", "\n"), '' ,ob_get_contents()); ob_end_clean(); $_G['gzipcompress'] ? ob_start('ob_gzhandler') : ob_start(); } echo helper_json::encode($output); ?>