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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[Freddy 出品] Discuz! 5.0.0 -- B0911 -> B1001 手工升级方法 [10-02-12:30]

[复制链接]
freddy 发表于 2006-9-29 15:32:08 | 显示全部楼层 |阅读模式
官方的失误请大家不要怪到我的头上,呵呵~我只是利用自己的业余空闲时间把区别分离出来而已。现在更新了三个文件。一个admin文件夹下的那个文件我不提供修改了,因为我也不知道。。。另外两个我已经在贴子里更新了。

10/2--12:30之前看过此贴的用户注意:

include/forum.func.php

这个文件的修补其实就是在替换的那段的里的一个implode的前面,加一个@号。

include/common.inc.php

这个文件其实很简单,也是修补一下替换的内容。大家发现会有两个postattachcredits,只要把后面那个postattachcredits改为getattachcredits即可。

修补完成,下面的贴子已经更新。



templates/default/login.htm中的第一步...字符被过虑掉了..汗个!!!这个的第一步没法弄了!大家覆盖吧此文件吧.相信大家没改多少.

/////////////////////////////////////////////////////////////////////////////////////////////////////////////


1.转栽或建立副本请接受我的许可,否则产生的后果由你自己负责。
2.如果你没升级到B0911,那么此帖就不用看了。
3.我并不是要大家根据我改的全部改,大家是要根据自己改插件时改过的文件,自己相应对照修改,其余没有修改过的文件,用默认下载的补丁包自行上传即可。




=========================================================================

admincp.php


Find:

  1. $extra = nl2br(htmlspecialchars($extra));
复制代码


Replace:

  1. $extra = nl2br(dhtmlspecialchars($extra));
复制代码



index.php

Step 1:

Find:


  1.                         $groupids = array_keys($_DCACHE['onlinelist']);
  2.                         array_shift($groupids);
  3.                         $groupids = implode(',',$groupids);
复制代码


Delete!!!


Step 2:

Find:


  1. $query = $db->query("SELECT uid, username, groupid, invisible, action, lastactivity, fid FROM {$tablepre}sessions WHERE groupid IN (".$groupids.") ORDER BY uid DESC LIMIT ".$maxonlinelist);
  2.                                         $onlinenum = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}sessions"), 0);
复制代码


Replace:


  1. $query = $db->query("SELECT uid, username, groupid, invisible, action, lastactivity, fid FROM {$tablepre}sessions ORDER BY uid DESC LIMIT ".$maxonlinelist);
  2.                                         $onlinenum = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}sessions"), 0);
复制代码



Step 3:

Find:


  1. $query = $db->query("SELECT SQL_CALC_FOUND_ROWS uid, username, groupid, invisible, action, lastactivity, fid FROM {$tablepre}sessions WHERE groupid IN (".$groupids.") ORDER BY uid DESC LIMIT ".$maxonlinelist);
  2.                                         $onlinenum = $db->result($db->query("SELECT FOUND_ROWS()"), 0);
复制代码


Replace:


  1. $query = $db->query("SELECT SQL_CALC_FOUND_ROWS uid, username, groupid, invisible, action, lastactivity, fid FROM {$tablepre}sessions ORDER BY uid DESC LIMIT ".$maxonlinelist);
  2.                                         $onlinenum = $db->result($db->query("SELECT FOUND_ROWS()"), 0);//debug 在线人数
复制代码



register.php

Step 1:

Find:

  1. $db->query("INSERT INTO {$tablepre}members (username, password, secques, gender, adminid
复制代码


Add Above:

  1.         $showemailnew = $showemailnew ? 1 : 0;
复制代码



Step 2:

Find:

  1. '$pmsoundnew', '$showemail', '$newsletter', '$invisiblenew',
复制代码


Replace:

  1. '$pmsoundnew', '$showemailnew', '$newsletter', '$invisiblenew',
复制代码



=========================================================================


admin/database.inc.php

Step 1:

Find:

  1. <td class="altbg2"><input type="text" size="40" name="filename" value="./forumdata/<?=date('md').'_'.random(8)?>.sql" onclick="alert('<?=$lang['database_export_filename_confirm']?>');"></td>
复制代码


Replace:

  1. <td class="altbg2"><input type="text" size="40" name="filename" value="./forumdata/<?=date('ymd').'_'.random(8)?>.sql" onclick="alert('<?=$lang['database_export_filename_confirm']?>');"></td>
复制代码


Step 2:

Find:

  1. .rawurlencode($sqlcharset)."&sqlcompat=".rawurlencode($sqlcompat)."&exportsubmit=yes");
复制代码


Replace:

  1. .rawurlencode($sqlcharset)."&sqlcompat=".rawurlencode($sqlcompat)."&exportsubmit=yes&usehex=$usehex");
复制代码



admin/forums.inc.php


Find:

  1. $query = $db->query("SELECT filename FROM {$tablepre}attachments WHERE tid IN ($tids)");
  2.                         while($attach = $db->fetch_array($query)) {
  3.                                 @unlink($attachdir.'/'.$attach['filename']);
复制代码


Replace:

  1. $query = $db->query("SELECT attachment FROM {$tablepre}attachments WHERE tid IN ($tids)");
  2.                         while($attach = $db->fetch_array($query)) {
  3.                                 @unlink($attachdir.'/'.$attach['attachment']);
复制代码



admin/misc.inc.php

Step 1:

Find(Attention:You could find 2 places in that file.):

  1. updatecache('crons');
复制代码


Replace:

  1. //updatecache('crons');
复制代码


Step 2:

Find:

  1. if(!empty($edit)) {
复制代码


Add Above:


  1.                 $cron['filename'] = str_replace(array('..', '/', '\\'), array('', '', ''), $cron['filename']);
  2.                 $cron['minute'] = explode("\t", $cron['minute']);
复制代码


Step 3:

Find(Attention:You could find 2 places in that file.):

  1. cronnextrun($cronid);
复制代码


Replace:

  1. cronnextrun($cron);
复制代码




admin/styles.inc.php


Find:

  1. updatecache('styles');
  2.                         cpmsg('styles_edit_succeed', 'admincp.php?action=styles');
复制代码


Add Above(Warning:Please opeate the first one that you would find.):

  1.                         updatecache('settings');
复制代码


admin/templates.inc.php

Step 1:

Find:

  1. if($keyword) {
  2.                         $keywordadd = " - $lang[templates_keyword] <i>".htmlspecialchars(stripslashes($keyword))."</i> - <a href="admincp.php?action=templates&edit=$edit" style="color: ".HEADERTEXT."">[ $lang[templates_view_all] ]</a>";
  3.                         $keywordenc = rawurlencode($keyword);
  4.                 }
复制代码


Replace:

  1. if($keyword) {
  2.                         $keywordadd = " - $lang[templates_keyword] <i>".dhtmlspecialchars(stripslashes($keyword))."</i> - <a href="admincp.php?action=templates&edit=$edit" style="color: ".HEADERTEXT."">[ $lang[templates_view_all] ]</a>";
  3.                         $keywordenc = rawurlencode($keyword);
  4.                 }
复制代码


Step 2:

Find:

  1. $content = htmlspecialchars(fread($fp, filesize($filename)));
复制代码


Replace:

  1. $content = dhtmlspecialchars(fread($fp, filesize($filename)));
复制代码



=========================================================================

include/bbcode.js

Step 1:

Find:

  1. var prepend = '';
  2. var append = '';
复制代码


Delete!!!

Step 2:

Find:

  1. function addslashes(str) {
  2.         var searcharray = ['\\', '\'', '/', '(', ')', '[', ']', '{', '}', '^', '$', '?', '.', '*', '+', '|'];
  3.         var replacearray = ['\\\\', '\\\'', '\\/', '\\(', '\\)', '\\[', '\\]', '\\{', '\\}', '\\^', '\\$', '\\?', '\\.', '\\*', '\\+', '\\|'];
  4.         var len = searcharray.length;

  5.         for(var i = 0; i < len; i++) {
  6.                 str = str.replace(searcharray[i], replacearray[i]);
  7.         }

  8.         return str;
  9. }
复制代码


Replace:

  1. function addslashes(str) {
  2.         var searcharray = ['\\\\', '\\\'', '\\\/', '\\\(', '\\\)', '\\\[', '\\\]', '\\\{', '\\\}', '\\\^', '\\\$', '\\\?', '\\\.', '\\\*', '\\\+', '\\\|'];
  3.         var replacearray = ['\\\\', '\\\'', '\\/', '\\(', '\\)', '\\[', '\\]', '\\{', '\\}', '\\^', '\\$', '\\?', '\\.', '\\*', '\\+', '\\|'];
  4.         var len = searcharray.length;

  5.         for(var i = 0; i < len; i++) {
  6.                 re = new RegExp(searcharray[i], "g");
  7.                 str = str.replace(re, replacearray[i]);
  8.         }

  9.         return str;
  10. }
复制代码



Step 3:

Find:

  1. function dpstag(options, text, tagname) {
  2.         prepend = append = '';
  3.         parsestyle(options, append);
  4.         if(in_array(tagname, ['div', 'p'])) {
复制代码


Replace:

  1. function dpstag(options, text, tagname) {
  2.         if(trim(text) == '') {
  3.                 return '';
  4.         }
  5.         var pend = parsestyle(options, '', '');
  6.         var prepend = pend['prepend'];
  7.         var append = pend['append'];
  8.         if(in_array(tagname, ['div', 'p'])) {
复制代码



Step 4:

Find:

  1. function fonttag(fontoptions, text) {
  2.         prepend = append = '';
  3.         var tags = new Array();
  4.         tags = {'font' : 'face=', 'size' : 'size=', 'color' : 'color='};
  5.         for(bbcode in tags) {
  6.                 optionvalue = fetchoptionvalue(tags[bbcode], fontoptions);
  7.                 if(optionvalue) {
  8.                         prepend += '[' + bbcode + '=' + optionvalue + ']';
  9.                         append = '[/' + bbcode + ']' + append;
  10.                 }
  11.         }

  12.         parsestyle(fontoptions, append);
  13.         return prepend + recursion('font', text, 'fonttag') + append;
  14. }
复制代码


Replace:

  1. function fonttag(fontoptions, text) {
  2.         var prepend = '';
  3.         var append = '';
  4.         var tags = new Array();
  5.         tags = {'font' : 'face=', 'size' : 'size=', 'color' : 'color='};
  6.         for(bbcode in tags) {
  7.                 optionvalue = fetchoptionvalue(tags[bbcode], fontoptions);
  8.                 if(optionvalue) {
  9.                         prepend += '[' + bbcode + '=' + optionvalue + ']';
  10.                         append = '[/' + bbcode + ']' + append;
  11.                 }
  12.         }

  13.         var pend = parsestyle(fontoptions, prepend, append);
  14.         return pend['prepend'] + recursion('font', text, 'fonttag') + pend['append'];
  15. }
复制代码


Step 5:

Find:

  1. str = str.replace(/on(mousewheel|mouseover|click|load|unload|submit|focus|blur)="[^"]*"/ig, '');
复制代码


Replace:

  1. str = str.replace(/on[a-zA-Z]{3,16}\s?=\s?(["'])[\s\S]*?\1/ig, '');
复制代码



Step 6:

Find:

  1. str = str.replace(/<a\s+?name=(["']?)(.+?)(\1)[\s\S]*?>([\s\S]*?)<\/a>/ig, "$3");
复制代码


Replace:

  1. str = str.replace(/<a\s+?name=(["']?)(.+?)(\1)[\s\S]*?>([\s\S]*?)<\/a>/ig, '$4');
复制代码



Step 7:

Find:

  1. function parsestyle(tagoptions, appendtags) {
复制代码


Replace:

  1. function parsestyle(tagoptions, prepend, append) {
复制代码


Step 8:

Find:

  1. append = '[/' + searchlist[i][0] + ']' + appendtags;
  2.                 }
  3.         }
复制代码


Replace:

  1. append = '[/' + searchlist[i][0] + ']' + append;
  2.                 }
  3.         }
  4.         return {'prepend' : prepend, 'append' : append};
复制代码



include/cache.func.php

Step 1:

Find:

  1. 20060901
复制代码


Or:

  1. 20060911
复制代码


Replace:

  1. 20061001
复制代码


Step 2:

Find:

  1. 'crons'                => array('crons'),
复制代码


Delete!!!


Step 3:

Find:


  1.         static $cronunlocked = FALSE;
  2.         global $cronnextrun;
  3.         if(!$cronunlocked && !$cachename && $cronnextrun) {
  4.                 require_once DISCUZ_ROOT.'./include/cron.func.php';
  5.                 $lockfile = DISCUZ_ROOT.'./forumdata/cronlock.php';
  6.                 if(file_exists($lockfile)) {
  7.                         unlink($lockfile);
  8.                         $cronunlocked = TRUE;
  9.                 }
  10.         }
复制代码


Delete!!!


Step 4:

Find:

  1.                 case 'crons':
  2.                         $table = 'crons';
  3.                         $cols = 'cronid, name, filename, nextrun, weekday, day, hour, minute';
  4.                         $conditions = "WHERE available>'0'";
  5.                         break;
复制代码


Delete!!!

Step 5:

Find:

  1.                 case 'crons':
  2.                         while($cron = $db->fetch_array($query)) {
  3.                                 $cronid = $cron['cronid'];
  4.                                 $cron['filename'] = str_replace(array('..', '/', '\\'), array('', '', ''), $cron['filename']);
  5.                                 $cron['minute'] = explode("\t", $cron['minute']);
  6.                                 unset($cron['cronid']);
  7.                                 $data[$cronid] = $cron;
  8.                         }
  9.                         break;
复制代码


Delete!!!


include/common.inc.php


Find:

  1.         $forum['postcredits'] = $forum['postcredits'] ? unserialize($forum['postcredits']) : array();
  2.         $forum['replycredits'] = $forum['replycredits'] ? unserialize($forum['replycredits']) : array();
  3.         $forum['threadtypes'] = $forum['threadtypes'] ? unserialize($forum['threadtypes']) : array();
  4.         $forum['digestcredits'] = $forum['digestcredits'] ? unserialize($forum['digestcredits']) : array();
  5.         $forum['postattachcredits'] = $forum['postattachcredits'] ? unserialize($forum['postattachcredits']) : array();
  6.         $forum['getattachcredits'] = $forum['getattachcredits'] ? unserialize($forum['getattachcredits']) : array();
  7.         if($supe_status) {
  8.                 $forum['supe_pushsetting'] = unserialize($forum['supe_pushsetting']);
  9.         }
复制代码


Replace:


  1.         foreach(array('postcredits', 'replycredits', 'threadtypes', 'digestcredits', 'postattachcredits', 'getattachcredits', 'supe_pushsetting') as $key) {
  2.                 $forum[$key] = !empty($forum[$key]) ? unserialize($forum[$key]) : array();
  3.         }
复制代码



include/discuzcode.func.php


Find:


  1. return ($htmlon || $allowhtml) && $parsetype != 1 ? $message : nl2br(str_replace(array("\t", '   ', '  '), array('&nbsp; &nbsp; &nbsp; &nbsp; ', '&nbsp; &nbsp;', '&nbsp;&nbsp;'), $message));
复制代码


Replace:

  1. return $htmlon || $allowhtml ? $message : nl2br(str_replace(array("\t", '   ', '  '), array('&nbsp; &nbsp; &nbsp; &nbsp; ', '&nbsp; &nbsp;', '&nbsp;&nbsp;'), $message));
复制代码



include/editpost.inc.php


Step 1:

Find:


  1.                 if(!$postinfo['parseurloff']) {
  2.                         $postinfo['message'] = parseurl($postinfo['message']);
  3.                 }
复制代码


Delete!!!

Step 2:

Find:


  1. if($uattachment || ($attachpermadd = $allowsetattachperm && $attach['readperm'] != $attachpermnew[$attach['aid']] ? ", readperm='{$attachpermnew[$attach['aid']]}'" : '') || $attach['description'] != ($attachdescnew[$attach['aid']] = cutstr(dhtmlspecialchars($attachdescnew[$attach['aid']]), 100))) {
复制代码


Replace:

  1. $attachpermadd = $allowsetattachperm && $attach['readperm'] != $attachpermnew[$attach['aid']] ? ", readperm='{$attachpermnew[$attach['aid']]}'" : '' ;
  2.                         $attachdescnew[$attach['aid']] = cutstr(dhtmlspecialchars($attachdescnew[$attach['aid']]), 100);
  3.                         $attachdescadd = $attach['description'] != $attachdescnew[$attach['aid']] ? 1 : 0;

  4.                         if($uattachment || $attachpermadd || $attachdescadd) {
复制代码



include/forum.func.php

Step 1:

Find:

  1. $forumlist = '';
复制代码


Delete!!!


Step 2:

Find:


  1. foreach($_DCACHE['forums'] as $fid1 => $forum1) {
  2.                 if($forum1['type'] == 'group') {
  3.                         if($tableformat) {
  4.                                 $forumlist .= '<tr><td class="popupmenu_option"><a'.($gid == $forum1['fid'] ? ' class="bold"' : '').' href="'.$indexname.'?gid='.$forum1['fid'].'">'.$forum1['name'].'</a></td></tr>';
  5.                         } else {
  6.                                 $forumlist .= $groupselectable ? '<option value="'.$forum1['fid'].'">'.$forum1['name'].'</option>' : '</optgroup><optgroup label="'.$forum1['name'].'">';
  7.                         }
  8.                         foreach($_DCACHE['forums'] as $fid2 => $forum2) {
  9.                                 if($forum2['fup'] == $fid1 && $forum2['type'] == 'forum' && (!$forum2['viewperm'] || ($forum2['viewperm'] && forumperm($forum2['viewperm'])) || strstr($forum2['users'], "\t$discuz_uid\t"))) {
  10.                                         if($tableformat) {
  11.                                                 $forumlist .= '<tr><td class="popupmenu_option"><a'.($fid == $fid2 ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$fid2.'">&nbsp; &gt; '.$forum2['name'].'</a></td></tr>';
  12.                                         } else {
  13.                                                 $forumlist .= '<option value="'.$fid2.'">&nbsp; &gt; '.$forum2['name'].'</option>';
  14.                                         }
  15.                                         foreach($_DCACHE['forums'] as $fid3 => $forum3) {
  16.                                                 if($forum3['fup'] == $fid2 && $forum3['type'] == 'sub' && (!$forum3['viewperm'] || ($forum3['viewperm'] && forumperm($forum3['viewperm'])) || strstr($forum3['users'], "\t$discuz_uid\t"))) {
  17.                                                         if($tableformat) {
  18.                                                                 $forumlist .=  '<tr><td class="popupmenu_option"><a'.($fid == $fid3 ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$fid3.'">&nbsp; &nbsp; &nbsp; &gt; '.$forum3['name'].'</a></td></tr>';
  19.                                                         } else {
  20.                                                                 $forumlist .= '<option value="'.$fid3.'">&nbsp; &nbsp; &nbsp; &gt; '.$forum3['name'].'</option>';
  21.                                                         }
  22.                                                 }
  23.                                         }
  24.                                 }
  25.                         }
  26.                         $forumlist .= $tableformat ? '' : '</optgroup><optgroup label="&nbsp;">';
  27.                 } elseif(!$forum1['fup'] && $forum1['type'] == 'forum' && (!$forum1['viewperm'] || ($forum1['viewperm'] && forumperm($forum1['viewperm'])) || strstr($forum1['users'], "\t$discuz_uid\t"))) {
  28.                         if($tableformat) {
  29.                                 $forumlist .= '<tr><td class="popupmenu_option"><a'.($fid == $fid1 ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$fid1.'"> &nbsp; &gt; '.$forum1['name'].'</a></td></tr>';
  30.                         } else {
  31.                                 $forumlist .= '<option value="'.$fid1.'"> &nbsp; &gt; '.$forum1['name'].'</option>';
  32.                         }
  33.                         foreach($_DCACHE['forums'] as $fid2 => $forum2) {
  34.                                 if($forum2['fup'] == $fid1 && $forum2['type'] == 'sub' && (!$forum2['viewperm'] || ($forum2['viewperm'] && forumperm($forum2['viewperm'])) || strstr($forum2['users'], "\t$discuz_uid\t"))) {
  35.                                         if($tableformat) {
  36.                                                 $forumlist .= '<tr><td class="popupmenu_option"><a'.($fid == $fid2 ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$fid2.'">&nbsp; &nbsp; &nbsp; &gt; '.$forum2['name'].'</a></td></tr>';
  37.                                         } else {
  38.                                                 $forumlist .= '<option value="'.$fid2.'">&nbsp; &nbsp; &nbsp; &gt; '.$forum2['name'].'</option>';
  39.                                         }
  40.                                 }
  41.                         }
  42.                         $forumlist .= $tableformat ? '' : '</optgroup><optgroup label="&nbsp;">';
  43.                 }

  44.         }

  45.         $forumlist .= $tableformat ? '' : '</optgroup>';
复制代码


Replace:


  1. foreach($_DCACHE['forums'] as $key => $forum) {
  2.                 if(!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm'])) || strstr($forum['users'], "\t$discuz_uid\t")) {
  3.                         if($forum['type'] == 'group') {
  4.                                 $forumtree[$forum['type']][$forum['fup']][$forum['fid']] = $tableformat ?
  5.                                         '\'<tr><td class="popupmenu_option"><a\'.(\$gid == \$_DCACHE[\'forums\']['.$key.'][\'fid\'] ? \' class="bold"\' : \'\').\' href="\'.\$indexname.\'?gid=\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'">\'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</a></td></tr>\'' :
  6.                                         '(\$groupselectable ? \'<option value="\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'">\'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</option>\' : \'</optgroup><optgroup label="\'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'">\')';
  7.                                 $forumtree[$forum['type']][$forum['fup']][$forum['fid']] .= '.eval(\'return \'.@implode(\'.\', \$forumtree[\'forum\'][\$_DCACHE[\'forums\']['.$key.'][\'fid\']]).\';\')';
  8.                         } elseif($forum['type'] == 'forum') {
  9.                                 $forumtree[$forum['type']][$forum['fup']][$forum['fid']] = $tableformat ?
  10.                                         '\'<tr><td class="popupmenu_option"><a\'.(\$fid == \$_DCACHE[\'forums\']['.$key.'][\'fid\'] ? \' class="bold"\' : \'\').\' href="forumdisplay.php?fid=\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'">&nbsp; &gt; \'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</a></td></tr>\'' :
  11.                                         '\'<option value="\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'">&nbsp; &gt; \'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</option>\'';
  12.                                 $forumtree[$forum['type']][$forum['fup']][$forum['fid']] .= '.eval(\'return \'.@implode(\'.\', \$forumtree[\'sub\'][\$_DCACHE[\'forums\']['.$key.'][\'fid\']]).\';\')';
  13.                         } else {
  14.                                 $forumtree[$forum['type']][$forum['fup']][] = $tableformat ?
  15.                                         '\'<tr><td class="popupmenu_option"><a\'.(\$fid == \$_DCACHE[\'forums\']['.$key.'][\'fid\'] ? \' class="bold"\' : \'\').\' href="forumdisplay.php?fid=\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'">&nbsp; &nbsp; &nbsp; &gt; \'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</a></td></tr>\'' :
  16.                                         '\'<option value="\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'">&nbsp; &nbsp; &nbsp; &gt; \'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</option>\'';
  17.                         }
  18.                 }
  19.         }
  20.         $forumlist .= $forumtree['group'][0] ? eval('return '.implode('.', $forumtree['group'][0]).';') : '';
  21.         $forumlist .= $tableformat ? '' : '</optgroup>';
复制代码



include/global.func.php

Step 1:

Find:

  1. for($i = 0; $i < $length - 3; $i++) {
复制代码


Replace:

  1. for($i = 0; $i < $length - strlen($dot) - 1; $i++) {
复制代码



Step 2:

Find:

  1. $tids = str_replace(array('0,', '0'), array('', ''), $tids);
复制代码


Add Above:

  1.         $boardurl = dhtmlspecialchars($boardurl);
复制代码


Step 3:

Find:

  1. deletelogs.php
复制代码


Replace:

  1. deletelogs.log
复制代码



include/newthread.inc.php


Find:

  1. $supe_pushstatus = $supe_status && $supe_allowpushthread && $forum['supe_pushsetting']['status'] == 1 && !$modnewthreads ? '1' : '0';
复制代码


Replace:

  1. $supe_pushstatus = $supe_status && $forum['supe_pushsetting']['status'] == 1 && !$modnewthreads ? '1' : '0';
复制代码



include/sendmail.inc.php

Step 1:

Find:

  1. if(!$email_from) {
  2.         $email_from = '=?'.$charset.'?B?'.base64_encode($bbname)."?= <$adminemail>";
  3. }

  4. $headers = "From: $email_from\r\nContent-type: text/plain; charset=$charset\r\nContent-Transfer-Encoding: base64\r\n";
复制代码


Replace:

  1. if($email_from) {
  2.         $email_from = '=?'.$charset.'?B?'.base64_encode($email_from).'?=';
  3. } else {
  4.         $email_from = '=?'.$charset.'?B?'.base64_encode($bbname)."?= <$adminemail>";
  5. }

  6. $headers = "From: $email_from\nMIME-Version: 1.0\nContent-type: text/plain; charset=$charset\nContent-Transfer-Encoding: base64\n";
复制代码


Step 2:

Find:

  1. $lastmessage = fgets($fp, 512);
  2.                 if(substr($lastmessage, 3, 1) != '-' || empty($lastmessage)) {
  3.                         break;
  4.                 }
复制代码


Replace:

  1. if(substr($lastmessage, 3, 1) != '-' || empty($lastmessage)) {
  2.                         break;
  3.                 }
  4.                 $lastmessage = fgets($fp, 512);
复制代码



=========================================================================


templates/default/css.htm

Step 1:

Find:

  1. padding-top: 1px;
  2.         color: {HEADERTEXT};
  3.         font-weight: {BOLD};
复制代码


Replace:

  1. padding-top: 1px;
  2.         font-weight: {BOLD};
复制代码


Step 2:

Find:

  1. .t_msg td {
复制代码


Add Above:

  1. .t_msg p {
  2.         margin: 0px;
  3. }
复制代码



templates/default/footer.htm


Find:

  1. <!--{echo "var thisurl = '".substr($_SERVER[SCRIPT_FILENAME], strrpos($_SERVER[SCRIPT_FILENAME], '/')+1).'?'.$_SERVER[QUERY_STRING]."'";}-->
复制代码


Replace:

  1. <!--{echo "var thisurl = '".CURSCRIPT.'.php?'.$_SERVER[QUERY_STRING]."';";}-->
复制代码



templates/default/login.htm
/////////////////////////////////////////////////
Step 1:(此步的代码的某字符被DZ程序的CODE过滤掉了...弄了也白弄,大家自己对照修改)

Find:

  1. <form method="post" name="login" action="logging.php?action=login&">
复制代码


Replace:

  1. <form method="post" name="login" action="logging.php?action=login&">
复制代码

/////////////////////////////////////////////////
Step 2:

Find:


  1. <input class="radio" class="radio" type="radio" name="loginfield" value="username" checked onclick="document.login.username.focus();">{lang username}
  2. <input class="radio" class="radio" type="radio" name="loginfield" value="uid" onclick="document.login.username.focus();">{lang uid}</span>
复制代码


Replace:


  1. <input class="radio" type="radio" name="loginfield" value="username" checked onclick="document.login.username.focus();">{lang username}
  2. <input class="radio" type="radio" name="loginfield" value="uid" onclick="document.login.username.focus();">{lang uid}</span>
复制代码



templates/default/memcp_credits.htm


Find:

  1. </td></tr></table></div>
复制代码


Delete!!!


templates/default/my.htm


Find:

  1. <a href="$indexname">$bbname</a> &raquo; <!--{if $srchfid}--><a href="my.php$extra"><!--{/if}--><!--{if empty($item)}-->{lang my}...<!--{elseif $item == 'threads'}-->{lang my_threads}<!--{elseif $item == 'posts'}-->{lang my_replys}<!--{elseif $item == 'favorites' && $type == 'thread'}-->{lang my_favorite_threads}<!--{elseif $item == 'favorites' && $type == 'forum'}-->{lang my_favorite_forums}<!--{elseif $item == 'subscriptions'}-->{lang my_subscription_threads}<!--{elseif $item == 'tradestats' || $item == 'selltrades' || $item == 'buytrades' || $item == 'tradethreads'}-->{lang my_trades}<!--{elseif $item == 'reward'}-->{lang my_rewards}<!--{elseif $item == 'activities'}-->{lang my_activities}<!--{/if}--><!--{if $srchfid}--></a><!--{/if}-->
  2. <!--{if $srchfid}--> &raquo; $forumname<!--{/if}-->
  3. </div><br>
复制代码


Replace:

  1. <a href="$indexname">$bbname</a> &raquo; <!--{if $srchfid}--><a href="my.php?item=$item$extra"><!--{/if}--><!--{if empty($item)}-->{lang my}...<!--{elseif $item == 'threads'}-->{lang my_threads}<!--{elseif $item == 'posts'}-->{lang my_replys}<!--{elseif $item == 'favorites' && $type == 'thread'}-->{lang my_favorite_threads}<!--{elseif $item == 'favorites' && $type == 'forum'}-->{lang my_favorite_forums}<!--{elseif $item == 'subscriptions'}-->{lang my_subscription_threads}<!--{elseif in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))}-->{lang my_trades}<!--{elseif $item == 'reward'}-->{lang my_rewards}<!--{elseif $item == 'activities'}-->{lang my_activities}<!--{/if}--><!--{if $srchfid}--></a> &raquo; $forumname<!--{/if}-->
  2. </div><br>
复制代码



templates/default/register.htm


Find:

  1. <input class="checkbox" type="checkbox" name="showemail" value="1" checked="checked"> {lang show_email_addr}<br>
  2.         <input class="checkbox" type="checkbox" name="newsletter" value="1" checked="checked"> {lang allow_newsletter}<br>
复制代码


Replace:

  1. <input class="checkbox" type="checkbox" name="showemailnew" value="1" checked="checked"> {lang show_email_addr}<br>
  2.         <input class="checkbox" type="checkbox" name="newsletter" value="1" checked="checked"> {lang allow_newsletter}<br>
复制代码



=========================================================================

修改时小心,看清楚再弄,切勿出错!!!另外,谢谢您的支持。



**** 本内容跟帖回复才可浏览 *****

[ 本帖最后由 freddy 于 2006-10-2 12:28 编辑 ]

评分

1

查看全部评分

 楼主| freddy 发表于 2006-9-29 15:32:24 | 显示全部楼层
占位更新~~~~~~~
回复

使用道具 举报

西.先.生 发表于 2006-9-29 15:32:47 | 显示全部楼层
3楼板凳出售  桃木.红木等各种名贵木材制作 有意者与我联系 电话120-65110119

[ 本帖最后由 西.先.生 于 2006-9-29 17:53 编辑 ]
回复

使用道具 举报

stilldance 发表于 2006-9-29 15:33:17 | 显示全部楼层
板凳
:P :P
回复

使用道具 举报

西.先.生 发表于 2006-9-29 15:33:22 | 显示全部楼层
5楼广告位招租.....

[ 本帖最后由 西.先.生 于 2006-9-29 17:54 编辑 ]
回复

使用道具 举报

ejew 发表于 2006-9-29 15:33:25 | 显示全部楼层
up      
回复

使用道具 举报

bollychen 发表于 2006-9-29 15:34:07 | 显示全部楼层
就等这个了~~顶~~
回复

使用道具 举报

ladyqd 发表于 2006-9-29 15:34:59 | 显示全部楼层
第一页留名支持!!!
回复

使用道具 举报

豬頭豬腦 发表于 2006-9-29 15:35:21 | 显示全部楼层
出来了哈,顶你喔
回复

使用道具 举报

豬頭豬腦 发表于 2006-9-29 15:36:14 | 显示全部楼层
我回复了,怎么还让回复啊
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 08:58 , Processed in 0.032552 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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