AL8 Forum
   登錄註冊幫助


標題: SP1 050311 到 SP1 050401 手工升級步驟
 alan888
 0000001
Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9Rank: 9

頭銜: Administrator

自述: skywalker

帖子: 21695

精華: 195

積分: 556085 點

現金: 78355940 元

存款: 144392954 元

閱讀權限: 120

註冊: 2003-11-13

來自: Hong Kong

狀態: 離線
 
發表於 2005-4-2 02:23  資料  個人空間  主頁 短消息  加為好友 
SP1 050311 到 SP1 050401 手工升級步驟

SP1 050311 到 SP1 050401 手工升級步驟:

原帖:
http://www.freediscuz.net/bbs/viewthread.php?tid=35410

memcp.php

if(!$avatarimagesize || ($maxavatarsize && @filesize($avatartarget) > $maxavatarsize)) {
        @unlink($avatartarget);
        showmessage($avatarimagesize ? 'profile_avatar_toobig' : 'profile_avatar_invalid');
}

之下添加--->

foreach (array('gif', 'jpg', 'png') as $ext) {
        if($ext != $avatarext) {
                @unlink(DISCUZ_ROOT.'./customavatars/'.$discuz_uid.'.'.$ext);
        }
}



if(!@copy($customavatar, $avatartarget)) {

之上添加--->

if ($customavatar_size > 102400 && $customavatar_size > $maxattachsize) {
        showmessage('post_attachment_toobig');
}

topicadmin. php

$db->query("DELETE FROM $table_posts WHERE tid IN ($tids)");

之下添加--->

if ($forum['type'] == 'sub') {
        updateforumcount($fup['fid']);
}



$db->query("DELETE FROM $table_posts WHERE tid='$tid'");

之下添加--->

$db->query("DELETE FROM $table_polls WHERE tid='$tid'");

刪除4處

accesscheck($query);



$query = $db->query("SELECT * FROM $table_threads WHERE tid IN($tids) ");

之下添加--->

accesscheck($query);
$query = $db->query("SELECT * FROM $table_threads WHERE tid IN($tids) ");

include/editpost.php

updateforumcount($fid);
updatethreadcount($tid);

修改為

updatethreadcount($tid);
updateforumcount($fid);



$modaction = 'delposts';



$modaction = 'delete';

這兩處的上面分別添加--->

if($forum['type'] == 'sub' && $forum['fup']) {
        updateforumcount($forum['fup']);
}

logging.php

$cookietime = empty($_cookietime) ? 0 : $timestamp + $_cookietime;

之下添加--->

$secques = empty($secques) ? "0" : $secques;

include/common.php

$discuz_secques = $_COOKIE['_discuz_secques'];

改成--->

$discuz_secques = empty($_COOKIE['_discuz_secques']) ? '' : $_COOKIE['_discuz_secques'];



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

改成--->

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

search.php

$query = $db->query("SELECT searchid, dateline, ('$searchctrl'<>'0' AND ".($uid ? "uid='$uid'" : "useip='$onlineip'")." AND dateline>$timestamp-$searchctrl) AS flood, (searchstring='$searchstring' AND expiration>'$timestamp') AS indexvalid FROM $table_searchindex WHERE ('$searchctrl'<>'0' AND ".($uid ? "uid='$uid'" : "useip='$onlineip'")." AND dateline>$timestamp-$searchctrl) OR (searchstring='$searchstring' AND expiration>'$timestamp') ORDER BY flood");

改成--->

$query = $db->query("SELECT searchid, dateline, ('$searchctrl'<>'0' AND ".($discuz_uid ? "uid='$discuz_uid'" : "useip='$onlineip'")." AND dateline>$timestamp-$searchctrl) AS flood, (searchstring='$searchstring' AND expiration>'$timestamp') AS indexvalid FROM $table_searchindex WHERE ('$searchctrl'<>'0' AND ".($discuz_uid ? "uid='$discuz_uid'" : "useip='$onlineip'")." AND dateline>$timestamp-$searchctrl) OR (searchstring='$searchstring' AND expiration>'$timestamp') ORDER BY flood");

viewthread.php

$followforumadd = $followforum ? "fid in ($fid{$followforum})" : "fid=$fid";
$query = $db->query("SELECT * FROM $table_threads WHERE $followforumadd ORDER BY lastpost DESC LIMIT 1");
if(!$thread = $db->fetch_array($query)) {
        showmessage('thread_nonexistence');
}
header("Location: {$boardurl}viewthread.php?tid=$thread[tid]&sid=$sid");
exit();

改成--->

$followforumadd = $followforum ? "f.fid in ($fid{$followforum})" : "f.fid=$fid";
$query = $db->query("SELECT f.* $accessadd1 , t.* FROM $table_forums f, $table_threads t $accessadd2 WHERE $followforumadd AND f.fid=t.fid ORDER BY t.lastpost DESC LIMIT 1");
if(!$forum = $db->fetch_array($query)) {
                showmessage('thread_nonexistence');
}
$thread = $forum;
$fid = $forum['fid'];
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;
}

admin/settings.php

$db->query("ALTER TABLE $table_sessions MAX_ROWS=$settingsnew[maxonlines]");

之上添加--->

if ($settingsnew['maxonlines'] < $settings['maxonlines']) {
        $db->query("DELETE FROM $table_sessions");
}

include/global.php

mt_srand((double)microtime() * 1000000);

改成--->

$seed = explode(' ', microtime());
mt_srand(((float)$seed[0] + (float)$seed[1]) * 1000000);




之上添加--->

if (!function_exists('array_fill')){
        function array_fill($start_index, $num, $mixed_value) {
                $ret = array();
                for ($i=1; $i<=$num; $i++) {
                        $ret[$i] = $mixed_value;
                }
                return $ret;
        }
}

member.php

$db->query("UPDATE $table_members SET identifying='$timestamp\t2\t$idstring'");

改成--->

$db->query("UPDATE $table_members SET identifying='$timestamp\t2\t$idstring' WHERE uid='$discuz_uid' AND adminid='0' AND groupid='8'");

admin/forums.php

$db->query("UPDATE $table_members SET groupid='3' WHERE username IN ($modlist) AND groupid NOT IN (1,2,3,4,5,6,7,8) AND adminid<>'-1' ");

改成--->

$member_groups = '0';
$query = $db->query("SELECT groupid FROM $table_usergroups WHERE type='member'");
while ($tmp = $db->fetch_array($query)) {
        $member_groups .= ",$tmp[groupid]";
}
$db->query("UPDATE $table_members SET groupid='3' WHERE username IN ($modlist) AND groupid IN ($member_groups)");

admin/members.php

echo '<br><form method="post" action="admincp.php?action=mod_members&username='.rawurlencode($member['username']).'&formhash='.FORMHASH.'>';

改成--->

echo '<br><form method="post" action="admincp.php?action=mod_members&username='.rawurlencode($member['username']).'&formhash='.FORMHASH.'">';

templates/default/actions.lang.php

255 => '提示信息/頁面跳轉'

之上添加--->

254 => '無效的越權訪問',

admin/database.php

$checked = $table[$tableTypeName] == 'MyISAM' ? 'checked' : 'disabled';

改成--->

$checked = ($table[$tableTypeName] == 'MyISAM' || $table[$tableTypeName] == 'InnoDB') ? 'checked' : 'disabled';

templates\default\forumdisplay.htm

<!--{elseif $ismoderator && !$modshortcut && allowdelpost}-->

改成--->

<!--{elseif $ismoderator && !$modshortcut && $allowdelpost}-->

admincp.php

$discuz_action = 161;

之下添加--->

$cpsuccess = '';





 AL8 Forum © All rights reserved.
頂部
 richardmak
 0019886
Rank: 1

頭銜: Newbie

帖子: 14

精華: 0

積分: 185 點

現金: 127 元

存款: 0 元

閱讀權限: 10

註冊: 2005-4-26

狀態: 離線
 
發表於 2005-5-23 16:31  資料  個人空間  短消息  加為好友 
有咩分別架∼??




 AL8 Forum © All rights reserved.
頂部
 路人甲
 0018100
Rank: 1

頭銜: Newbie

帖子: 21

精華: 0

積分: 120 點

現金: 6 元

存款: 0 元

閱讀權限: 10

註冊: 2005-3-23

來自: 路邊

狀態: 離線
 
發表於 2005-5-23 18:34  資料  個人空間  短消息  加為好友  ICQ 狀態
點解我更新左之後 , 在線列表 d 人都顯示唔到 .
永遠都系零人在線 ......




 AL8 Forum © All rights reserved.
頂部
 ivanboy2
 0012485
Rank: 4Rank: 4Rank: 4Rank: 4
點擊查看 ivanboy2 的詳細資料

頭銜: Lord

帖子: 349

精華: 0

積分: 3981 點

現金: 446 元

存款: 0 元

閱讀權限: 25

註冊: 2004-12-2

狀態: 離線
 
發表於 2005-5-28 08:18  資料  個人空間  短消息  加為好友 
我想問點先知道自己既2.5sp1係邊隻??




 AL8 Forum © All rights reserved.
頂部
 1kk
 0014523
Rank: 3Rank: 3Rank: 3
點擊查看 1kk 的詳細資料

頭銜: Conqueror

帖子: 211

精華: 0

積分: 2150 點

現金: 0 元

存款: 230 元

閱讀權限: 20

註冊: 2005-1-8

狀態: 離線
 
發表於 2005-8-11 17:31  資料  個人空間  短消息  加為好友 


QUOTE:
引用由 ivanboy2 於 2005-5-28 08:18 AM 發出的帖子內容
我想問點先知道自己既2.5sp1係邊隻??

我自己都唔知=.=
Help




 AL8 Forum © All rights reserved.
頂部
 學少爺
 0028031
Rank: 3Rank: 3Rank: 3

頭銜: Conqueror

帖子: 115

精華: 0

積分: 1010 點

現金: 27 元

存款: 10 元

閱讀權限: 20

註冊: 2005-8-6

狀態: 離線
 
發表於 2005-8-12 15:54  資料  個人空間  主頁 短消息  加為好友 
趕快來升級囉




 AL8 Forum © All rights reserved.
頂部
 hamu278
 0024014
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6
點擊查看 hamu278 的詳細資料

頭銜: Forum Legend

暱稱: 已激活的會員

自述: UID: 0024014

帖子: 5548

精華: 0

積分: 16182 點

現金: 2224 元

存款: 8535 元

閱讀權限: 70

註冊: 2005-6-18

狀態: 離線
 
發表於 2005-8-18 18:13  資料  個人空間  主頁 短消息  加為好友  添加 hamu278 為MSN好友 通過MSN和 hamu278 交談
SP1都有幾個版本?




提供 Discuz! 7.0 邀請碼
TECHNETCAL 免費空間 HKBNP 主機已轉 IP
 AL8 Forum © All rights reserved.
頂部
 chantsz
 0027243
Rank: 4Rank: 4Rank: 4Rank: 4

頭銜: Lord

帖子: 356

精華: 0

積分: 4590 點

現金: 127 元

存款: 3740 元

閱讀權限: 25

註冊: 2005-7-27

來自: 香港

狀態: 離線
 
發表於 2006-1-2 01:13  資料  個人空間  主頁 短消息  加為好友  添加 chantsz 為MSN好友 通過MSN和 chantsz 交談


QUOTE:
引用由 路人甲 於 2005-5-23 06:34 PM 發出的帖子內容   
點解我更新左之後 , 在線列表 d 人都顯示唔到 .
永遠都系零人在線 ......

當真???




本人的伺服器安放多個論壇.有意投放廣告者可PM我!
 AL8 Forum © All rights reserved.
頂部

聯繫我們 - AL8 Forum - 網頁空間由 I-SERVICES 提供 - Archiver - WAP
清除 Cookies, 當前時區 GMT+8, 現在時間是 2008-10-8 19:18
Processed in 0.025016 second(s), 7 queries , Gzip enabled
Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.