exit; } } $curtype = array(); } else { $nav = get_groupnav($curtype); $groupnav = $nav['nav']; $_G['grouptypeid'] = $curtype['fid']; $perpage = 10; if ($curtype['forumcolumns'] > 1) { $curtype['forumcolwidth'] = floor(100 / $curtype['forumcolumns']) - 0.1 . '%'; $perpage = $curtype['forumcolumns'] * 10; } } $seodata = array('first' => $nav['first']['name'], 'second' => $nav['second']['name']); list($navtitle, $metadescription, $metakeywords) = get_seosetting('group', $seodata); $_G['cache']['groupindex'] = ''; $data = $randgrouplist = $randgroupdata = $grouptop = $newgrouplist = array(); $topgrouplist = $_G['cache']['groupindex']['topgrouplist']; $lastupdategroup = $_G['cache']['groupindex']['lastupdategroup']; $todayposts = intval($_G['cache']['groupindex']['todayposts']); $groupnum = intval($_G['cache']['groupindex']['groupnum']); $cachetimeupdate = TIMESTAMP - intval($_G['cache']['groupindex']['updateline']); if (empty($_G['cache']['groupindex']) || $cachetimeupdate > 3600 || empty($lastupdategroup)) { $data['randgroupdata'] = $randgroupdata = grouplist('lastupdate', array('ff.membernum', 'ff.icon'), 80); $data['topgrouplist'] = $topgrouplist = grouplist('activity', array('f.commoncredits', 'ff.membernum', 'ff.icon'), 10); $data['updateline'] = TIMESTAMP; $groupdata = C::t('forum_forum')->fetch_group_counter(); $data['todayposts'] = $todayposts = $groupdata['todayposts']; $data['groupnum'] = $groupnum = $groupdata['groupnum']; foreach ($first as $id => $toptype) {
$_G['forum']['icon'] = get_groupimg($_G['forum']['icon'], 'icon'); $_G['grouptypeid'] = $_G['forum']['fup']; $_G['forum']['dateline'] = dgmdate($_G['forum']['dateline'], 'd'); $nav = get_groupnav($_G['forum']); $groupnav = $nav['nav']; $onlinemember = grouponline($_G['fid']); $groupmanagers = $_G['forum']['moderators']; $groupcache = getgroupcache($_G['fid'], array('replies', 'views', 'digest', 'lastpost', 'ranking', 'activityuser', 'newuserlist')); $seotype = 'grouppage'; $seodata['first'] = $nav['first']['name']; $seodata['second'] = $nav['second']['name']; $seodata['gdes'] = $_G['forum']['description']; $forumseoset = array(); } $_G['forum']['banner'] = get_forumimg($_G['forum']['banner']); list($navtitle, $metadescription, $metakeywords) = get_seosetting($seotype, $seodata, $forumseoset); if (!$navtitle) { $navtitle = get_title_page($_G['forum']['name'], $_G['page']); $nobbname = false; } else { $nobbname = true; } if (!empty($_G['gp_typeid']) && !empty($_G['forum']['threadtypes']['types'][$_G['gp_typeid']])) { $navtitle = strip_tags($_G['forum']['threadtypes']['types'][$_G['gp_typeid']]) . ' - ' . $navtitle; } if (!$metakeywords) { $metakeywords = $_G['forum']['name']; } if (!$metadescription) { $metadescription = $_G['forum']['name']; }
$key = !IS_ROBOT ? $_G['member']['groupid'] : 'for_robot'; memory('set', 'forum_index_page_' . $key, array('catlist' => $catlist, 'forumlist' => $forumlist, 'sublist' => $sublist, 'whosonline' => $whosonline, 'onlinenum' => $onlinenum, 'membercount' => $membercount, 'guestcount' => $guestcount, 'grids' => $grids, 'announcements' => $announcements, 'threads' => $threads, 'posts' => $posts, 'todayposts' => $todayposts, 'onlineinfo' => $onlineinfo, 'announcepm' => $announcepm), getglobal('setting/memory/forumindex')); } } else { require_once DISCUZ_ROOT . './source/include/misc/misc_category.php'; } if (defined('IN_ARCHIVER')) { include loadarchiver('forum/discuz'); exit; } categorycollapse(); if ($gid && !empty($catlist)) { $_G['category'] = $catlist[$gid]; $forumseoset = array('seotitle' => $catlist[$gid]['seotitle'], 'seokeywords' => $catlist[$gid]['keywords'], 'seodescription' => $catlist[$gid]['seodescription']); $seodata = array('fgroup' => $catlist[$gid]['name']); list($navtitle, $metadescription, $metakeywords) = get_seosetting('threadlist', $seodata, $forumseoset); if (empty($navtitle)) { $navtitle = $navtitle_g; $nobbname = false; } else { $nobbname = true; } $_G['fid'] = $gid; } include template('diy:forum/discuz:' . $gid); function get_index_announcements() { global $_G; $announcements = ''; if ($_G['cache']['announcements']) { $readapmids = !empty($_G['cookie']['readapmid']) ? explode('D', $_G['cookie']['readapmid']) : array();
break; } } $page = max(1, intval($_GET['page'])); foreach ($cat['ups'] as $val) { $cats[] = $val['catname']; } $bodycss = array($cat['topid'] => 'pg_list_' . $cat['topid']); if ($cat['upid']) { $bodycss[$cat['upid']] = 'pg_list_' . $cat['upid']; } $bodycss[$cat['catid']] = 'pg_list_' . $cat['catid']; $cat['bodycss'] = implode(' ', $bodycss); $catseoset = array('seotitle' => $cat['seotitle'], 'seokeywords' => $cat['keyword'], 'seodescription' => $cat['description']); $seodata = array('firstcat' => $cats[0], 'secondcat' => $cats[1], 'curcat' => $cat['catname'], 'page' => intval($_GET['page'])); list($navtitle, $metadescription, $metakeywords) = get_seosetting('articlelist', $seodata, $catseoset); if (!$navtitle) { $navtitle = helper_seo::get_title_page($cat['catname'], $_G['page']); $nobbname = false; } else { $nobbname = true; } if (!$metakeywords) { $metakeywords = $cat['catname']; } if (!$metadescription) { $metadescription = $cat['catname']; } if (isset($_G['makehtml'])) { helper_makehtml::portal_list($cat); }
if (empty($result['items'])) { showmessage('dzapp_haodai:param_wrong'); } $articles = $result['items']; include template('dzapp_haodai:list'); } elseif ($action == 'calc') { $type = $_GET['type']; if (!in_array($type, array('chedai', 'debj', 'debx', 'esjys', 'fd', 'gjj', 'secondhand', 'zhdk'))) { showmessage('dzapp_haodai:param_wrong'); } if (!@(include_once DISCUZ_ROOT . './data/sysdata/cache_dzapp_haodai_dkgl_' . $city . '.php' || TIMESTAMP - filemtime(DISCUZ_ROOT . './data/sysdata/cache_dzapp_haodai_dkgl_' . $city . '.php') > $var['refreshtime'])) { $dkgl_article = get_article_dkgl_list(); writetocache('dzapp_haodai_dkgl_' . $city, getcachevars(array('dkgl_article' => $dkgl_article))); } $seodata = array('bbname' => $_G['setting']['bbname'], 'calc_type' => lang('plugin/dzapp_haodai', 'calc_' . $type)); list($navtitle, $metadescription, $metakeywords) = get_seosetting('', $seodata, $dzapp_haodai_seo['calc']); if (defined('IN_MOBILE') && $type == 'fd') { $script_more = ' var $btnss = $(\'.btn-b\'); var $tables = $btnss.siblings(\'.int_table\'); $btnss.click( function() { if ($tables.hasClass(\'hide-table\')) { $tables.removeClass(\'hide-table\'); $(this).html(\'' . lang('plugin/dzapp_haodai', 'hide-table') . '\'); } else { $tables.addClass(\'hide-table\'); $(this).html(\'' . lang('plugin/dzapp_haodai', 'check-more') . '\'); } });';
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: portal_index.php 19235 2010-12-23 03:18:23Z liulanbo $ */ if (!defined('IN_DISCUZ')) { exit('Access Denied'); } list($navtitle, $metadescription, $metakeywords) = get_seosetting('portal'); if (!$navtitle) { $navtitle = $_G['setting']['navs'][1]['navname']; $nobbname = false; } else { $nobbname = true; } if (!$metakeywords) { $metakeywords = $_G['setting']['navs'][1]['navname']; } if (!$metadescription) { $metadescription = $_G['setting']['navs'][1]['navname']; } // -----为了取各版块24小时发贴数,占用首页首页打开时间的一半。--- by heavenK $forums = C::t('forum_forum')->fetch_all_by_status(1); foreach ($forums as $forum) { $forum_all[$forum['fid']] = $forum; } // -----取出结束----- include_once template('diy:portal/index');