- <?php
- /*
- [Discuz!] (C)2001-2006 Comsenz Inc.
- This is NOT a freeware, use is subject to license terms
- $RCSfile: index.php,v $
- $Revision: 1.9.2.1 $
- $Date: 2006/03/10 02:42:17 $
- */
- define('CURSCRIPT', 'index');
- require_once './include/common.inc.php';
- require_once DISCUZ_ROOT.'./include/forum.func.php';
- $discuz_action = 1;
- $validdays = $discuz_uid && !empty($groupexpiry) && $groupexpiry >= $timestamp ?
- ceil(($groupexpiry - $timestamp) / 86400) : 0;
- if(isset($showoldetails)) {
- switch($showoldetails) {
- case 'no': dsetcookie('onlineindex', 0, 86400 * 365); break;
- case 'yes': dsetcookie('onlineindex', 1, 86400 * 365); break;
- }
- } else {
- $showoldetails = false;
- }
- $currenttime = gmdate($timeformat, $timestamp + $timeoffset * 3600);
- $lastvisittime = gmdate("$dateformat $timeformat", $lastvisit + $timeoffset * 3600);
- $memberenc = rawurlencode($lastmember);
- $newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
- //KaijuanStudio Flaunter1.0
- $setting = 1;
- include './flaunt/config.php';
- for($type = 1; $type <= $tnum; $type++) {
- $setting = 2;
- include './flaunt/config.php';
- $topiclist .= "<b><a href="./flaunt/$type.htm" target="_blank">$srchtxt</a></b> | ";
- }
- //Flaunter End
- /*
- $searchboxstatus = substr(sprintf('%03b', $qihoo_searchbox), -1, 1);
- $keywordlist = $qihoo_links['keywords'];
- $topiclist = $qihoo_links['topics'];
- if($qihoo_maxtopics) {
- $customtopics = '';
- foreach(explode("\t", $_DCOOKIE['customkw']) as $topic) {
- $topic = dhtmlspecialchars(trim(stripslashes($topic)));
- $customtopics .= '<a href="topic.php?keyword='.rawurlencode($topic).'" target="_blank">'.$topic.'</a> ';
- }
- }
- */
- if(empty($gid)) {
- $navigation = $navtitle = '';
- $announcements = $space = '';
- if($_DCACHE['announcements']) {
- foreach($_DCACHE['announcements'] as $announcement) {
- $announcements .= $space.'<a href="announcement.php?id='.$announcement['id'].'#'.$announcement['id'].'"><span class="bold">'.$announcement['subject'].'</span> '.
- '('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
- $space = ' ';
- }
- }
复制代码
请你对照一下自己的。 |