Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

在线时间5.05 For 2.5 BY Ninelife 最后发表日期:8-4

[复制链接]
 楼主| ninelife 发表于 2005-8-22 17:34:02 | 显示全部楼层
原帖由 skyde20 于 2005-8-22 17:23 发表



我安装完,也更新缓存了,为什么在页面最上面总有这个显示


//在线时间插件 by ninelife require DISCUZ_ROOT.'./plugins/onlinetimeupdate.php'; //


楼主帮忙

这是地址 [url]ht ...

……
你得把你的common.php贴上来看看
回复

使用道具 举报

skyde20 发表于 2005-8-22 17:42:04 | 显示全部楼层
恩,贴来了,麻烦帮忙解决谢谢。

//在线时间插件 by ninelife
require DISCUZ_ROOT.'./plugins/onlinetimeupdate.php';
//
<?php

/*
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [DISCUZ!]  Crossday Discuz! Board                                    ::
:: (c) 2001-2005 Comsenz Technology Ltd (www.discuz.com)                ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Author:  Crossday (tech@discuz.com) Cnteacher (cnteacher@discuz.com) ::
:: Version: 2.5F   2004/10/01 05:15                                     ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
*/

error_reporting(E_ERROR | E_WARNING | E_PARSE);

set_magic_quotes_runtime(0);

define('IN_DISCUZ', TRUE);
define('DISCUZ_ROOT', substr(dirname(__FILE__), 0, -7));

$mtime = explode(' ', microtime());
$discuz_starttime = $mtime[1] + $mtime[0];

$magic_quotes_gpc = get_magic_quotes_gpc();
$register_globals = @ini_get('register_globals');

if ( @phpversion() < '4.1.0'){
        $_COOKIE =& $HTTP_COOKIE_VARS;
        $_SERVER =& $HTTP_SERVER_VARS;
        $_FILES =& $HTTP_POST_FILES;
        $_GET =& $HTTP_GET_VARS;
        $_POST =& $HTTP_POST_VARS;
}

if(!$register_globals || !$magic_quotes_gpc) {
        @extract(daddslashes($_POST), EXTR_OVERWRITE);
        @extract(daddslashes($_GET ), EXTR_OVERWRITE);
        if(!$magic_quotes_gpc) {
                $_SERVER = daddslashes($_SERVER);
                $_COOKIE = daddslashes($_COOKIE);
        }
        if(!$register_globals && is_array($_FILES) && count($_FILES)) {
                foreach(daddslashes($_FILES) as $key => $val) {
                        $$key = $val['tmp_name'];
                        ${$key.'_name'} = $val['name'];
                        ${$key.'_size'} = $val['size'];
                        ${$key.'_type'} = $val['type'];
                }
        }
}

require DISCUZ_ROOT.'./config.php';
require DISCUZ_ROOT.'./include/global.php';
require DISCUZ_ROOT.'./include/db_'.$database.'.php';

$timestamp = time();

$PHP_SELF = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
$boardurl = 'http://'.$_SERVER['HTTP_HOST'].substr($PHP_SELF, 0, strrpos($PHP_SELF, '/') + 1);
$discuz_root = DISCUZ_ROOT;
$url_redirect = '';

if(getenv('HTTP_CLIENT_IP')) {
        $onlineip = getenv('HTTP_CLIENT_IP');
} elseif(getenv('HTTP_X_FORWARDED_FOR')) {
        list($onlineip) = explode(',', getenv('HTTP_X_FORWARDED_FOR'));
} elseif(getenv('REMOTE_ADDR')) {
        $onlineip = getenv('REMOTE_ADDR');
} else {
        $onlineip = $_SERVER['REMOTE_ADDR'];
}

$_DSESSION = $_DCACHE = array();

$cachelost = (@include DISCUZ_ROOT.'./forumdata/cache/cache_settings.php') ? '' : 'settings';

@extract($_DCACHE['settings'], EXTR_OVERWRITE);

$tables = array('access', 'admingroups', 'adminsessions', 'attachments', 'attachtypes', 'announcements', 'banned', 'bbcodes', 'caches','failedlogins', 'favorites','forumlinks', 'forums', 'karmalog', 'members', 'onlinelist', 'polls', 'posts', 'ranks', 'searchindex', 'sessions', 'settings','smilies', 'stats', 'styles', 'stylevars', 'subscriptions', 'templates', 'threads', 'pms', 'usergroups', 'words', 'buddys','plugins','plugins_settings');

if (count($plugins_table)) $tables = array_merge($plugins_table,$tables);

foreach($tables as $tablename) {
        ${'table_'.$tablename} = $tablepre.$tablename;
}
unset($tablename, $plugins_table);


if(defined('CURRSCRIPT') && in_array(CURRSCRIPT, array('index', 'forumdisplay', 'viewthread', 'post', 'pm'))) {
        $cachelost .= (@include DISCUZ_ROOT.'./forumdata/cache/cache_'.CURRSCRIPT.'.php') ? '' : ' '.CURRSCRIPT;
}

$db = new dbstuff;
$db->connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect);
$db->select_db($dbname);
unset($dbhost, $dbuser, $dbpw, $dbname, $pconnect);

$sid = isset($_GET['sid']) ? $_GET['sid'] :(isset($_POST['sid']) ? $_POST['sid'] :$_COOKIE['sid']);

$discuz_uid = $_COOKIE['_discuz_uid'];
$discuz_pw = $_COOKIE['_discuz_pw'];
$discuz_secques = $_COOKIE['_discuz_secques'];

$newpm = $newpmexists = $sessionexists = $adminid = $adminglobal = $user_lastactivity = $is_sessionuser = 0;

$userinfo="m.uid AS discuz_uid, m.username AS discuz_user, m.password AS discuz_pw, m.adminid, m.groupid, m.email, m.timeoffset,m.tpp, m.ppp, m.credit, m.timeformat, m.dateformat, m.signature, m.invisible, m.lastvisit, m.lastactivity as user_lastactivity, m.lastpost, m.newpm, m.accessmasks, m.regdate";

if($sid) {
        if($discuz_uid) {
                $query = $db->query("SELECT s.sid, s.styleid, s.groupid='6' AS ipbanned, $userinfo FROM $table_sessions s, $table_members m WHERE m.uid=s.uid AND s.sid='$sid' AND CONCAT_WS('.',s.ip1,s.ip2,s.ip3,s.ip4)='$onlineip' AND m.uid='$discuz_uid' AND m.password='$discuz_pw' AND m.secques='$discuz_secques'");
        } else {
                $query = $db->query("SELECT sid, uid AS sessionuid, groupid, groupid='6' AS ipbanned, styleid FROM $table_sessions WHERE sid='$sid' AND CONCAT_WS('.',ip1,ip2,ip3,ip4)='$onlineip'");
        }
        if($_DSESSION = $db->fetch_array($query)) {
                $sessionexists = 1;
                if(!empty($_DSESSION['sessionuid'])) {
                        $query = $db->query("SELECT $userinfo FROM $table_members m WHERE uid='$_DSESSION[sessionuid]'");
                        $_DSESSION = array_merge($_DSESSION, $db->fetch_array($query));
                        $is_sessionuser = 1;
                }
        } else {
                $query = $db->query("SELECT sid, groupid, groupid='6' AS ipbanned, styleid FROM $table_sessions WHERE sid='$sid' AND CONCAT_WS('.',ip1,ip2,ip3,ip4)='$onlineip'");
                if($_DSESSION = $db->fetch_array($query)) {
                        clearcookies();
                        $sessionexists = 1;
                }
        }
}
if(!$sessionexists) {
        if($discuz_uid) {
                $query = $db->query("SELECT $userinfo ,m.styleid FROM $table_members m WHERE uid='$discuz_uid' AND password='$discuz_pw' AND secques='$discuz_secques'");
                if(!($_DSESSION = $db->fetch_array($query))) {
                        clearcookies();
                }
        }

        if(ipbanned($onlineip)) {
                $_DSESSION['ipbanned'] = 1;
        }

        $sid = random(6);
}

@extract($_DSESSION, EXTR_OVERWRITE);

$lastvisit = empty($lastvisit) ? $timestamp - 86400 : $lastvisit;

if(empty($discuz_uid) || empty($discuz_user)) {
        $discuz_user = '';
        $discuz_uid = $adminid = $credit =0;
        $groupid = $groupid != 6 ? 7 : 6;
} else {
        $discuz_userss = $discuz_user;
        $discuz_user = addslashes($discuz_user);
        $credit = intval($credit);
}

define('FORMHASH', formhash());

if($statstatus) {
        require DISCUZ_ROOT.'./include/counter.php';
}

if($sid != $_COOKIE['sid']) {
        setcookie('sid', $sid, $timestamp + 2592000, $cookiepath, $cookiedomain);
}

$tpp = empty($_DSESSION['tpp']) ? $topicperpage : $_DSESSION['tpp'];
$ppp = empty($_DSESSION['ppp']) ? $postperpage : $_DSESSION['ppp'];

if($discuz_uid && $accessmasks) {
        $accessadd1 = ', a.allowview, a.allowpost, a.allowreply, a.allowgetattach';
        $accessadd2 = "LEFT JOIN $table_access a ON a.uid='$discuz_uid' AND a.fid=f.fid";
} else {
        $accessadd1 = $accessadd2 = '';
}

if(!empty($tid)){
        $query = $db->query("SELECT f.* $accessadd1 , t.* FROM $table_forums f, $table_threads t $accessadd2 WHERE t.tid='".intval($tid)."' AND f.fid=t.fid LIMIT 1");
        $forum = $db->fetch_array($query);
        $fid = $forum['fid'];
}elseif(!empty($fid)) {
        $query = $db->query("SELECT f.* $accessadd1 FROM $table_forums f $accessadd2 WHERE f.fid='".intval($fid)."'", 'CACHE');
        $forum = $db->fetch_array($query);
}
$styleid = !empty($_GET['styleid']) ? $_GET['styleid'] :
                (!empty($_POST['styleid']) ? $_POST['styleid'] :
                (!empty($_DSESSION['styleid']) ? $_DSESSION['styleid'] :
                $_DCACHE['settings']['styleid']));

if(@!include DISCUZ_ROOT.'./forumdata/cache/style_'.intval(!empty($forum['styleid']) ? $forum['styleid'] : $styleid).'.php') {
        $styleid = $_DCACHE['settings']['styleid'];
        $cachelost .= (@include DISCUZ_ROOT.'./forumdata/cache/style_'.$styleid.'.php') ? '' : ' style_'.$styleid;
}

$groupid = $ipbanned ? 6 : (empty($groupid) ? 7 : $groupid);
$cachelost .= (@include DISCUZ_ROOT.'./forumdata/cache/usergroup_'.$groupid.'.php') ? '' : ' usergroup_'.$groupid;

//adminidcheck
if($adminid >0 && $adminid != $groupid) {
        $cachelost .= (@include DISCUZ_ROOT.'./forumdata/cache/admingroup_'.$adminid.'.php') ? '' : ' admingroup_'.$groupid;
} elseif($adminid<1) {
        $alloweditpost  = $alloweditpoll = $allowdelpost = $allowmassprune = $allowcensorword = $allowviewip = $allowbanip = $allowedituser = $allowbanuser  = $allowpostannounce = $allowviewlog = $disablepostctrl = 0;
        if(!$errorreport) error_reporting(0);
}

$isadmin = ($adminid == 1)? 1 : 0;

if($cachelost) {
        require DISCUZ_ROOT.'./include/cache.php';
        updatecache();
        dexit('Cache List: '.$cachelost.'<br>Caches successfully created, please refresh.');
}

if($nocacheheaders) {
        @header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
        @header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
        @header('Cache-Control: no-store, no-cache, must-revalidate');
        @header('Cache-Control: post-check=0, pre-check=0', false);
        @header('Pragma: no-cache');
}
if($headercharset) {
        @header('Content-Type: text/html; charset='.CHARSET);
}

$gzipcompress ? ob_start('ob_gzhandler') : ob_start();

if(isset($allowvisit) && $allowvisit == 0) {
        setcookie('_discuz_uid', $discuz_uid, $timestamp + 86400 * 365, $cookiepath, $cookiedomain);
        setcookie('_discuz_pw', $discuz_pw, $timestamp + 86400 * 365, $cookiepath, $cookiedomain);
        setcookie('_discuz_secques', $discuz_secques, $timestamp + 86400 * 365, $cookiepath, $cookiedomain);
        showmessage('user_banned', NULL, 'HALTED');
} elseif($bbclosed && !((defined('CURRSCRIPT') && CURRSCRIPT == 'logging' && $action == 'login') || $adminid == 1)) {
        clearcookies();
        showmessage($closedreason ? $closedreason : 'board_closed');
}

function daddslashes(&$string, $force = 0) {
        if(!$GLOBALS['magic_quotes_gpc'] || $force) {
                if(is_array($string) && count($string)) {
                        foreach($string as $key => $val) {
                                $string[$key] = daddslashes($val, $force);
                        }
                }elseif($string) {
                        $string = addslashes($string);
                }else{
                        $string = False;
                }
        }
        return $string;
}

?>

[ 本帖最后由 skyde20 于 2005-8-22 17:44 编辑 ]
回复

使用道具 举报

 楼主| ninelife 发表于 2005-8-22 17:48:53 | 显示全部楼层
  1. <?php

  2. /*
  3. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  4. :: [DISCUZ!]  Crossday Discuz! Board                                    ::
  5. :: (c) 2001-2005 Comsenz Technology Ltd ([url]www.discuz.com)[/url]                ::
  6. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  7. :: Author:  Crossday ([email]tech@discuz.com[/email]) Cnteacher ([email]cnteacher@discuz.com[/email]) ::
  8. :: Version: 2.5F   2004/10/01 05:15                                     ::
  9. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  10. */

  11. error_reporting(E_ERROR | E_WARNING | E_PARSE);

  12. set_magic_quotes_runtime(0);

  13. define('IN_DISCUZ', TRUE);
  14. define('DISCUZ_ROOT', substr(dirname(__FILE__), 0, -7));

  15. $mtime = explode(' ', microtime());
  16. $discuz_starttime = $mtime[1] + $mtime[0];

  17. $magic_quotes_gpc = get_magic_quotes_gpc();
  18. $register_globals = @ini_get('register_globals');

  19. if ( @phpversion() < '4.1.0'){
  20.         $_COOKIE =& $HTTP_COOKIE_VARS;
  21.         $_SERVER =& $HTTP_SERVER_VARS;
  22.         $_FILES =& $HTTP_POST_FILES;
  23.         $_GET =& $HTTP_GET_VARS;
  24.         $_POST =& $HTTP_POST_VARS;
  25. }

  26. if(!$register_globals || !$magic_quotes_gpc) {
  27.         @extract(daddslashes($_POST), EXTR_OVERWRITE);
  28.         @extract(daddslashes($_GET ), EXTR_OVERWRITE);
  29.         if(!$magic_quotes_gpc) {
  30.                 $_SERVER = daddslashes($_SERVER);
  31.                 $_COOKIE = daddslashes($_COOKIE);
  32.         }
  33.         if(!$register_globals && is_array($_FILES) && count($_FILES)) {
  34.                 foreach(daddslashes($_FILES) as $key => $val) {
  35.                         $$key = $val['tmp_name'];
  36.                         ${$key.'_name'} = $val['name'];
  37.                         ${$key.'_size'} = $val['size'];
  38.                         ${$key.'_type'} = $val['type'];
  39.                 }
  40.         }
  41. }

  42. require DISCUZ_ROOT.'./config.php';
  43. require DISCUZ_ROOT.'./include/global.php';
  44. require DISCUZ_ROOT.'./include/db_'.$database.'.php';

  45. $timestamp = time();

  46. $PHP_SELF = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
  47. $boardurl = 'http://'.$_SERVER['HTTP_HOST'].substr($PHP_SELF, 0, strrpos($PHP_SELF, '/') + 1);
  48. $discuz_root = DISCUZ_ROOT;
  49. $url_redirect = '';

  50. if(getenv('HTTP_CLIENT_IP')) {
  51.         $onlineip = getenv('HTTP_CLIENT_IP');
  52. } elseif(getenv('HTTP_X_FORWARDED_FOR')) {
  53.         list($onlineip) = explode(',', getenv('HTTP_X_FORWARDED_FOR'));
  54. } elseif(getenv('REMOTE_ADDR')) {
  55.         $onlineip = getenv('REMOTE_ADDR');
  56. } else {
  57.         $onlineip = $_SERVER['REMOTE_ADDR'];
  58. }

  59. $_DSESSION = $_DCACHE = array();

  60. $cachelost = (@include DISCUZ_ROOT.'./forumdata/cache/cache_settings.php') ? '' : 'settings';

  61. @extract($_DCACHE['settings'], EXTR_OVERWRITE);

  62. $tables = array('access', 'admingroups', 'adminsessions', 'attachments', 'attachtypes', 'announcements', 'banned', 'bbcodes', 'caches','failedlogins', 'favorites','forumlinks', 'forums', 'karmalog', 'members', 'onlinelist', 'polls', 'posts', 'ranks', 'searchindex', 'sessions', 'settings','smilies', 'stats', 'styles', 'stylevars', 'subscriptions', 'templates', 'threads', 'pms', 'usergroups', 'words', 'buddys','plugins','plugins_settings');

  63. if (count($plugins_table)) $tables = array_merge($plugins_table,$tables);

  64. foreach($tables as $tablename) {
  65.         ${'table_'.$tablename} = $tablepre.$tablename;
  66. }
  67. unset($tablename, $plugins_table);


  68. if(defined('CURRSCRIPT') && in_array(CURRSCRIPT, array('index', 'forumdisplay', 'viewthread', 'post', 'pm'))) {
  69.         $cachelost .= (@include DISCUZ_ROOT.'./forumdata/cache/cache_'.CURRSCRIPT.'.php') ? '' : ' '.CURRSCRIPT;
  70. }

  71. $db = new dbstuff;
  72. $db->connect($dbhost, $dbuser, $dbpw, $dbname, $pconnect);
  73. $db->select_db($dbname);
  74. unset($dbhost, $dbuser, $dbpw, $dbname, $pconnect);

  75. $sid = isset($_GET['sid']) ? $_GET['sid'] :(isset($_POST['sid']) ? $_POST['sid'] :$_COOKIE['sid']);

  76. $discuz_uid = $_COOKIE['_discuz_uid'];
  77. $discuz_pw = $_COOKIE['_discuz_pw'];
  78. $discuz_secques = $_COOKIE['_discuz_secques'];

  79. $newpm = $newpmexists = $sessionexists = $adminid = $adminglobal = $user_lastactivity = $is_sessionuser = 0;

  80. $userinfo="m.uid AS discuz_uid, m.username AS discuz_user, m.password AS discuz_pw, m.adminid, m.groupid, m.email, m.timeoffset,m.tpp, m.ppp, m.credit, m.timeformat, m.dateformat, m.signature, m.invisible, m.lastvisit, m.lastactivity as user_lastactivity, m.lastpost, m.newpm, m.accessmasks, m.regdate";

  81. if($sid) {
  82.         if($discuz_uid) {
  83.                 $query = $db->query("SELECT s.sid, s.styleid, s.groupid='6' AS ipbanned, $userinfo FROM $table_sessions s, $table_members m WHERE m.uid=s.uid AND s.sid='$sid' AND CONCAT_WS('.',s.ip1,s.ip2,s.ip3,s.ip4)='$onlineip' AND m.uid='$discuz_uid' AND m.password='$discuz_pw' AND m.secques='$discuz_secques'");
  84.         } else {
  85.                 $query = $db->query("SELECT sid, uid AS sessionuid, groupid, groupid='6' AS ipbanned, styleid FROM $table_sessions WHERE sid='$sid' AND CONCAT_WS('.',ip1,ip2,ip3,ip4)='$onlineip'");
  86.         }
  87.         if($_DSESSION = $db->fetch_array($query)) {
  88.                 $sessionexists = 1;
  89.                 if(!empty($_DSESSION['sessionuid'])) {
  90.                         $query = $db->query("SELECT $userinfo FROM $table_members m WHERE uid='$_DSESSION[sessionuid]'");
  91.                         $_DSESSION = array_merge($_DSESSION, $db->fetch_array($query));
  92.                         $is_sessionuser = 1;
  93.                 }
  94.         } else {
  95.                 $query = $db->query("SELECT sid, groupid, groupid='6' AS ipbanned, styleid FROM $table_sessions WHERE sid='$sid' AND CONCAT_WS('.',ip1,ip2,ip3,ip4)='$onlineip'");
  96.                 if($_DSESSION = $db->fetch_array($query)) {
  97.                         clearcookies();
  98.                         $sessionexists = 1;
  99.                 }
  100.         }
  101. }
  102. if(!$sessionexists) {
  103.         if($discuz_uid) {
  104.                 $query = $db->query("SELECT $userinfo ,m.styleid FROM $table_members m WHERE uid='$discuz_uid' AND password='$discuz_pw' AND secques='$discuz_secques'");
  105.                 if(!($_DSESSION = $db->fetch_array($query))) {
  106.                         clearcookies();
  107.                 }
  108.         }

  109.         if(ipbanned($onlineip)) {
  110.                 $_DSESSION['ipbanned'] = 1;
  111.         }

  112.         $sid = random(6);
  113. }

  114. @extract($_DSESSION, EXTR_OVERWRITE);

  115. $lastvisit = empty($lastvisit) ? $timestamp - 86400 : $lastvisit;

  116. if(empty($discuz_uid) || empty($discuz_user)) {
  117.         $discuz_user = '';
  118.         $discuz_uid = $adminid = $credit =0;
  119.         $groupid = $groupid != 6 ? 7 : 6;
  120. } else {
  121.         $discuz_userss = $discuz_user;
  122.         $discuz_user = addslashes($discuz_user);
  123.         $credit = intval($credit);
  124. }

  125. define('FORMHASH', formhash());

  126. if($statstatus) {
  127.         require DISCUZ_ROOT.'./include/counter.php';
  128. }

  129. if($sid != $_COOKIE['sid']) {
  130.         setcookie('sid', $sid, $timestamp + 2592000, $cookiepath, $cookiedomain);
  131. }

  132. $tpp = empty($_DSESSION['tpp']) ? $topicperpage : $_DSESSION['tpp'];
  133. $ppp = empty($_DSESSION['ppp']) ? $postperpage : $_DSESSION['ppp'];

  134. if($discuz_uid && $accessmasks) {
  135.         $accessadd1 = ', a.allowview, a.allowpost, a.allowreply, a.allowgetattach';
  136.         $accessadd2 = "LEFT JOIN $table_access a ON a.uid='$discuz_uid' AND a.fid=f.fid";
  137. } else {
  138.         $accessadd1 = $accessadd2 = '';
  139. }

  140. if(!empty($tid)){
  141.         $query = $db->query("SELECT f.* $accessadd1 , t.* FROM $table_forums f, $table_threads t $accessadd2 WHERE t.tid='".intval($tid)."' AND f.fid=t.fid LIMIT 1");
  142.         $forum = $db->fetch_array($query);
  143.         $fid = $forum['fid'];
  144. }elseif(!empty($fid)) {
  145.         $query = $db->query("SELECT f.* $accessadd1 FROM $table_forums f $accessadd2 WHERE f.fid='".intval($fid)."'", 'CACHE');
  146.         $forum = $db->fetch_array($query);
  147. }
  148. $styleid = !empty($_GET['styleid']) ? $_GET['styleid'] :
  149.                 (!empty($_POST['styleid']) ? $_POST['styleid'] :
  150.                 (!empty($_DSESSION['styleid']) ? $_DSESSION['styleid'] :
  151.                 $_DCACHE['settings']['styleid']));

  152. if(@!include DISCUZ_ROOT.'./forumdata/cache/style_'.intval(!empty($forum['styleid']) ? $forum['styleid'] : $styleid).'.php') {
  153.         $styleid = $_DCACHE['settings']['styleid'];
  154.         $cachelost .= (@include DISCUZ_ROOT.'./forumdata/cache/style_'.$styleid.'.php') ? '' : ' style_'.$styleid;
  155. }

  156. $groupid = $ipbanned ? 6 : (empty($groupid) ? 7 : $groupid);
  157. $cachelost .= (@include DISCUZ_ROOT.'./forumdata/cache/usergroup_'.$groupid.'.php') ? '' : ' usergroup_'.$groupid;

  158. //adminidcheck
  159. if($adminid >0 && $adminid != $groupid) {
  160.         $cachelost .= (@include DISCUZ_ROOT.'./forumdata/cache/admingroup_'.$adminid.'.php') ? '' : ' admingroup_'.$groupid;
  161. } elseif($adminid<1) {
  162.         $alloweditpost  = $alloweditpoll = $allowdelpost = $allowmassprune = $allowcensorword = $allowviewip = $allowbanip = $allowedituser = $allowbanuser  = $allowpostannounce = $allowviewlog = $disablepostctrl = 0;
  163.         if(!$errorreport) error_reporting(0);
  164. }

  165. $isadmin = ($adminid == 1)? 1 : 0;

  166. if($cachelost) {
  167.         require DISCUZ_ROOT.'./include/cache.php';
  168.         updatecache();
  169.         dexit('Cache List: '.$cachelost.'<br>Caches successfully created, please refresh.');
  170. }

  171. if($nocacheheaders) {
  172.         @header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
  173.         @header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
  174.         @header('Cache-Control: no-store, no-cache, must-revalidate');
  175.         @header('Cache-Control: post-check=0, pre-check=0', false);
  176.         @header('Pragma: no-cache');
  177. }
  178. if($headercharset) {
  179.         @header('Content-Type: text/html; charset='.CHARSET);
  180. }

  181. $gzipcompress ? ob_start('ob_gzhandler') : ob_start();

  182. if(isset($allowvisit) && $allowvisit == 0) {
  183.         setcookie('_discuz_uid', $discuz_uid, $timestamp + 86400 * 365, $cookiepath, $cookiedomain);
  184.         setcookie('_discuz_pw', $discuz_pw, $timestamp + 86400 * 365, $cookiepath, $cookiedomain);
  185.         setcookie('_discuz_secques', $discuz_secques, $timestamp + 86400 * 365, $cookiepath, $cookiedomain);
  186.         showmessage('user_banned', NULL, 'HALTED');
  187. } elseif($bbclosed && !((defined('CURRSCRIPT') && CURRSCRIPT == 'logging' && $action == 'login') || $adminid == 1)) {
  188.         clearcookies();
  189.         showmessage($closedreason ? $closedreason : 'board_closed');
  190. }

  191. function daddslashes(&$string, $force = 0) {
  192.         if(!$GLOBALS['magic_quotes_gpc'] || $force) {
  193.                 if(is_array($string) && count($string)) {
  194.                         foreach($string as $key => $val) {
  195.                                 $string[$key] = daddslashes($val, $force);
  196.                         }
  197.                 }elseif($string) {
  198.                         $string = addslashes($string);
  199.                 }else{
  200.                         $string = False;
  201.                 }
  202.         }
  203.         return $string;
  204. }
  205. //在线时间插件 by ninelife
  206. require DISCUZ_ROOT.'./plugins/onlinetimeupdate.php';
  207. //
  208. ?>
复制代码
回复

使用道具 举报

skyde20 发表于 2005-8-22 17:51:01 | 显示全部楼层
啊,不好意思,我刚刚贴出来才发现
//在线时间插件 by ninelife
require DISCUZ_ROOT.'./plugins/onlinetimeupdate.php';
//
我贴错了地方,应该贴 ?>前面,贴到顶部去了 晕

修改了一下,现在页面变成白的了。

是不是要重新开头安装一遍
回复

使用道具 举报

 楼主| ninelife 发表于 2005-8-22 17:51:46 | 显示全部楼层
原帖由 skyde20 于 2005-8-22 17:51 发表
啊,不好意思,我刚刚贴出来才发现
//在线时间插件 by ninelife
require DISCUZ_ROOT.'./plugins/onlinetimeupdate.php';
//
我贴错了地方,应该贴 ?>前面,贴到顶部去了 晕

修改了一下,现在页面变成 ...

重新检查安装步骤,更新缓存看看
回复

使用道具 举报

skyde20 发表于 2005-8-22 17:53:59 | 显示全部楼层
好的收到,我再去试试谢谢,第一次做这些东西都不懂 ^^
回复

使用道具 举报

DW5 发表于 2005-8-22 18:13:11 | 显示全部楼层
ninelife ,我的后台没有设置升级时间的选项啊,只有一些很普通的设置
回复

使用道具 举报

 楼主| ninelife 发表于 2005-8-22 18:15:06 | 显示全部楼层
原帖由 DW5 于 2005-8-22 18:13 发表
ninelife ,我的后台没有设置升级时间的选项啊,只有一些很普通的设置

后台-插件设置-在线时间
回复

使用道具 举报

DW5 发表于 2005-8-22 19:30:32 | 显示全部楼层
原来在线时间这几个字也是link.....谢谢了!
回复

使用道具 举报

jack3399 发表于 2005-8-22 19:45:53 | 显示全部楼层
請問左邊資料欄 [狀態]下方要增加顯示個人[總在線時間]及[本月在線時間], 應該怎麼做呢?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-22 14:42 , Processed in 0.033155 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表