请选择 进入手机版 | 继续访问电脑版
设为首页收藏本站

Discuz! 官方站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

Discuz! X 最新研发动态 通过这个窗口,关注跟踪我们的研发进展 Discuz! 开发技术文库 - 给官方提建议

Discuz! X2 正式版下载 帮助网站实现一站式服务  商业支持服务咨询 下载 - 安装 - 常见问题 - 转换 - 讨论 - 购买

2012站长年会开启报名 限量船票免费发放 Discuz!十大荣誉用户评选 - Discuz!NT3.6发布 漫游引入QQ空间游戏 -一骑新区横扫三国-5d6d免费论坛

查看: 7859|回复: 80

[求助] 【0606升级补丁】手动修改升级方法! [复制链接]

Rank: 6Rank: 6

UID
429725
积分
1123
帖子
1121
威望
16
在线时间
0 小时
注册时间
2006-8-30
发表于 2008-6-6 17:30:38 |显示全部楼层
0606升级补丁手动修改升级方法!-------aしóиē乄穗

前言:今天官方又推出了0606补丁,我想肯定会有很多人和我一样郁闷,因为如果按照官方说的那样直接覆盖的话,以前安装的插件和一些修改可能都会泡汤,所以,我就把这次升级的文件和原文件作了一下对比,找出了文件修改的部分,大家可以根据下面的插作步骤来进行手动升级到0606。好了,废话不多说了,现在开始!

补充说明:下面有些文件只是修改了$Id的,如果您怕麻烦可以不用修改,但是出于对制作者的尊重,建议还是修改。

一、根目录下的文件:
campaign.php文件
查找:
  1.         $iframeurl = $campaign['url']."siteid=$insenz[siteid]&cid=$cid&s=".urlencode(insenz_authcode("sitename=$bbname&siteurl=$boardurl&username=$discuz_userss&uid=$discuz_uid&email=$email&grouptitle=$grouptitle", 'ENCODE', $insenz['authkey'])).'&'.$_SERVER['QUERY_STRING'];
复制代码
替换成:
  1.         $iframeurl = $campaign['url']."siteid=$insenz[siteid]&cid=$cid&s=".urlencode(insenz_authcode("sitename=$bbname&siteurl=$boardurl&username=$discuz_userss&uid=$discuz_uid&email=$email&grouptitle=$grouptitle&chaset=$chaset&uc_api=".UC_API, 'ENCODE', $insenz['authkey'])).'&'.$_SERVER['QUERY_STRING'];
复制代码
discuz_version.php文件
查找:
  1. define('DISCUZ_RELEASE', '20080429');
复制代码
修改为:
  1. define('DISCUZ_RELEASE', '20080606');
复制代码
eccredit.php文件
查找:
  1.         $Id: eccredit.php 13420 2008-04-14 10:20:32Z heyond $
复制代码
更换为:
  1.         $Id: eccredit.php 13771 2008-05-23 02:58:21Z liuqiang $
复制代码
查找:
  1.         $member['avatar'] = '<div class="avatar"><img src="'.discuz_uc_avatar($member['uid']).'" />';
复制代码
更换为:
  1.         $member['avatar'] = '<div class="avatar">'.discuz_uc_avatar($member['uid']);
复制代码
查找:
  1.                 $post['avatar'] .= '<br /><img src="'.$_DCACHE['usergroups'][$member['groupid']]['groupavatar'].'" border="0" alt="" />';
复制代码
更换为:
  1.                 $member['avatar'] .= '<br /><img src="'.$_DCACHE['usergroups'][$member['groupid']]['groupavatar'].'" border="0" alt="" />';
复制代码
forumdisplay.php文件
查找:
  1.         $Id: forumdisplay.php 12959 2008-03-19 07:22:07Z cnteacher $
复制代码
更换成:
  1.         $Id: forumdisplay.php 13795 2008-06-03 02:36:58Z monkey $
复制代码
查找并删除:
  1.         $forum['rules'] && $forum['rules'] = nl2br($forum['rules']);
复制代码
查找:
  1. $allowpost = $forum['allowpost'] != -1 ? $allowpost : false;
复制代码
在上面添加:
  1. $fastpost = $fastpost && !$forum['allowspecialonly'];
复制代码
查找:
  1. include template('forumdisplay');
复制代码
更换为:
  1. $smile = isset($_DCOOKIE['smile']) ? explode('D', $_DCOOKIE['smile']) : array();
  2. $stypeid = intval(!empty($stypeid) ? $stypeid : ($smile[3] != $styleid ? STYPEID : $smile[0]));
  3. $stypeid = isset($_DCACHE['smileytypes'][$stypeid]) ? $stypeid : (isset($_DCACHE['smileytypes'][STYPEID]) ? STYPEID : key($_DCACHE['smileytypes']));
  4. $smilies = $_DCACHE['smilies_display'][$stypeid];
  5. $scrollt = intval(!empty($scrollt) ? $scrollt : $smile[2]);
  6. $sm_page = (!isset($_GET['stypeid']) || $_GET['stypeid'] == $smile[0] ? $smile[1] : 1);
  7. $spp = $smcols * $smrows;
  8. $sm_multipage = multi(count($smilies), $spp, $sm_page, 'post.php?action=smilies&stypeid='.$stypeid.'&inajax=1&scrollt='.$scrollt, 0, 10, FALSE, TRUE);
  9. $smilies = arrayslice($smilies, $spp * ($sm_page - 1), $spp);
  10. dsetcookie('smile', $stypeid.'D'.$sm_page.'D'.$scrollt.'D'.$styleid, 86400 * 365);

  11. include template('forumdisplay');

  12. function arrayslice($array, $offset, $length) {
  13.         if(PHP_VERSION >= '5.0.2') {
  14.                 return array_slice($array, $offset, $length, TRUE);
  15.         } else {
  16.                 $array = array_chunk($array, $length, TRUE);
  17.                 return $array[$offset / $length];
  18.         }
  19. }
复制代码
index.php文件
查找:
  1.         $Id: index.php 13301 2008-04-08 02:46:07Z monkey $
复制代码
更换为:
  1.         $Id: index.php 13764 2008-05-19 03:14:01Z heyond $
复制代码
memcp.php文件
查找:
  1.         $Id: memcp.php 13427 2008-04-15 06:39:31Z heyond $
复制代码
更换为:
  1.         $Id: memcp.php 13660 2008-04-30 11:52:13Z monkey $
复制代码
查找:
  1.                                 if($outextcredits[$tocredits]['creditsrc'] != $fromcredits) {
复制代码
更换为:
  1.                                 if(!array_key_exists($fromcredits, $outextcredits[$tocredits]['creditsrc'])) {
复制代码
查找:
  1.                                 $netamount = floor($amount * $extcredits[$fromcredits]['outratio'] / $outextcredits[$tocredits]['ratio']);
复制代码
更换为:
  1.                                 $netamount = floor($amount * $extcredits[$fromcredits]['outratio'] / $outextcredits[$tocredits]['creditsrc'][$fromcredits]);
复制代码
查找:
  1.                         showmessage('credits_transaction_succeed', 'memcp.php?action=creditslog&operation=creditslog');
复制代码
在下面添加:
  1.                 } else {
  2.                         
  3.                         showmessage('undefined_action', NULL, 'HALTED');
  4.                
复制代码
post.php文件
查找:
  1.         $Id: post.php 13562 2008-04-24 02:59:57Z cnteacher $
复制代码
修改为:
  1.         $Id: post.php 13701 2008-05-08 07:45:17Z heyond $
复制代码
查找:
  1. if(empty($action)) {
复制代码
在上面添加:
  1. $smile = isset($_DCOOKIE['smile']) ? explode('D', $_DCOOKIE['smile']) : array();
  2. $stypeid = intval(!empty($stypeid) ? $stypeid : ($smile[3] != $styleid ? STYPEID : $smile[0]));
  3. $stypeid = isset($_DCACHE['smileytypes'][$stypeid]) ? $stypeid : (isset($_DCACHE['smileytypes'][STYPEID]) ? STYPEID : key($_DCACHE['smileytypes']));
  4. $smilies = $_DCACHE['smilies_display'][$stypeid];
  5. $scrollt = intval(!empty($scrollt) ? $scrollt : $smile[2]);

  6. $page = max(1, intval(isset($_GET['page']) ? $_GET['page'] : (!isset($_GET['stypeid']) || $_GET['stypeid'] == $smile[0] ? $smile[1] : 1)));
  7. $spp = $smcols * $smrows;
  8. $sm_multipage = multi(count($smilies), $spp, $page, 'post.php?action=smilies&stypeid='.$stypeid.'&inajax=1&scrollt='.$scrollt, 0, 10, FALSE, TRUE);
  9. $smilies = arrayslice($smilies, $spp * ($page - 1), $spp);

  10. dsetcookie('smile', $stypeid.'D'.$page.'D'.$scrollt.'D'.$styleid, 86400 * 365);
复制代码
查找:
  1.         $smile = isset($_DCOOKIE['smile']) ? explode('D', $_DCOOKIE['smile']) : array();
  2.         $stypeid = intval(!empty($stypeid) ? $stypeid : ($smile[3] != $styleid ? STYPEID : $smile[0]));
  3.         $stypeid = isset($_DCACHE['smileytypes'][$stypeid]) ? $stypeid : (isset($_DCACHE['smileytypes'][STYPEID]) ? STYPEID : key($_DCACHE['smileytypes']));
  4.         $smilies = $_DCACHE['smilies_display'][$stypeid];
  5.         $scrollt = intval(!empty($scrollt) ? $scrollt : $smile[2]);

  6.         $page = max(1, intval(isset($_GET['page']) ? $_GET['page'] : (!isset($_GET['stypeid']) || $_GET['stypeid'] == $smile[0] ? $smile[1] : 1)));
  7.         $spp = $smcols * $smrows;
  8.         $multipage = multi(count($smilies), $spp, $page, 'post.php?action=smilies&stypeid='.$stypeid.'&inajax=1&scrollt='.$scrollt, 0, 10, FALSE, TRUE);
  9.         $smilies = arrayslice($smilies, $spp * ($page - 1), $spp);

  10.         dsetcookie('smile', $stypeid.'D'.$page.'D'.$scrollt.'D'.$styleid, 86400 * 365);
  11.         include template('post_smilies');
  12.         exit;
复制代码
修改为:
  1.         include template('header');
  2.         include template('post_smilies');
  3.         include template('footer');
  4.         exit;
复制代码
tag.php文件
查找:
  1.         $Id: tag.php 13302 2008-04-08 02:47:22Z monkey $
复制代码
更换为:
  1.         $Id: tag.php 13775 2008-05-23 07:51:30Z monkey $
复制代码
查找:
  1.                 $requesttag = $db->result_first("SELECT tagname FROM {$tablepre}tags LIMIT ".rand(0, $_DCACHE['tags'][2] - 1).", 1", 0);
复制代码
在下面添加:
  1.         }
  2.         
  3.         if(empty($requesttag)) {
  4.                 exit;
复制代码
topicadmin.php文件
查找:
  1.         $Id: topicadmin.php 13613 2008-04-28 04:48:24Z liuqiang $
复制代码
更换为:
  1.         $Id: topicadmin.php 13728 2008-05-11 05:17:39Z cnteacher $
复制代码
查找:
  1.                 $modaction = $banned ? 'BNP' : 'UBN';

  2.                 checkreasonpm();

  3.                 $pids = $comma = '';
  4.                 foreach($posts as $k => $post) {
  5.                         $db->query("UPDATE {$tablepre}posts SET status='".bindec(substr(sprintf('%b', $post['status']), -2, 1).$banned)."' WHERE pid='$post[pid]'", 'UNBUFFERED');
  6.                         $pids = $comma.$post['pid'];
  7.                         $comma = ',';
  8.                 }
复制代码
修改为:
  1.                 $modaction = $banned ? 'BNP' : 'UBN';
  2.                 $newstatus = $banned ? 'status=(status | 1)' : 'status=(status & 254)';

  3.                 checkreasonpm();
  4.                 $db->query("UPDATE {$tablepre}posts SET $newstatus WHERE pid in($banpids) AND tid='$tid'");
复制代码
查找:
  1.                 procreportlog('', $pids);
复制代码
修改为:
  1.                 procreportlog('', $banpids);
复制代码
查找:
  1.                 showmessage('admin_nopermission', NULL, 'HALTED');
  2.         } else {
  3.                 $status = sprintf('%b', $post['status']);
  4.         }

  5.         if(!submitcheck('warnsubmit')) {
复制代码
修改为:
  1.                 showmessage('admin_nopermission', NULL, 'HALTED');
  2.         }

  3.         $status = $post['status'];
  4.         if(!submitcheck('warnsubmit')) {
复制代码
查找:
  1.                 $warned = substr($status, -2, 1);
复制代码
修改为:
  1.                 $warned = $status & 2;
复制代码
查找:
  1.                 $warned = $warned ? 1 : 0;
复制代码
修改为:
  1.                 $warned = $warned ? 2 : 0;
复制代码
查找:
  1.                 if(substr($status, -2, 1) && $warned) {
复制代码
修改为:
  1.                 if(($status & 2) && $warned) {
复制代码
查找:
  1.                 checkreasonpm();
复制代码
在上面添加:
  1.                 $newstatus = $warned ? ($status | 2) : ($status & 253);
复制代码
查找:
  1.                 $db->query("UPDATE {$tablepre}posts SET status='".bindec($warned.substr($status, -1, 1))."' WHERE pid='$pid'", 'UNBUFFERED');
复制代码
修改为:
  1.                 $db->query("UPDATE {$tablepre}posts SET status='$newstatus' WHERE pid='$pid'", 'UNBUFFERED');
复制代码
viewthread.php文件
查找:
  1.         $Id: viewthread.php 13492 2008-04-18 08:21:29Z liuqiang $
复制代码
更换为:
  1.         $Id: viewthread.php 13764 2008-05-19 03:14:01Z heyond $
复制代码
查找:
  1. $attachpids = $announcepm = 0;
复制代码
在下面添加:
  1. $smile = isset($_DCOOKIE['smile']) ? explode('D', $_DCOOKIE['smile']) : array();
  2. $stypeid = intval(!empty($stypeid) ? $stypeid : ($smile[3] != $styleid ? STYPEID : $smile[0]));
  3. $stypeid = isset($_DCACHE['smileytypes'][$stypeid]) ? $stypeid : (isset($_DCACHE['smileytypes'][STYPEID]) ? STYPEID : key($_DCACHE['smileytypes']));
  4. $smilies = $_DCACHE['smilies_display'][$stypeid];
  5. $scrollt = intval(!empty($scrollt) ? $scrollt : $smile[2]);
  6. $sm_page = (!isset($_GET['stypeid']) || $_GET['stypeid'] == $smile[0] ? $smile[1] : 1);
  7. $spp = $smcols * $smrows;
  8. $sm_multipage = multi(count($smilies), $spp, $sm_page, 'post.php?action=smilies&stypeid='.$stypeid.'&inajax=1&scrollt='.$scrollt, 0, 10, FALSE, TRUE);
  9. $smilies = arrayslice($smilies, $spp * ($sm_page - 1), $spp);
  10. dsetcookie('smile', $stypeid.'D'.$sm_page.'D'.$scrollt.'D'.$styleid, 86400 * 365);
复制代码
查找:
  1.                         $post['avatar'] = '<div class="avatar"><img src="'.discuz_uc_avatar($post['authorid']).'" />';
复制代码
修改为:
  1.                         $post['avatar'] = '<div class="avatar">'.discuz_uc_avatar($post['authorid']);
复制代码
查找:
  1.                 $post['status'] = sprintf('%b', $post['status']);
  2.                 $post['banned'] = substr($post['status'], -1, 1);
  3.                 $post['warned'] = substr($post['status'], -2, 1);
复制代码
修改为:
  1.                 $post['banned'] = $post['status'] & 1;
  2.                 $post['warned'] = $post['status'] & 2;
复制代码
查找:
  1.                         $debug ? die('<script type="text/javascript">document.getElementById("debuginfo").innerHTML = " '.($debug ? 'Update at '.gmdate("H:i:s", $threadcache['filemtime'] + 3600 * 8).', Processed in '.$debuginfo['time'].' second(s), '.$debuginfo['queries'].' Queries'.($gzipcompress ? ', Gzip enabled' : '') : '').'";</script>') : die();
复制代码
修改为:
  1.                         $debug ? die('<script type="text/javascript">document.getElementById("debuginfo").innerHTML = " '.($debug ? 'Updated at '.gmdate("H:i:s", $threadcache['filemtime'] + 3600 * 8).', Processed in '.$debuginfo['time'].' second(s), '.$debuginfo['queries'].' Queries'.($gzipcompress ? ', Gzip enabled' : '') : '').'";</script>') : die();
复制代码
在最后“?>”前添加
  1. function arrayslice($array, $offset, $length) {
  2.         if(PHP_VERSION >= '5.0.2') {
  3.                 return array_slice($array, $offset, $length, TRUE);
  4.         } else {
  5.                 $array = array_chunk($array, $length, TRUE);
  6.                 return $array[$offset / $length];
  7.         }
  8. }
复制代码
根目录下的文件就都修改好了!
唉!有点累!一会再继续!
已有 3 人评分威望 金币 收起 理由
体无完肤 + 1 楼主太细心了!~
shy9000 + 1 Very Good!
sakurakawaii + 10 鼓励鼓励~

总评分: 威望 + 10  金币 + 12   查看全部评分

Rank: 6Rank: 6

UID
429725
积分
1123
帖子
1121
威望
16
在线时间
0 小时
注册时间
2006-8-30
发表于 2008-6-6 17:32:00 |显示全部楼层
二、admin目录下的文件

announcements.inc.php文件
查找:
  1.         $Id: announcements.inc.php 13374 2008-04-11 08:04:21Z liuqiang $
复制代码
更换为:
  1.         $Id: announcements.inc.php 13771 2008-05-23 02:58:21Z liuqiang $
复制代码
查找:
  1.                 showsetting('subject', 'subjectnew', dhtmlspecialchars($announce['subject']), 'text');
  2.                 showsetting('start_time', 'starttimenew', dhtmlspecialchars($announce['starttime']), 'calendar');
  3.                 showsetting('end_time', 'endtimenew', dhtmlspecialchars($announce['endtime']), 'calendar');
复制代码
修改称:
  1.                 showsetting('subject', 'subjectnew', $announce['subject'], 'text');
  2.                 showsetting('start_time', 'starttimenew', $announce['starttime'], 'calendar');
  3.                 showsetting('end_time', 'endtimenew', $announce['endtime'], 'calendar');
复制代码
查找:
  1.                 showsetting('announce_message', 'messagenew', dhtmlspecialchars($announce['message']), 'textarea');
复制代码
修改为:
  1.                 showsetting('announce_message', 'messagenew', $announce['message'], 'textarea');
复制代码
counter.inc.php文件
查找:
  1. $Id: counter.inc.php 13607 2008-04-28 01:18:10Z liuqiang $
复制代码
修改为:
  1. $Id: counter.inc.php 13670 2008-05-04 08:30:52Z monkey $
复制代码
查找:
  1.         showsubtitle(array('', 'counter_amount'));
复制代码
在下面添加:
  1.         showhiddenfields(array('pertask' => ''));
复制代码
查找:
  1.                 '<input name="pertask" type="text" class="txt" value="15" /><input type="submit" class="btn" name="forumsubmit" value="'.$lang[submit].'" />'
  2.         ));
  3.         showtablerow('', array('class="td21"'), array(
  4.                 "$lang[counter_digest]:",
  5.                 '<input name="pertask" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="digestsubmit" value="'.$lang[submit].'" />'
  6.         ));
  7.         showtablerow('', array('class="td21"'), array(
  8.                 "$lang[counter_member]:",
  9.                 '<input name="pertask" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="membersubmit" value="'.$lang[submit].'" />'
  10.         ));
  11.         showtablerow('', array('class="td21"'), array(
  12.                 "$lang[counter_thread]:",
  13.                 '<input name="pertask" type="text" class="txt" value="500" /><input type="submit" class="btn" name="threadsubmit" value="'.$lang[submit].'" />'
  14.         ));
  15.         showtablerow('', array('class="td21"'), array(
  16.                 "$lang[counter_moved_thread]:",
  17.                 '<input name="pertask" type="text" class="txt" value="100" /><input type="submit" class="btn" name="movedthreadsubmit" value="'.$lang[submit].'" />'
  18.         ));
  19.         showtablerow('', array('class="td21"'), array(
  20.                 "$lang[counter_moved_favorites_logs]:",
  21.                 '<input name="pertask" type="text" class="txt" value="100" /><input type="submit" class="btn" name="cleanupsubmit" value="'.$lang[submit].'" />'
复制代码
修改为:
  1.                 '<input name="pertask1" type="text" class="txt" value="15" /><input type="submit" class="btn" name="forumsubmit" onclick="this.form.pertask.value=this.form.pertask1.value" value="'.$lang['submit'].'" />'
  2.         ));
  3.         showtablerow('', array('class="td21"'), array(
  4.                 "$lang[counter_digest]:",
  5.                 '<input name="pertask2" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="digestsubmit" onclick="this.form.pertask.value=this.form.pertask2.value" value="'.$lang['submit'].'" />'
  6.         ));
  7.         showtablerow('', array('class="td21"'), array(
  8.                 "$lang[counter_member]:",
  9.                 '<input name="pertask3" type="text" class="txt" value="1000" /><input type="submit" class="btn" name="membersubmit" onclick="this.form.pertask.value=this.form.pertask3.value" value="'.$lang['submit'].'" />'
  10.         ));
  11.         showtablerow('', array('class="td21"'), array(
  12.                 "$lang[counter_thread]:",
  13.                 '<input name="pertask4" type="text" class="txt" value="500" /><input type="submit" class="btn" name="threadsubmit" onclick="this.form.pertask.value=this.form.pertask4.value" value="'.$lang['submit'].'" />'
  14.         ));
  15.         showtablerow('', array('class="td21"'), array(
  16.                 "$lang[counter_moved_thread]:",
  17.                 '<input name="pertask5" type="text" class="txt" value="100" /><input type="submit" class="btn" name="movedthreadsubmit" onclick="this.form.pertask.value=this.form.pertask5.value" value="'.$lang['submit'].'" />'
  18.         ));
  19.         showtablerow('', array('class="td21"'), array(
  20.                 "$lang[counter_moved_favorites_logs]:",
  21.                 '<input name="pertask6" type="text" class="txt" value="100" /><input type="submit" class="btn" name="cleanupsubmit" onclick="this.form.pertask.value=this.form.pertask6.value" value="'.$lang['submit'].'" />'
复制代码
cpanel.share.php文件
查找:
  1.                                 ip char(15) NOT NULL default '',
复制代码
修改为:
  1.                                 ip varchar(15) NOT NULL default '',
复制代码
database.inc.php文件
查找:
  1.         $Id: database.inc.php 13486 2008-04-18 04:32:01Z liuqiang $
复制代码
修改为:
  1.         $Id: database.inc.php 13559 2008-04-23 08:46:28Z monkey $
复制代码
查找并删除:
  1. /*debug 将以前的备份方式调整为:论坛,论坛+SS,自定义
  2.         以下为只需备份结构的表:
  3.         cdb_adminsessions 此表不进行任何形式的备份
  4.         cdb_blogcaches
  5.         cdb_failedlogins
  6.         cdb_pmsearchindex
  7.         cdb_relatedthreads
  8.         cdb_rsscaches
  9.         cdb_searchindex
  10.         cdb_spacecaches
  11.         cdb_sessions
  12. */
复制代码
  1.                 /**
  2.                 elseif($from == 'local') {
  3.                         $datafile = $_FILES['datafile']['tmp_name'];
  4.                 }
  5.                 */
  6.                 //note FILES 释放遗漏问题
复制代码
  1. /**
  2. * SQL 语句版本兼容性调整
  3. *
  4. * @param string $sql 需要进行分析和转换的SQL
  5. * @param bool $version 需要得到的建表语句的版本。TRUE:高版本,FALSE:低版本
  6. * @param bool $dbcharset 需要得到的建表语句的字符集,不指定不替换
  7. * @return string 返回替换完毕的的建表语句
  8. * @example $sql = "CREATE TABLE `cdb_sessions` (
  9.                 `sid` char(6) binary NOT NULL default '',
  10.                 `ip1` tinyint(3) unsigned NOT NULL default '0',
  11.                 `ip2` tinyint(3) unsigned NOT NULL default '0',
  12.                 `ip3` tinyint(3) unsigned NOT NULL default '0',
  13.                 `ip4` tinyint(3) unsigned NOT NULL default '0',
  14.                 `uid` mediumint(8) unsigned NOT NULL default '0',
  15.                 `username` char(15) binary NOT NULL default '',
  16.                 `groupid` smallint(6) unsigned NOT NULL default '0',
  17.                 `styleid` smallint(6) unsigned NOT NULL default '0',
  18.                 `invisible` tinyint(1) NOT NULL default '0',
  19.                 `action` tinyint(1) unsigned NOT NULL default '0',
  20.                 `lastactivity` int(10) unsigned NOT NULL default '0',
  21.                 `lastolupdate` int(10) unsigned NOT NULL default '0',
  22.                 `pageviews` smallint(6) unsigned NOT NULL default '0',
  23.                 `seccode` mediumint(6) unsigned NOT NULL default '0',
  24.                 `fid` smallint(6) unsigned NOT NULL default '0',
  25.                 `tid` mediumint(8) unsigned NOT NULL default '0',
  26.                 `onlinetime` int(10) unsigned NOT NULL default '0',
  27.                 `bloguid` mediumint(8) unsigned NOT NULL default '0',
  28.                 UNIQUE KEY `sid` (`sid`),
  29.                 KEY `uid` (`uid`),
  30.                 KEY `bloguid` (`bloguid`)
  31.               ) TYPE=HEAP MAX_ROWS=1000";
  32.         //note 4.0的表结构替换为5.0的U8结构
  33.         echo syntablestruct($sql, TRUE, 'UTF8');
  34.         echo syntablestruct($sql, $db->version() > '4.1', $dbcharset);
  35. */
复制代码
ecommerce.inc.php文件
查找:
  1.         $Id: ecommerce.inc.php 13390 2008-04-11 15:25:52Z liuqiang $
复制代码
更换为:
  1.         $Id: ecommerce.inc.php 13675 2008-05-05 02:19:45Z monkey $
复制代码
查找并删除:
  1.                         $tpp = 1;
复制代码
查找:
  1.                         showsubmit('ordersubmit', 'submit', 'del', '<a href="#" onclick="$(\'orderlist\').style.display=\'none\';$(\'ordersearch\').style.display=\'\';">'.lang('research').'</a>', $multipage);
复制代码
修改为:
  1.                         showsubmit('ordersubmit', 'submit', '<input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll(\'prefix\', this.form, \'validate\')" /><label for="chkall">'.lang('orders_validate').'</label>', '<a href="#" onclick="$(\'orderlist\').style.display=\'none\';$(\'ordersearch\').style.display=\'\';">'.lang('research').'</a>', $multipage);
复制代码
forums.inc.php文件
查找:
  1.         $Id: forums.inc.php 13638 2008-04-29 06:35:17Z cnteacher $
复制代码
更换为:
  1.         $Id: forums.inc.php 13772 2008-05-23 03:09:33Z liuqiang $
复制代码
查找:
  1.                         $projectselect = "<select name=\"projectid\" onchange=\"window.location='admincp.php?action=forums&operation=edit&fid=$fid&projectid='+this.options[this.options.selectedIndex].value\"><option value=\"0\" selected=\"selected\">".$lang['none']."</option>";
复制代码
在上面添加:
  1.                         require_once DISCUZ_ROOT.'./include/editor.func.php';
复制代码
查找:
  1.                                 $acoption = $forum['autoclose'] / abs($forum['autoclose']);
  2.                                 $forum['autoclose'] = abs($forum['autoclose']);
复制代码
修改为:
  1.                                 $forum['autoclosetime'] = abs($forum['autoclose']);
  2.                                 $forum['autoclose'] = $forum['autoclose'] / abs($forum['autoclose']);
复制代码
查找:
  1.                         showsetting('forums_edit_description', 'descriptionnew', $forum['description'], 'textarea');
  2.                         showsetting('forums_edit_rules', 'rulesnew', $forum['rules'], 'textarea');
复制代码
修改为:
  1.                         showsetting('forums_edit_description', 'descriptionnew', html2bbcode($forum['description']), 'textarea');
  2.                         showsetting('forums_edit_rules', 'rulesnew', html2bbcode($forum['rules']), 'textarea');
复制代码
查找:
  1.                         showsetting('forums_edit_edit_rules', array('alloweditrulesnew', array(
  2.                                 array(0, $lang['forums_edit_edit_rules_html_none']),
  3.                                 array(1, $lang['forums_edit_edit_rules_html_no']),
  4.                                 array(2, $lang['forums_edit_edit_rules_html_yes'])
  5.                         )), $forum['alloweditrules'], 'mradio');
复制代码
修改为:
  1.                         showsetting('forums_edit_edit_rules', 'alloweditrulesnew', $forum['alloweditrules'], 'radio');
复制代码
查找:
  1.                                 array(0, $lang['forums_edit_recommend_sort_manual']),
  2.                                 array(1, $lang['forums_edit_recommend_sort_auto']),
复制代码
修改为:
  1.                                 array(1, $lang['forums_edit_recommend_sort_auto']),
  2.                                 array(0, $lang['forums_edit_recommend_sort_manual']),
复制代码
查找:
  1.                         showsetting('forums_edit_autoclose_time', 'autoclosetimenew', $forum['autoclose'], 'text');
复制代码
修改为:
  1.                         showsetting('forums_edit_autoclose_time', 'autoclosetimenew', $forum['autoclosetime'], 'text');
复制代码
查找:
  1.                         $extensionarray = array();
复制代码
在上面添加:
  1.                         require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
复制代码
查找:
  1.                         $db->query("UPDATE {$tablepre}forumfields SET description='$descriptionnew', icon='$iconnew', password='$passwordnew', redirect='$redirectnew', rules='$rulesnew',
复制代码
在上面添加:
  1.                         $descriptionnew = addslashes(discuzcode(stripslashes($descriptionnew), 1, 0, 0, 0, 1, 1, 0, 0, 1));
  2.                         $rulesnew = addslashes(discuzcode(stripslashes($rulesnew), 1, 0, 0, 0, 1, 1, 0, 0, 1));
复制代码
查找:
  1.                         foreach(array('threads', 'threadsmod', 'relatedthreads', 'posts', 'polls', 'polloptions', 'trades', 'activities', 'activityapplies', 'debate', 'debateposts', 'videos', 'attachments', 'favorites', 'mythreads', 'myposts', 'subscriptions', 'typeoptionvars', 'forumrecommend') as $value) {
复制代码
修改为:
  1.                         foreach(array('threads', 'threadsmod', 'relatedthreads', 'posts', 'polls', 'polloptions', 'trades', 'activities', 'activityapplies', 'debates', 'debateposts', 'videos', 'attachments', 'favorites', 'mythreads', 'myposts', 'subscriptions', 'typeoptionvars', 'forumrecommend') as $value) {
复制代码
查找:
  1.                         cpmsg('forums_delete_alarm', 'admincp.php?action=forums&operation=delete&fid=2', 'loadingform', '<div id="percent">0%</div>', FALSE);
复制代码
修改为:
  1.                         cpmsg('forums_delete_alarm', "admincp.php?action=forums&operation=delete&fid=$fid&confirmed=1", 'loadingform', '<div id="percent">0%</div>', FALSE);
复制代码
groups.inc.php文件
查找:
  1.         $Id: groups.inc.php 13628 2008-04-29 04:07:22Z liuqiang $
复制代码
更换为:
  1.         $Id: groups.inc.php 13684 2008-05-08 02:46:28Z liuqiang $
复制代码
查找并删除:
  1.                                 showsetting('admingroups_edit_mass_prune', 'allowmassprunenew', $group['allowmassprune'], 'radio');
复制代码
  1.                                 showsetting('admingroups_edit_censor_word', 'allowcensorwordnew', $group['allowcensorword'], 'radio');
复制代码
  1.                                 showsetting('admingroups_edit_mod_user', 'allowmodusernew', $group['allowmoduser'], 'radio');
复制代码
  1.                                 showsetting('admingroups_edit_view_log', 'allowviewlognew', $group['allowviewlog'], 'radio');
复制代码
查找:
  1.                                 $dactionarray = array();
复制代码
在上面添加:
  1.                                 $actions = array();
  2.                                 foreach ($actionarray as $key => $val) {
  3.                                         $actions[] = $key;
  4.                                         if(!empty($val) && is_array($val)) {
  5.                                                 foreach ($val as $temp) {
  6.                                                         $actions[] = "{$key}_{$temp}";
  7.                                                 }
  8.                                         }
  9.                                 }
复制代码
查找:
  1.                                                 if(in_array($key, $actionarray) && !$value) {
复制代码
修改为:
  1.                                                 if(in_array($key, $actions) && !$value) {
复制代码
查找:
  1.                                         $membergroup .= showtablerow('', array('class="td25"', '', '', 'class=td28'), array(
复制代码
修改为:
  1.                                         $membergroup .= showtablerow('', array('class="td25"', '', 'class="td28"', 'class=td28'), array(
复制代码
查找:
  1.                         [1,'<input type="text" class="txt" size="6" name="groupnewadd[creditshigher][]">'],
复制代码
修改为:
  1.                         [1,'<input type="text" class="txt" size="6" name="groupnewadd[creditshigher][]">', 'td28'],
复制代码
members.inc.php文件
查找:
  1.         $Id: members.inc.php 13644 2008-04-29 07:32:44Z liuqiang $
复制代码
更换为:
  1.         $Id: members.inc.php 13771 2008-05-23 02:58:21Z liuqiang $
复制代码
查找:
  1.                                 cpmsg('members_delete_succeed', '', 'succeed');
复制代码
在上面添加:
  1.                                 $db->query("DELETE FROM {$tablepre}validating WHERE uid IN ($uids)", 'UNBUFFERED');
复制代码
查找:
  1.                                         $db->query("DELETE FROM {$tablepre}trades WHERE sellerid IN ($uids)");
复制代码
在下面添加:
  1.                                         $db->query("DELETE FROM {$tablepre}validating WHERE uid IN ($uids)");
复制代码
查找:
  1.                                 showsubmit('rewardsubmit', 'submit', 'td', '<input class="checkbox" type="checkbox" name="notifymembers" value="1" onclick="$(\'messagebody\').disabled=!this.checked;$(\'messagebody\').style.display = $(\'messagebody\').style.display == \'\' ? \'none\' : \'\'" id="credits_notify" /><label for="credits_notify">'.lang('members_credits_notify').'</label>');
复制代码
修改为:
  1.                                 showsubmit('rewardsubmit', 'submit', 'td', '<input class="checkbox" type="checkbox" name="notifymembers" value="1" onclick="$(\'messagebody\').style.display = this.checked ? \'\' : \'none\'" id="credits_notify" /><label for="credits_notify">'.lang('members_credits_notify').'</label>');
复制代码
查找:
  1.                                 showsubmit('confermedalsubmit', 'submit', 'td', '<input class="checkbox" type="checkbox" name="notifymembers" value="1" onclick="$(\'messagebody\').disabled=!this.checked; $(\'messagebody\').style.display = $(\'messagebody\').style.display == \'\' ? \'none\' : \'\'" id="grant_notify"/><label for="grant_notify">'.lang('medals_grant_notify').'</label>');
复制代码
修改为:
  1.                                 showsubmit('confermedalsubmit', 'submit', 'td', '<input class="checkbox" type="checkbox" name="notifymembers" value="1" onclick="$(\'messagebody\').style.display = this.checked ? \'\' : \'none\'" id="grant_notify"/><label for="grant_notify">'.lang('medals_grant_notify').'</label>');
复制代码
查找:
  1.                 showsetting('members_edit_groups_related_adminid', '', '', '<select id="adminidnew" name="adminidnew[0]"><option value="0"'.($member['adminid'] == 0 ? ' selected' : '').'>'.$lang['none'].'</option><option value="3"'.($member['adminid'] == 3 ? ' selected' : '').'>'.$lang['usergroups_system_3'].'</option><option value="2"'.($member['adminid'] == 2 ? ' selected' : '').'>'.$lang['usergroups_system_2'].'</option><option value="1"'.($member['adminid'] == 1 ? ' selected' : '').'>'.$lang['usergroups_system_1'].'</option></select>');
复制代码
修改为:
  1.                 showsetting('members_edit_groups_related_adminid', '', '', '<select id="adminidnew" name="adminidnew['.$member['groupid'].']"><option value="0"'.($member['adminid'] == 0 ? ' selected' : '').'>'.$lang['none'].'</option><option value="3"'.($member['adminid'] == 3 ? ' selected' : '').'>'.$lang['usergroups_system_3'].'</option><option value="2"'.($member['adminid'] == 2 ? ' selected' : '').'>'.$lang['usergroups_system_2'].'</option><option value="1"'.($member['adminid'] == 1 ? ' selected' : '').'>'.$lang['usergroups_system_1'].'</option></select>');
复制代码
查找:
  1.                 showsubtitle(array('forum', 'members_access_view', 'members_access_post', 'members_access_reply', 'members_access_getattach', 'members_access_postattach', 'members_access_adminuser', 'members_access_dateline'));
复制代码
修改为:
  1.                 showsubtitle(array('forum', 'members_access_view', 'members_access_post', 'members_access_reply', 'members_access_postattach', 'members_access_getattach', 'members_access_adminuser', 'members_access_dateline'));
复制代码
查找:
  1.                                         ($forum['type'] == 'forum' ? '' : '|-----')."&nbsp;<a href=\"admincp.php?action=forums&operation=edit&fid=$fid\">$forum[name]</a>",
  2.                                         accessimg($access['allowview']),
  3.                                         accessimg($access['allowpost']),
  4.                                         accessimg($access['allowreply']),
  5.                                         accessimg($access['allowgetattach']),
  6.                                         accessimg($access['allowpostattach']),
复制代码
修改为:
  1.                                         ($forum['type'] == 'forum' ? '' : '|-----')."&nbsp;<a href=\"admincp.php?action=forums&operation=edit&fid=$forum[fid]&anchor=perm\">$forum[name]</a>",
  2.                                         accessimg($access['allowview']),
  3.                                         accessimg($access['allowpost']),
  4.                                         accessimg($access['allowreply']),
  5.                                         accessimg($access['allowpostattach']),
  6.                                         accessimg($access['allowgetattach']),
复制代码
查找:
  1.                 foreach(array('view', 'post', 'reply', 'getattach', 'postattach') as $perm) {
复制代码
修改为:
  1.                 foreach(array('view', 'post', 'reply', 'postattach', 'getattach') as $perm) {
复制代码
查找:
  1.                                 $db->query("DELETE FROM {$tablepre}access WHERE uid='$uid' AND fid='$addfid'");
复制代码
在下面添加:
  1.                                 if(!$db->result_first("SELECT count(*) FROM {$tablepre}access WHERE uid='$uid'")) {
  2.                                         $db->query("UPDATE {$tablepre}members SET accessmasks='0' WHERE uid='$uid'");
  3.                                 }
复制代码
查找:
  1.                                         allowpostattach='$allowpostattachnew', adminuser='$discuz_uid', dateline='$timestamp'");
复制代码
在下面添加:
  1.                                 $db->query("UPDATE {$tablepre}members SET accessmasks='1' WHERE uid='$uid'");
复制代码
查找:
  1.                 foreach($usernames as $username) {
  2.                         $usernameary[] = " username LIKE '".str_replace(array('%', '*', '_'), array('\%', '%', '\_'), $username)."'";
复制代码
修改为:
  1.                 foreach($usernames as $u) {
  2.                         $usernameary[] = " username LIKE '".str_replace(array('%', '*', '_'), array('\%', '%', '\_'), $u)."'";
复制代码
查找:
  1.         $conditions .= $operation == 'newsletter' && (submitcheck('submit') || submitcheck('sendsubmit', 1)) ? " AND newsletter='1'" : '';
复制代码
修改为:
  1.         $conditions .= $operation == 'newsletter' && (submitcheck('submit') || submitcheck('sendsubmit', 1) || submitcheck('newslettersubmit', 1)) ? " AND newsletter='1'" : '';
复制代码
plugins.inc.php文件
查找:
  1.         $Id: plugins.inc.php 13444 2008-04-16 03:12:04Z liuqiang $
复制代码
更换为:
  1.         $Id: plugins.inc.php 13707 2008-05-08 08:54:02Z liuqiang $
复制代码
查找:
  1.                 showsetting('plugins_edit_name', 'namenew', $plugin['name'], 'text');
复制代码
在下面添加:
  1.                 if(!$plugin['copyright']) {
  2.                         showsetting('plugins_edit_copyright', 'copyrightnew', $plugin['copyright'], 'text');
  3.                 }
复制代码
settings.inc.php文件
查找:
  1.         $Id: settings.inc.php 13497 2008-04-20 17:23:40Z liuqiang $
复制代码
更换为:
  1.         $Id: settings.inc.php 13755 2008-05-13 07:08:15Z liuqiang $
复制代码
上传附件里的MD5文件覆盖

[ 本帖最后由 lhole 于 2008-6-6 18:51 编辑 ]

md5.rar

21.73 KB, 下载次数: 107

使用道具 举报

Rank: 6Rank: 6

UID
429725
积分
1123
帖子
1121
威望
16
在线时间
0 小时
注册时间
2006-8-30
发表于 2008-6-6 17:32:48 |显示全部楼层
三、api目录下的文件

uc.php文件
查找:
  1.         $post = uc_unserialize(file_get_contents('php://input'));
复制代码
修改为:
  1.         $post = uc_unserialize(uc_post_contents());
复制代码
查找:
  1.                                 $outextcredits[$value['appiddesc'].'|'.$value['creditdesc']] = array(
复制代码
修改为:
  1.                                 $outextcredits[] = array(
  2.                                         'appiddesc' => $value['appiddesc'],
  3.                                         'creditdesc' => $value['creditdesc'],
复制代码
查找:
  1.         $_DCACHE['settings']['outextcredits'] = $outextcredits;
复制代码
修改为:
  1.         $tmp = array();
  2.         foreach($outextcredits as $value) {
  3.                 $key = $value['appiddesc'].'|'.$value['creditdesc'];
  4.                 if(!isset($tmp[$key])) {
  5.                         $tmp[$key] = array('title' => $value['title'], 'unit' => $value['unit']);
  6.                 }
  7.                 $tmp[$key]['creditsrc'][$value['creditsrc']] = $value['ratio'];
  8.         }
  9.         $_DCACHE['settings']['outextcredits'] = $tmp;
  10.        
复制代码
在最后的“}”下面添加:
  1. function uc_post_contents() {
  2.         return file_get_contents('php://input');
  3. }
复制代码
上传附件里的文件覆盖

[ 本帖最后由 lhole 于 2008-6-6 19:06 编辑 ]

api.rar

35.48 KB, 下载次数: 110

使用道具 举报

Rank: 6Rank: 6

UID
429725
积分
1123
帖子
1121
威望
16
在线时间
0 小时
注册时间
2006-8-30
发表于 2008-6-6 17:34:00 |显示全部楼层
四、include目录下的文件

cache.func.php文件
查找:
  1.         $Id: cache.func.php 13642 2008-04-29 07:22:59Z cnteacher $
  2. */

  3. define('DISCUZ_KERNEL_VERSION', '6.1.0');
  4. define('DISCUZ_KERNEL_RELEASE', '20080429');
复制代码
更换为:
  1.         $Id: cache.func.php 13810 2008-06-06 01:42:12Z cnteacher $
  2. */

  3. define('DISCUZ_KERNEL_VERSION', '6.1.0');
  4. define('DISCUZ_KERNEL_RELEASE', '20080606');
复制代码
查找:
  1.                 'forumdisplay'        => array('announcements_forum', 'globalstick', 'floatthreads', 'forums', 'icons', 'onlinelist', 'advs_forumdisplay'),
  2.                 'viewthread'        => array('forums', 'usergroups', 'ranks', 'bbcodes', 'smilies', 'smileytypes', 'advs_viewthread', 'tags_viewthread', 'custominfo'),
复制代码
修改为:
  1.                 'forumdisplay'        => array('smilies', 'smileytypes', 'smilies_display', 'announcements_forum', 'globalstick', 'floatthreads', 'forums', 'icons', 'onlinelist', 'advs_forumdisplay'),
  2.                 'viewthread'        => array('smilies', 'smileytypes', 'smilies_display', 'forums', 'usergroups', 'ranks', 'bbcodes', 'smilies', 'advs_viewthread', 'tags_viewthread', 'custominfo'),
复制代码
查找:
  1.                         $outextcreditsrcs = array();
  2.                         foreach((array)$data['outextcredits'] as $outextcredits) {
  3.                                 $outextcreditsrcs[$outextcredits['creditsrc']] = $outextcredits['creditsrc'];
  4.                         }
复制代码
修改为:
  1.                         $outextcreditsrcs = $outextcredits = array();
  2.                         foreach((array)$data['outextcredits'] as $value) {
  3.                                 $outextcreditsrcs[$value['creditsrc']] = $value['creditsrc'];
  4.                                 $key = $value['appiddesc'].'|'.$value['creditdesc'];
  5.                                 if(!isset($outextcredits[$key])) {
  6.                                         $outextcredits[$key] = array('title' => $value['title'], 'unit' => $value['unit']);
  7.                                 }
  8.                                 $outextcredits[$key]['creditsrc'][$value['creditsrc']] = $value['ratio'];
  9.                         }
  10.                         $data['outextcredits'] = $outextcredits;
  11.                        
复制代码
common.inc.php文件
查找:
  1.         $Id: common.inc.php 13532 2008-04-22 06:27:16Z monkey $
复制代码
更换为:
  1.         $Id: common.inc.php 13803 2008-06-04 09:49:43Z heyond $
复制代码
查找:
  1. define('ISROBOT', getrobot());
  2. if(defined('NOROBOT') && ISROBOT) {
复制代码
修改为:
  1. define('IS_ROBOT', getrobot());
  2. if(defined('NOROBOT') && IS_ROBOT) {
复制代码
global.func.php文件
查找:
  1.         $Id: global.func.php 13517 2008-04-21 09:58:36Z heyond $
复制代码
更换为:
  1.         $Id: global.func.php 13803 2008-06-04 09:49:43Z heyond $
复制代码
查找:
  1.                 if(preg_match("/($kw_browsers)/", $_SERVER['HTTP_USER_AGENT'])) {
  2.                         define('IS_ROBOT', FALSE);
  3.                 } elseif(preg_match("/($kw_spiders)/", $_SERVER['HTTP_USER_AGENT'])) {
复制代码
修改为:
  1.                 if(preg_match("/($kw_browsers)/i", $_SERVER['HTTP_USER_AGENT'])) {
  2.                         define('IS_ROBOT', FALSE);
  3.                 } elseif(preg_match("/($kw_spiders)/i", $_SERVER['HTTP_USER_AGENT'])) {
复制代码
查找:
  1. function discuz_uc_avatar($uid, $size = '') {
  2.         return UC_API.'/avatar.php?uid='.$uid.'&size='.$size;
复制代码
修改为:
  1. function discuz_uc_avatar($uid, $size = '', $returnsrc = FALSE) {
  2.         $size = in_array($size, array('big', 'middle', 'small')) ? $size : 'middle';
  3.         $uid = abs(intval($uid));
  4.         $uid = sprintf("%09d", $uid);
  5.         $dir1 = substr($uid, 0, 3);
  6.         $dir2 = substr($uid, 3, 2);
  7.         $dir3 = substr($uid, 5, 2);
  8.         return $returnsrc ? UC_API.'/data/avatar/'.$dir1.'/'.$dir2.'/'.$dir3.'/'.substr($uid, -2)."_avatar_$size.jpg" : '<img src="'.UC_API.'/data/avatar/'.$dir1.'/'.$dir2.'/'.$dir3.'/'.substr($uid, -2)."_avatar_$size.jpg".'" onerror="this.onerror=null;this.src=\''.UC_API.'/images/noavatar_'.$size.'.gif\'">';
复制代码
insenz.func.php文件
查找:
  1.         $Id: insenz.func.php 13169 2008-03-28 06:16:12Z liuqiang $
  2. */

  3. if(!defined('IN_DISCUZ')) {
  4.         exit('Access Denied');
  5. }

  6. define('INSENZ_VERSION', '1.1');
复制代码
更换为:
  1.         $Id: insenz.func.php 13800 2008-06-04 02:43:41Z liuqiang $
  2. */

  3. if(!defined('IN_DISCUZ')) {
  4.         exit('Access Denied');
  5. }

  6. define('INSENZ_VERSION', '1.2');
复制代码
misc.func.php文件
查找:
  1. $Id: misc.func.php 13613 2008-04-28 04:48:24Z liuqiang $
复制代码
更换为:
  1. $Id: misc.func.php 13757 2008-05-13 07:30:34Z liuqiang $
复制代码
查找:
  1.         sendpm(${$var}['authorid'], $item.'_subject', $item.'_message');
复制代码
修改为:
  1.         if(!empty(${$var}['authorid']) && ${$var}['authorid'] != $GLOBALS['discuz_uid']) {
  2.                 sendpm(${$var}['authorid'], $item.'_subject', $item.'_message');
  3.         }
复制代码
newreply.inc.php文件
查找:
  1.         $Id: newreply.inc.php 13268 2008-04-03 05:55:50Z monkey $
复制代码
更换为:
  1.         $Id: newreply.inc.php 13762 2008-05-15 09:24:18Z monkey $
复制代码
查找:
  1.                                 } elseif($thaquote['status']) {
复制代码
修改为:
  1.                                 } elseif($thaquote['status'] & 1) {
复制代码
查找:
  1.                                         'item_name'=> "<a href=\"{$boardurl}viewthread.php?do=tradeinfo&tid=$tid&pid=$pid\">$item_name</a>",
  2.                                         'item_price'=> $item_price
复制代码
修改为:
  1.                                         'itemname'=> "<a href=\"{$boardurl}viewthread.php?do=tradeinfo&tid=$tid&pid=$pid\">$item_name</a>",
  2.                                         'itemprice'=> $item_price
复制代码
newthread.inc.php文件:
查找:
  1.         $Id: newthread.inc.php 13534 2008-04-22 07:20:30Z monkey $
复制代码
更换为:
  1.         $Id: newthread.inc.php 13661 2008-04-30 11:52:24Z monkey $
复制代码
查找并删除:
  1.         $special = !$allowspecialonly ? intval($special) : 'only';
复制代码
newtrade.inc.php文件
查找:
  1.         $Id: newtrade.inc.php 13268 2008-04-03 05:55:50Z monkey $
复制代码
更换为:
  1.         $Id: newtrade.inc.php 13762 2008-05-15 09:24:18Z monkey $
复制代码
查找:
  1.                         'item_name'=> "<a href=\"{$boardurl}viewthread.php?do=tradeinfo&tid=$tid&pid=$pid\">$item_name</a>",
  2.                         'item_price'=> $item_price
复制代码
修改为:
  1.                         'itemname'=> "<a href=\"{$boardurl}viewthread.php?do=tradeinfo&tid=$tid&pid=$pid\">$item_name</a>",
  2.                         'itemprice'=> $item_price
复制代码
request.func.php文件:
查找:
  1.                         .((($special & 8) && $rewardstatus) ? ($rewardstatus == 1 ? ' AND t.price < 0' : ' AND t.price > 0') : '')
复制代码
修改为:
  1.                         .((($special & 16) && $rewardstatus) ? ($rewardstatus == 1 ? ' AND t.price < 0' : ' AND t.price > 0') : '')
复制代码
查找:
  1.                                 $replace['{avatar}'] = "<a href='".$boardurl."space.php?uid=$value[1]'$LinkTarget><img src='".discuz_uc_avatar($value[1])."' border=0 alt='' /></a>";
  2.                                 $replace['{avatarsmall}'] = "<a href='".$boardurl."space.php?uid=$value[1]'$LinkTarget><img src='".discuz_uc_avatar($value[1], 'small')."' border=0 alt='' /></a>";
  3.                                 $replace['{avatarbig}'] = "<a href='".$boardurl."space.php?uid=$value[1]'$LinkTarget><img src='".discuz_uc_avatar($value[1], 'big')."' border=0 alt='' /></a>";
复制代码
修改为:
  1.                                 $replace['{avatar}'] = "<a href='".$boardurl."space.php?uid=$value[1]'$LinkTarget>".discuz_uc_avatar($value[1])."</a>";
  2.                                 $replace['{avatarsmall}'] = "<a href='".$boardurl."space.php?uid=$value[1]'$LinkTarget>".discuz_uc_avatar($value[1], 'small')."</a>";
  3.                                 $replace['{avatarbig}'] = "<a href='".$boardurl."space.php?uid=$value[1]'$LinkTarget>".discuz_uc_avatar($value[1], 'big')."</a>";
复制代码
seccode.class.php文件
查找:
  1.                 $seccodelength = 4;
  2.                 if($this->type && !empty($seccodettf)) {
复制代码
在上面添加:
  1.                 if(empty($seccodettf)) {
  2.                         $this->giffont();
  3.                         return;
  4.                 }
复制代码
include\javascript\post_editor.js文件
查找:
  1.         if(($('postsubmit').name == 'topicsubmit' || $('postsubmit').name == 'editsubmit' && isfirstpost) &&
复制代码
修改为:
  1.         if(!previewpost && ($('postsubmit').name == 'topicsubmit' || $('postsubmit').name == 'editsubmit' && isfirstpost) &&
复制代码
查找:
  1.                 if(tagrequired == 2 && theform.tags.value == "" && isfirstpost) {
复制代码
修改为:
  1.                 if(!previewpost && tagrequired == 2 && theform.tags.value == "" && isfirstpost) {
复制代码

[ 本帖最后由 lhole 于 2008-6-6 19:44 编辑 ]

使用道具 举报

Rank: 6Rank: 6

UID
429725
积分
1123
帖子
1121
威望
16
在线时间
0 小时
注册时间
2006-8-30
发表于 2008-6-6 17:34:50 |显示全部楼层
五、modcp目录下的文件

forumaccess.inc.php文件
查找:
  1.                 $list['data'][$access['uid']] = $access;
复制代码
修改为:
  1.                 $list['data'][] = $access;
复制代码
forums.inc.php文件
查找:
  1. $Id: forums.inc.php 13172 2008-03-28 07:30:43Z cnteacher $
复制代码
更换为:
  1. $Id: forums.inc.php 13772 2008-05-23 03:09:33Z liuqiang $
复制代码
查找:
  1.                 $alloweditrules = $adminid == 1 || $forum['alloweditrules'] ? true : false;

  2.                 if(submitcheck('editsubmit')) {

  3.                         $forumupdate = true;
  4.                         $forum['description'] = dhtmlspecialchars($descnew);
  5.                         $forum['rules'] = $alloweditrules ? dhtmlspecialchars($rulesnew) : addslashes($forum['rules']);
  6.                         $db->query("UPDATE {$tablepre}forumfields SET description='$forum[description]', rules='$forum[rules]' WHERE fid='$fid'");
复制代码
修改为:
  1.                 require_once DISCUZ_ROOT.'./include/editor.func.php';

  2.                 $alloweditrules = $adminid == 1 || $forum['alloweditrules'] ? true : false;

  3.                 if(!submitcheck('editsubmit')) {

  4.                         $forum['description'] = html2bbcode($forum['description']);
  5.                         $forum['rules'] = html2bbcode($forum['rules']);

  6.                 } else {

  7.                         require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
  8.                         $forumupdate = true;
  9.                         $descnew = addslashes(discuzcode(stripslashes($descnew), 1, 0, 0, 0, 1, 1, 0, 0, 1));
  10.                         $rulesnew = $alloweditrules ? addslashes(discuzcode(stripslashes($rulesnew), 1, 0, 0, 0, 1, 1, 0, 0, 1)) : addslashes($forum['rules']);
  11.                         $db->query("UPDATE {$tablepre}forumfields SET description='$descnew', rules='$rulesnew' WHERE fid='$fid'");

  12.                         $forum['description'] = html2bbcode(stripslashes($descnew));
  13.                         $forum['rules'] = html2bbcode(stripslashes($rulesnew));
复制代码
report.inc.php文件
查找:
  1. $Id: report.inc.php 13613 2008-04-28 04:48:24Z liuqiang $
复制代码
更换为:
  1. $Id: report.inc.php 13686 2008-05-08 03:00:07Z liuqiang $
复制代码
查找:
  1.                 $db->query("DELETE FROM {$tablepre}reportlog WHERE id IN ($logids) AND fid='$fid' AND status=0", 'UNBUFFERED');
复制代码
修改为:
  1.                 $db->query("DELETE FROM {$tablepre}reportlog WHERE id IN ($logids) AND fid='$fid'", 'UNBUFFERED');
  2.                 if($forum['modworks'] && !$db->result_first("SELECT COUNT(*) FROM {$tablepre}reportlog WHERE fid='$fid' AND status=1")) {
  3.                         $db->query("UPDATE {$tablepre}forums SET modworks='0' WHERE fid='$fid'", 'UNBUFFERED');
  4.                 }
复制代码
查找:
  1.         $query = $db->query("SELECT r.*, p.tid, p.message, p.author, p.authorid, t.subject FROM {$tablepre}reportlog r
复制代码
修改为:
  1.         $query = $db->query("SELECT r.*, p.tid, p.message, p.author, p.authorid, t.subject, t.displayorder FROM {$tablepre}reportlog r
复制代码
查找:
  1.                 if($report['tid']) {
复制代码
修改为:
  1.                 if($report['tid'] && $report['displayorder'] >= 0) {
复制代码
查找:
  1.                 $db->query("DELETE FROM {$tablepre}reportlog WHERE id in ($deleteids)");
复制代码
在下面添加:
  1.                 if($forum['modworks'] && !$db->result_first("SELECT COUNT(*) FROM {$tablepre}reportlog WHERE fid='$fid' AND status=1")) {
  2.                         $db->query("UPDATE {$tablepre}forums SET modworks='0' WHERE fid='$fid'", 'UNBUFFERED');
  3.                 }
复制代码
下面开始模版页的修改,uc_client目录我就不弄了,大家直接下载附件覆盖好了!

[ 本帖最后由 lhole 于 2008-6-6 19:56 编辑 ]

uc_client.rar

14.15 KB, 下载次数: 128

使用道具 举报

Rank: 6Rank: 6

UID
429725
积分
1123
帖子
1121
威望
16
在线时间
0 小时
注册时间
2006-8-30
发表于 2008-6-6 17:35:37 |显示全部楼层
六、templates目录下的文件

templates\Beijing2008\forumdisplay.htm文件
查找:
  1.                                         <div id="smilieslist"></div>
  2.                                         <script type="text/javascript">ajaxget('post.php?action=smilies', 'smilieslist');</script>
复制代码
修改为:
  1.                                         <div id="smilieslist">{subtemplate post_smilies}</div>
复制代码
templates\default\admincp.lang.php文件
查找:
  1.         'settings_censoruser_comment' => '用户在其用户信息(如用户名、昵称、自定义头衔等)中无法使用这些关键字。每个关键字一行,可使用通配符 "*" 如 "*版主*"(不含引号)',
复制代码
修改为:
  1.         'settings_censoruser_comment' => '用户在其用户信息(如昵称、自定义头衔等)中无法使用这些关键字。每个关键字一行,可使用通配符 "*" 如 "*版主*"(不含引号)',
复制代码
查找并删除:
  1.         'settings_reportpost_none' => '禁止用户报告',
  2.         'settings_reportpost_level_1' => '仅允许向版主报告',
  3.         'settings_reportpost_level_2' => '仅允许向版主和超级版主报告',
  4.         'settings_reportpost_level_3' => '允许向所有管理人员报告',
  5.         'settings_reportpost_comment' => '允许会员通过短消息向版主或管理员报告反映帖子。注意: 如果当前版块或分区没有设置版主,同时本设定设置为“只允许报告给版主”,系统会自动将报告内容发送给超级版主,以此类推',
复制代码
查找:
  1.         'forums_edit_description_comment' => '将显示于版块名称的下面,提供对本版块的简短描述',
  2.         'forums_edit_rules' => '本版块规则:',
  3.         'forums_edit_rules_comment' => '显示于主题列表页的当前版块规则,支持 HTML 代码,留空为不显示',
复制代码
修改为:
  1.         'forums_edit_description_comment' => '将显示于版块名称的下面,提供对本版块的简短描述<br />支持内置的 Discuz! 代码',
  2.         'forums_edit_rules' => '本版块规则:',
  3.         'forums_edit_rules_comment' => '显示于主题列表页的当前版块规则,留空为不显示<br />支持内置的 Discuz! 代码',
复制代码
查找:
  1.         'forums_edit_edit_rules_html_none' => '不允许版主修改',
  2.         'forums_edit_edit_rules_html_no' => '允许版主修改,但不支持 HTML 代码',
  3.         'forums_edit_edit_rules_html_yes' => '允许版主修改,并支持 HTML 代码',
  4.         'forums_edit_edit_rules_comment' => '设置是否允许超级版主和版主通过系统设置修改本版规则',
复制代码
修改为:
  1.         'forums_edit_edit_rules_comment' => '设置是否允许超级版主和版主修改本版规则',
复制代码
查找:
  1.         'members_access_view' => '访问',
复制代码
修改为:
  1.         'members_access_view' => '查看',
复制代码
查找:
  1.         'members_access_add_view' => '版块访问权限',
复制代码
修改为:
  1.         'members_access_add_view' => '主题查看权限',
复制代码
templates\default\feed.lang.php文件
查找:
  1.         'feed_thread_goods_message' =>                '{item_name}<br />售价 {item_price} 元',
复制代码
修改为:
  1.         'feed_thread_goods_message' =>                '{itemname}<br />售价 {itemprice} 元',
复制代码
templates\default\forumdisplay.htm文件
查找:
  1.                                         <div id="smilieslist"></div>
  2.                                         <script type="text/javascript">ajaxget('post.php?action=smilies', 'smilieslist');</script>
复制代码
修改为:
  1.                                         <div id="smilieslist">{subtemplate post_smilies}</div>
复制代码
templates\default\jsmenu.htm文件
查找:
  1.                 <li class="popavatar"><img src="{echo discuz_uc_avatar($discuz_uid, 'small');}" /></li>
复制代码
修改为:
  1.                 <li class="popavatar">{echo discuz_uc_avatar($discuz_uid, 'small');}</li>
复制代码
templates\default\memcp_credits.htm文件
查找:
  1.                         } else {
  2.                                 ratio = Math.round(((fromcredit.getAttribute('outratio') / tocredit.getAttribute('ratio')) * 100)) / 100;
复制代码
修改为:
  1.                         } else if(outexchangeallow[tocredit.value + '|' + fromcredit.value]) {
  2.                                 ratio = Math.round(((fromcredit.getAttribute('outratio') / tocredit.getAttribute('ratio_' + fromcredit.value)) * 100)) / 100;
  3.                         } else {
  4.                                 ratio = 0;
复制代码
查找:
  1.                                         if(fromcredit.value == outexchangeallow[tocredit.value]) {
  2.                                                 $('desamount').value = Math.floor(fromcredit.getAttribute('outratio') / tocredit.getAttribute('ratio') * $('amount').value);
复制代码
修改为:
  1.                                         if(outexchangeallow[tocredit.value + '|' + fromcredit.value]) {
  2.                                                 $('desamount').value = Math.floor(fromcredit.getAttribute('outratio') / tocredit.getAttribute('ratio_' + fromcredit.value) * $('amount').value);
复制代码
查找:
  1.                 outexchangeallow['$id'] = $ecredits['creditsrc'];
复制代码
修改为:
  1.                 <!--{loop $ecredits[creditsrc] $creditsrc $ratio}-->
  2.                         outexchangeallow['$id|$creditsrc'] = 1;
  3.                 <!--{/loop}-->
复制代码
templates\default\memcp_home.htm文件
查找:
  1.                                         <img src="{echo discuz_uc_avatar($discuz_uid)}" />
复制代码
修改为:
  1.                                         {echo discuz_uc_avatar($discuz_uid)}
复制代码
templates\default\memcp_profile.htm文件
查找:
  1.         $('avatar').src='{echo discuz_uc_avatar($discuz_uid)}&random=1'+Math.random();
复制代码
修改为:
  1.         $('avatar').src='{echo discuz_uc_avatar($discuz_uid, 'middle', TRUE)}&random=1'+Math.random();
复制代码
查找:
  1.         <th valign="top"><div style="text-align: center;"><img src="{echo discuz_uc_avatar($discuz_uid)}" id="avatar" /></div></th>
复制代码
修改为:
  1.         <th valign="top"><div style="text-align: center;">{echo discuz_uc_avatar($discuz_uid)}</div></th>
复制代码
templates\default\modcp_forumaccess.htm文件
查找:
  1.                         <!--{loop $list[data] $uid $access}-->
  2.                                 <tr align="center">
  3.                                 <td>{if $users[$uid] != ''}<a href="space.php?uid=$uid" target="_blank">$users[$uid]</a>{else}UID $uid{/if}</td>
复制代码
修改为:
  1.                         <!--{loop $list[data] $access}-->
  2.                                 <tr align="center">
  3.                                 <td>{if $users[$access[uid]] != ''}<a href="space.php?uid=$access[uid]" target="_blank">{$users[$access[uid]]}</a>{else}UID $access[uid]{/if}</td>
复制代码
templates\default\modcp_forums.htm文件
查找:
  1.                 <div class="mainbox">
  2.                         <h3>{lang mod_option_forum_edit} - $forum[name]</h3>
  3.                         <form method="post" action="{$cpscript}?action=$action&op=$op">
  4.                         <input type="hidden" name="formhash" value="{FORMHASH}">
  5.                         <input type="hidden" name="fid" value="$fid">
  6.                         <table cellspacing="0" cellpadding="0">
  7.                                 <tr>
  8.                                         <th width="20%">{lang forum_name}</th><td>$forum[name] [<a href="forumdisplay.php?fid=$fid" target="_blank">{lang views}</a>]</td>
  9.                                 </tr>
  10.                                 <tr>
  11.                                 <tr>
  12.                                         <th width="20%">{lang forum_description}</th><td><textarea name="descnew" rows="4" cols="80">$forum['description']</textarea></td>
  13.                                 </tr>
  14.                                 <tr>
  15.                                         <th width="20%">{lang forum_rules}</th><td><textarea name="rulesnew" rows="4" cols="80" {if !$alloweditrules}disabled readonly{/if}>$forum['rules']</textarea></td>
  16.                                 </tr>
  17.                                 <tr>
  18.                                         <th></th><td><button type="submit" class="submit" name="editsubmit" value="true">{lang submit}</button></td>
  19.                                 </tr>
  20.                         </table>
  21.                         </form>
  22.                 </div>
  23.                 <!--{if $forumupdate}-->
  24.                         <div class="notice">{lang mod_message_forum_update}</div>
  25.                 <!--{/if}-->

  26.         <!--{elseif $op == 'recommend'}-->
  27.                 <div class="mainbox">
  28.                 <h3>{lang mod_option_forum_recommend} - $forum[name]</h3>
  29.                 <table cellspacing="0" cellpadding="0">
  30.                         <thead>
  31.                                 <tr>
  32.                                         <td width="10%"><input class="checkbox" type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form)" />{lang delete}</td>
  33.                                         <th width="10%">{lang displayorder}</th>
  34.                                         <th>{lang subject}</th>
  35.                                         <th class="user" width="15%">{lang author}</th>
  36.                                         <th class="user" width="15%">{lang moderator}</th>
  37.                                         <td class="time" width="10%">{lang mod_forum_recommend_expiration}</td>
  38.                                 </tr>
  39.                         </thead>
  40.                         <!--{if $threadlist}-->
  41.                                 <form method="post" action="{$cpscript}?action=$action">
  42.                                 <input type="hidden" name="formhash" value="{FORMHASH}" />
  43.                                 <input type="hidden" name="op" value="$op" />
  44.                                 <input type="hidden" name="page" value="$page" />
  45.                                 <input type="hidden" name="fid" value="$fid" />
  46.                                 <!--{loop $threadlist $thread}-->
  47.                                         <tr>
  48.                                         <td class="selector"><input type="checkbox" name="delete[]" value="$thread[tid]" /></td>
  49.                                         <td><input type="text" size="3" name="ordernew[{$thread[tid]}]" value="$thread[displayorder]"></td>
  50.                                         <td><a href="viewthread.php?tid=$thread[tid]" target="_blank">$thread[subject]</a></td>
  51.                                         <td>$thread[author]</td>
  52.                                         <td>$thread[moderator]</td>
  53.                                         <td class="time">$thread[expiration]</td>
  54.                                         </tr>
  55.                                 <!--{/loop}-->
  56.                                 </table>
  57.                                 <div class="footoperation" align="center">
  58.                                         <button type="submit" name="editsubmit" value="yes" class="button">{lang mod_forum_recommend_list}</button>
  59.                                 </div>
  60.                         <!--{else}-->
  61.                                         <tr><td colspan="6">{lang search_nomatch}</td></tr>
  62.                                 </table>

  63.                         <!--{/if}-->
  64.                 </div>
  65.                 </form>
  66.                 <!--{if !empty($reportlist[pagelink])}--><div class="pages_btns">$reportlist[pagelink]</div><!--{/if}-->
  67.                 <!--{if $listupdate}-->
  68.                         <div class="notice">{lang mod_message_forum_updaterecommend}</div>
  69.                 <!--{/if}-->

  70.         <!--{/if}-->

  71. <!--{/if}-->
复制代码
修改为:
  1.                 <script type="text/javascript">
  2.                         var allowbbcode = allowimgcode = 1;
  3.                         var allowhtml = forumallowhtml = allowsmilies = 0;
  4.                         function parseurl(str, mode) {
  5.                                 str = str.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, mode == 'html' ? '$1<img src="$2" border="0">' : '$1[img]$2[/img]');
  6.                                 str = str.replace(/([^>=\]"'\/@]|^)((((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k):\/\/)|www\.)([\w\-]+\.)*[:\.@\-\w\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!#]*)*)/ig, mode == 'html' ? '$1<a href="$2" target="_blank">$2</a>' : '$1[url]$2[/url]');
  7.                                 str = str.replace(/([^\w>=\]:"'\.\/]|^)(([\-\.\w]+@[\.\-\w]+(\.\w+)+))/ig, mode == 'html' ? '$1<a href="mailto:$2">$2</a>' : '$1[email]$2[/email]');
  8.                                 return str;
  9.                         }
  10.                 </script>
  11.                 <script type="text/javascript" src="include/javascript/bbcode.js"></script>
  12.                 <div class="mainbox">
  13.                         <h3>{lang mod_option_forum_edit} - $forum[name]</h3>
  14.                         <form method="post" action="{$cpscript}?action=$action&op=$op">
  15.                         <input type="hidden" name="formhash" value="{FORMHASH}">
  16.                         <input type="hidden" name="fid" value="$fid">
  17.                         <table cellspacing="0" cellpadding="0">
  18.                                 <tr>
  19.                                         <th width="20%">{lang forum_name}</th><td>$forum[name] [<a href="forumdisplay.php?fid=$fid" target="_blank">{lang views}</a>]</td>
  20.                                 </tr>
  21.                                 <tr>
  22.                                 <tr>
  23.                                         <th width="20%">{lang forum_description}<br /><br />{faq discuzcode} <b>{lang enabled}</b><br />{lang post_html} <b>{lang disabled}</b><br />{lang memcp_nocustomizebbcode}<br /><br /><a href="###" onclick="$('descpreview').innerHTML = bbcode2html($('descnew').value)">{lang memcp_profile_preview}</a></th><td><div id="descpreview"></div><textarea id="descnew" name="descnew" rows="8" cols="80">$forum['description']</textarea></td>
  24.                                 </tr>
  25.                                 <tr>
  26.                                         <th width="20%">{lang forum_rules}<br /><br />{faq discuzcode} <b>{lang enabled}</b><br />{lang post_html} <b>{lang disabled}</b><br />{lang memcp_nocustomizebbcode}<br /><br /><a href="###" onclick="$('rulespreview').innerHTML = bbcode2html($('rulesnew').value)">{lang memcp_profile_preview}</a></th><td><div id="rulespreview"></div><textarea id="rulesnew" name="rulesnew" rows="8" cols="80" {if !$alloweditrules}disabled readonly{/if}>$forum['rules']</textarea></td>
  27.                                 </tr>
  28.                                 <tr>
  29.                                         <th></th><td><button type="submit" class="submit" name="editsubmit" value="true">{lang submit}</button></td>
  30.                                 </tr>
  31.                         </table>
  32.                         </form>
  33.                 </div>
  34.                 <!--{if $forumupdate}-->
  35.                         <div class="notice">{lang mod_message_forum_update}</div>
  36.                 <!--{/if}-->

  37.         <!--{elseif $op == 'recommend'}-->
  38.                 <div class="mainbox">
  39.                 <h3>{lang mod_option_forum_recommend} - $forum[name]</h3>
  40.                 <table cellspacing="0" cellpadding="0">
  41.                         <thead>
  42.                                 <tr>
  43.                                         <td width="10%"><input class="checkbox" type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form)" />{lang delete}</td>
  44.                                         <th width="10%">{lang displayorder}</th>
  45.                                         <th>{lang subject}</th>
  46.                                         <th class="user" width="15%">{lang author}</th>
  47.                                         <th class="user" width="15%">{lang moderator}</th>
  48.                                         <td class="time" width="10%">{lang mod_forum_recommend_expiration}</td>
  49.                                 </tr>
  50.                         </thead>
  51.                         <!--{if $threadlist}-->
  52.                                 <form method="post" action="{$cpscript}?action=$action">
  53.                                 <input type="hidden" name="formhash" value="{FORMHASH}" />
  54.                                 <input type="hidden" name="op" value="$op" />
  55.                                 <input type="hidden" name="page" value="$page" />
  56.                                 <input type="hidden" name="fid" value="$fid" />
  57.                                 <!--{loop $threadlist $thread}-->
  58.                                         <tr>
  59.                                         <td class="selector"><input type="checkbox" name="delete[]" value="$thread[tid]" /></td>
  60.                                         <td><input type="text" size="3" name="ordernew[{$thread[tid]}]" value="$thread[displayorder]"></td>
  61.                                         <td><a href="viewthread.php?tid=$thread[tid]" target="_blank">$thread[subject]</a></td>
  62.                                         <td>$thread[author]</td>
  63.                                         <td>$thread[moderator]</td>
  64.                                         <td class="time">$thread[expiration]</td>
  65.                                         </tr>
  66.                                 <!--{/loop}-->
  67.                                 </table>
  68.                                 <div class="footoperation" align="center">
  69.                                         <button type="submit" name="editsubmit" value="yes" class="button">{lang mod_forum_recommend_list}</button>
  70.                                 </div>
  71.                         <!--{else}-->
  72.                                         <tr><td colspan="6">{lang search_nomatch}</td></tr>
  73.                                 </table>

  74.                         <!--{/if}-->
  75.                 </div>
  76.                 </form>
  77.                 <!--{if !empty($reportlist[pagelink])}--><div class="pages_btns">$reportlist[pagelink]</div><!--{/if}-->
  78.                 <!--{if $listupdate}-->
  79.                         <div class="notice">{lang mod_message_forum_updaterecommend}</div>
  80.                 <!--{/if}-->

  81.         <!--{/if}-->

  82. <!--{/if}-->
复制代码
templates\default\modcp_report.htm文件
查找:
  1.                                         <td class="selector"><input type="checkbox" name="ids[]" value="$report[id]"{if $report['status']} disabled="disabled"{/if} /></td>
复制代码
修改为:
  1.                                         <td class="selector"><input type="checkbox" name="ids[]" value="$report[id]" /></td>
复制代码
templates\default\my.htm文件
查找:
  1.         <li <!--{if $item == 'debate' && $type == 'apply'}--> class="current"<!--{/if}-->><a href="my.php?item=debate&type=apply$extrafid">{lang my_debate_apply}</a></li>
复制代码
修改为:
  1.         <li <!--{if $item == 'debate' && $type == 'reply'}--> class="current"<!--{/if}-->><a href="my.php?item=debate&type=reply$extrafid">{lang my_debate_apply}</a></li>
复制代码
templates\default\post_editor.htm文件
查找:
  1.                 <div class="">
  2.                         <div id="smilieslist"><img src="{IMGDIR}/loading.gif"></div>
  3.                 </div>
  4.         <!--{/if}-->
复制代码
修改为:
  1.                 <div class="smilies">
  2.                         <div id="smilieslist" style="width: 180px;">{subtemplate post_smilies}</div>
  3.                 </div>
  4.         <!--{/if}-->
  5.         <div  style="clear: both;">
复制代码
查找:
  1.                 <!--{if $uc['addfeed'] && $ucappopen['UCHOME']}--><li><label><input type="checkbox" name="addfeed" value="1" $addfeedcheck> {lang addfeed}</label></li><!--{/if}-->
复制代码
在下面加上
  1.         </ul>
  2.         </div>
复制代码
templates\default\post_js.htm文件
  1. <script type="text/javascript" src="include/javascript/bbcode.js"></script>
复制代码
上面的
  1. <!--{/if}-->
复制代码
移到
  1. <script type="text/javascript" src="include/javascript/post_editor.js"></script>
复制代码
的上面
将最后的
  1. <!--{if $smileyinsert}--><script type="text/javascript">ajaxget('post.php?action=smilies', 'smilieslist');</script><!--{/if}-->
复制代码
删掉

templates\default\rate.htm文件
查找 {subtemplate header}   和 {subtemplate footer}  一共四个,一样两个,将sub去掉

templates\default\templates.lang.php文件
查找:
  1.         'mod_access_ban_viewthread' => '禁止浏览主题',
复制代码
修改为:
  1.         'mod_access_ban_viewthread' => '禁止查看主题',
复制代码
templates\default\viewpro_classic.htm文件
查找:
  1.                                 <img src="{echo discuz_uc_avatar($member[uid])}" border="0" alt="" />
复制代码
修改为:
  1.                                 {echo discuz_uc_avatar($member[uid])}
复制代码
mplates\default\viewthread.htm文件
查找:
  1.                                         <div id="smilieslist"></div>
  2.                                         <script type="text/javascript">ajaxget('post.php?action=smilies', 'smilieslist');</script>
复制代码
修改为:
  1.                                         <div id="smilieslist">{subtemplate post_smilies}</div>
复制代码
templates\default\viewthread_activity.htm文件
查找:
  1.                                                                         <dt><a target="_blank" href="space.php?uid=$apply[uid]"><img src="{echo discuz_uc_avatar($apply[uid], 'small')}" border="0" alt="" /></a></dt>
复制代码
修改为:
  1.                                                                         <dt><a target="_blank" href="space.php?uid=$apply[uid]">{echo discuz_uc_avatar($apply[uid], 'small')}</a></dt>
复制代码
查找:
  1.                         <!--{if $post['msn']}--><a href="javascript:;" onclick="msnoperate('add', '$post[msn]')" title="{lang msn_add}"><img src="{IMGDIR}/msnadd.gif" alt="{lang msn_add}" /></a>
  2.                                 <a href="javascript:;" onclick="msnoperate('chat', '$post[msn]')" title="{lang msn_chat}"><img src="{IMGDIR}/msnchat.gif" alt="{lang msn_chat}" /></a><!--{/if}-->
复制代码
修改为:
  1.                         <!--{if $post['msn']}--><a target='_blank' href='http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=$post[msn]&mkt=zh-cn'><img style='border-style: none;' src='http://messenger.services.live.com/users/$post[msn]/presenceimage?mkt=zh-cn' width='16' height='16' /></a><!--{/if}-->
复制代码
查找:
  1. <script type="text/javascript">ajaxget(<!--{if !empty($do) && $do == 'viewapplylist'}-->'misc.php?action=activityapplylist&tid=$tid#'<!--{else}-->'viewthread.php?fid=$fid&tid=$tid&do=viewspecialpost&page=$page#'<!--{/if}-->, 'ajaxspecialpost');</script>
复制代码
修改为:
  1. <script type="text/javascript">ajaxget(<!--{if !empty($do) && $do == 'viewapplylist'}-->'misc.php?action=activityapplylist&tid=$tid'<!--{else}-->'viewthread.php?fid=$fid&tid=$tid&do=viewspecialpost&page=$page'<!--{/if}-->, 'ajaxspecialpost');</script>
复制代码
templates\default\viewthread_debate.htm文件
查找:
  1.                         <!--{if $post['msn']}--><a href="javascript:;" onclick="msnoperate('add', '$post[msn]')" title="{lang msn_add}"><img src="{IMGDIR}/msnadd.gif" alt="{lang msn_add}" /></a>
  2.                                 <a href="javascript:;" onclick="msnoperate('chat', '$post[msn]')" title="{lang msn_chat}"><img src="{IMGDIR}/msnchat.gif" alt="{lang msn_chat}" /></a><!--{/if}-->
复制代码
修改为:
  1.                         <!--{if $post['msn']}--><a target='_blank' href='http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=$post[msn]&mkt=zh-cn'><img style='border-style: none;' src='http://messenger.services.live.com/users/$post[msn]/presenceimage?mkt=zh-cn' width='16' height='16' /></a><!--{/if}-->
复制代码
templates\default\viewthread_poll.htm文件
查找:
  1.                         <!--{if $post['msn']}--><a href="javascript:;" onclick="msnoperate('add', '$post[msn]')" title="{lang msn_add}"><img src="{IMGDIR}/msnadd.gif" alt="{lang msn_add}" /></a>
  2.                                 <a href="javascript:;" onclick="msnoperate('chat', '$post[msn]')" title="{lang msn_chat}"><img src="{IMGDIR}/msnchat.gif" alt="{lang msn_chat}" /></a><!--{/if}-->
复制代码
修改为:
  1.                         <!--{if $post['msn']}--><a target='_blank' href='http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=$post[msn]&mkt=zh-cn'><img style='border-style: none;' src='http://messenger.services.live.com/users/$post[msn]/presenceimage?mkt=zh-cn' width='16' height='16' /></a><!--{/if}-->
复制代码
templates\default\viewthread_reward.htm文件
查找:
  1.                         <!--{if $post['msn']}--><a href="javascript:;" onclick="msnoperate('add', '$post[msn]')" title="{lang msn_add}"><img src="{IMGDIR}/msnadd.gif" alt="{lang msn_add}" /></a>
  2.                                 <a href="javascript:;" onclick="msnoperate('chat', '$post[msn]')" title="{lang msn_chat}"><img src="{IMGDIR}/msnchat.gif" alt="{lang msn_chat}" /></a><!--{/if}-->
复制代码
修改为:
  1.                         <!--{if $post['msn']}--><a target='_blank' href='http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=$post[msn]&mkt=zh-cn'><img style='border-style: none;' src='http://messenger.services.live.com/users/$post[msn]/presenceimage?mkt=zh-cn' width='16' height='16' /></a><!--{/if}-->
复制代码
templates\default\viewthread_special_footer.htm文件
查找:
  1.                                         <div id="smilieslist"></div>
  2.                                         <script type="text/javascript">ajaxget('post.php?action=smilies', 'smilieslist');</script>
复制代码
修改为:
  1.                                         <div id="smilieslist">{subtemplate post_smilies}</div>
复制代码
查找并删除:
  1. <script type="text/javascript" src="include/javascript/msn.js"></script>

  2. templates\default\viewthread_trade.htm文件
  3. 查找:[code]                                        <script type="text/javascript">ajaxget('viewthread.php?fid=$fid&tid=$tid&do=viewtradelist&page=1#', 'ajaxtradelist');</script>
复制代码
修改为:
  1.                                         <script type="text/javascript">ajaxget('viewthread.php?fid=$fid&tid=$tid&do=viewtradelist&page=1', 'ajaxtradelist');</script>
复制代码
查找:
  1.                                 <!--{if $post['msn']}--><a href="javascript:;" onclick="msnoperate('add', '$post[msn]')" title="{lang msn_add}"><img src="{IMGDIR}/msnadd.gif" alt="{lang msn_add}" /></a>
  2.                                         <a href="javascript:;" onclick="msnoperate('chat', '$post[msn]')" title="{lang msn_chat}"><img src="{IMGDIR}/msnchat.gif" alt="{lang msn_chat}" /></a><!--{/if}-->
复制代码
修改为:
  1.                                 <!--{if $post['msn']}--><a target='_blank' href='http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=$post[msn]&mkt=zh-cn'><img style='border-style: none;' src='http://messenger.services.live.com/users/$post[msn]/presenceimage?mkt=zh-cn' width='16' height='16' /></a><!--{/if}-->
复制代码
templates\default\viewthread_video.htm文件
查找:
  1.                         <!--{if $post['msn']}--><a href="javascript:;" onclick="msnoperate('add', '$post[msn]')" title="{lang msn_add}"><img src="{IMGDIR}/msnadd.gif" alt="{lang msn_add}" /></a>
  2.                                 <a href="javascript:;" onclick="msnoperate('chat', '$post[msn]')" title="{lang msn_chat}"><img src="{IMGDIR}/msnchat.gif" alt="{lang msn_chat}" /></a><!--{/if}-->
复制代码
修改为:
  1.                         <!--{if $post['msn']}--><a target='_blank' href='http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=$post[msn]&mkt=zh-cn'><img style='border-style: none;' src='http://messenger.services.live.com/users/$post[msn]/presenceimage?mkt=zh-cn' width='16' height='16' /></a><!--{/if}-->
复制代码
终于完工了,休息一下,嘿嘿!

[ 本帖最后由 lhole 于 2008-6-6 21:04 编辑 ]

使用道具 举报

Rank: 6Rank: 6

UID
429725
积分
1123
帖子
1121
威望
16
在线时间
0 小时
注册时间
2006-8-30
发表于 2008-6-6 17:36:45 |显示全部楼层
希望大家多多支持,谢谢!
http://www.9258bbs.cn

[ 本帖最后由 lhole 于 2008-6-6 21:10 编辑 ]

使用道具 举报

Rank: 1

UID
916755
积分
26
帖子
32
威望
0
在线时间
0 小时
注册时间
2008-4-7
发表于 2008-6-6 17:39:01 |显示全部楼层
支持一下,有点麻烦
要是插件装的少的就直接覆盖再重转插件吧

使用道具 举报

Rank: 6Rank: 6

UID
429725
积分
1123
帖子
1121
威望
16
在线时间
0 小时
注册时间
2006-8-30
发表于 2008-6-6 17:39:42 |显示全部楼层
站位!站位!站位!
都别抢!!!!!!

使用道具 举报

Rank: 2

UID
787739
积分
144
帖子
180
威望
0
在线时间
0 小时
注册时间
2007-8-30
发表于 2008-6-6 17:54:16 |显示全部楼层
安装完后,,,是快好多!
罗伊-杜论坛
http://www.roydu.cn

使用道具 举报

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

fastpost

手机版|Archiver|北京康盛新创科技有限责任公司 ( 京ICP证110024号|京网文[2011]0019-007号 )  

GMT+8, 2012-2-9 14:53 , Processed in 0.224621 second(s), 17 queries , Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部