官方的失误请大家不要怪到我的头上,呵呵~我只是利用自己的业余空闲时间把区别分离出来而已。现在更新了三个文件。一个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:
- $extra = nl2br(htmlspecialchars($extra));
复制代码
Replace:
- $extra = nl2br(dhtmlspecialchars($extra));
复制代码
index.php
Step 1:
Find:
- $groupids = array_keys($_DCACHE['onlinelist']);
- array_shift($groupids);
- $groupids = implode(',',$groupids);
复制代码
Delete!!!
Step 2:
Find:
- $query = $db->query("SELECT uid, username, groupid, invisible, action, lastactivity, fid FROM {$tablepre}sessions WHERE groupid IN (".$groupids.") ORDER BY uid DESC LIMIT ".$maxonlinelist);
- $onlinenum = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}sessions"), 0);
复制代码
Replace:
- $query = $db->query("SELECT uid, username, groupid, invisible, action, lastactivity, fid FROM {$tablepre}sessions ORDER BY uid DESC LIMIT ".$maxonlinelist);
- $onlinenum = $db->result($db->query("SELECT COUNT(*) FROM {$tablepre}sessions"), 0);
复制代码
Step 3:
Find:
- $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);
- $onlinenum = $db->result($db->query("SELECT FOUND_ROWS()"), 0);
复制代码
Replace:
- $query = $db->query("SELECT SQL_CALC_FOUND_ROWS uid, username, groupid, invisible, action, lastactivity, fid FROM {$tablepre}sessions ORDER BY uid DESC LIMIT ".$maxonlinelist);
- $onlinenum = $db->result($db->query("SELECT FOUND_ROWS()"), 0);//debug 在线人数
复制代码
register.php
Step 1:
Find:
- $db->query("INSERT INTO {$tablepre}members (username, password, secques, gender, adminid
复制代码
Add Above:
- $showemailnew = $showemailnew ? 1 : 0;
复制代码
Step 2:
Find:
- '$pmsoundnew', '$showemail', '$newsletter', '$invisiblenew',
复制代码
Replace:
- '$pmsoundnew', '$showemailnew', '$newsletter', '$invisiblenew',
复制代码
=========================================================================
admin/database.inc.php
Step 1:
Find:
- <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:
- <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:
- .rawurlencode($sqlcharset)."&sqlcompat=".rawurlencode($sqlcompat)."&exportsubmit=yes");
复制代码
Replace:
- .rawurlencode($sqlcharset)."&sqlcompat=".rawurlencode($sqlcompat)."&exportsubmit=yes&usehex=$usehex");
复制代码
admin/forums.inc.php
Find:
- $query = $db->query("SELECT filename FROM {$tablepre}attachments WHERE tid IN ($tids)");
- while($attach = $db->fetch_array($query)) {
- @unlink($attachdir.'/'.$attach['filename']);
复制代码
Replace:
- $query = $db->query("SELECT attachment FROM {$tablepre}attachments WHERE tid IN ($tids)");
- while($attach = $db->fetch_array($query)) {
- @unlink($attachdir.'/'.$attach['attachment']);
复制代码
admin/misc.inc.php
Step 1:
Find(Attention:You could find 2 places in that file.):
Replace:
Step 2:
Find:
Add Above:
- $cron['filename'] = str_replace(array('..', '/', '\\'), array('', '', ''), $cron['filename']);
- $cron['minute'] = explode("\t", $cron['minute']);
复制代码
Step 3:
Find(Attention:You could find 2 places in that file.):
Replace:
admin/styles.inc.php
Find:
- updatecache('styles');
- cpmsg('styles_edit_succeed', 'admincp.php?action=styles');
复制代码
Add Above(Warning:Please opeate the first one that you would find.):
admin/templates.inc.php
Step 1:
Find:
- if($keyword) {
- $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>";
- $keywordenc = rawurlencode($keyword);
- }
复制代码
Replace:
- if($keyword) {
- $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>";
- $keywordenc = rawurlencode($keyword);
- }
复制代码
Step 2:
Find:
- $content = htmlspecialchars(fread($fp, filesize($filename)));
复制代码
Replace:
- $content = dhtmlspecialchars(fread($fp, filesize($filename)));
复制代码
=========================================================================
include/bbcode.js
Step 1:
Find:
- var prepend = '';
- var append = '';
复制代码
Delete!!!
Step 2:
Find:
- function addslashes(str) {
- var searcharray = ['\\', '\'', '/', '(', ')', '[', ']', '{', '}', '^', '$', '?', '.', '*', '+', '|'];
- var replacearray = ['\\\\', '\\\'', '\\/', '\\(', '\\)', '\\[', '\\]', '\\{', '\\}', '\\^', '\\$', '\\?', '\\.', '\\*', '\\+', '\\|'];
- var len = searcharray.length;
- for(var i = 0; i < len; i++) {
- str = str.replace(searcharray[i], replacearray[i]);
- }
- return str;
- }
复制代码
Replace:
- function addslashes(str) {
- var searcharray = ['\\\\', '\\\'', '\\\/', '\\\(', '\\\)', '\\\[', '\\\]', '\\\{', '\\\}', '\\\^', '\\\$', '\\\?', '\\\.', '\\\*', '\\\+', '\\\|'];
- var replacearray = ['\\\\', '\\\'', '\\/', '\\(', '\\)', '\\[', '\\]', '\\{', '\\}', '\\^', '\\$', '\\?', '\\.', '\\*', '\\+', '\\|'];
- var len = searcharray.length;
- for(var i = 0; i < len; i++) {
- re = new RegExp(searcharray[i], "g");
- str = str.replace(re, replacearray[i]);
- }
- return str;
- }
复制代码
Step 3:
Find:
- function dpstag(options, text, tagname) {
- prepend = append = '';
- parsestyle(options, append);
- if(in_array(tagname, ['div', 'p'])) {
复制代码
Replace:
- function dpstag(options, text, tagname) {
- if(trim(text) == '') {
- return '';
- }
- var pend = parsestyle(options, '', '');
- var prepend = pend['prepend'];
- var append = pend['append'];
- if(in_array(tagname, ['div', 'p'])) {
复制代码
Step 4:
Find:
- function fonttag(fontoptions, text) {
- prepend = append = '';
- var tags = new Array();
- tags = {'font' : 'face=', 'size' : 'size=', 'color' : 'color='};
- for(bbcode in tags) {
- optionvalue = fetchoptionvalue(tags[bbcode], fontoptions);
- if(optionvalue) {
- prepend += '[' + bbcode + '=' + optionvalue + ']';
- append = '[/' + bbcode + ']' + append;
- }
- }
- parsestyle(fontoptions, append);
- return prepend + recursion('font', text, 'fonttag') + append;
- }
复制代码
Replace:
- function fonttag(fontoptions, text) {
- var prepend = '';
- var append = '';
- var tags = new Array();
- tags = {'font' : 'face=', 'size' : 'size=', 'color' : 'color='};
- for(bbcode in tags) {
- optionvalue = fetchoptionvalue(tags[bbcode], fontoptions);
- if(optionvalue) {
- prepend += '[' + bbcode + '=' + optionvalue + ']';
- append = '[/' + bbcode + ']' + append;
- }
- }
- var pend = parsestyle(fontoptions, prepend, append);
- return pend['prepend'] + recursion('font', text, 'fonttag') + pend['append'];
- }
复制代码
Step 5:
Find:
- str = str.replace(/on(mousewheel|mouseover|click|load|unload|submit|focus|blur)="[^"]*"/ig, '');
复制代码
Replace:
- str = str.replace(/on[a-zA-Z]{3,16}\s?=\s?(["'])[\s\S]*?\1/ig, '');
复制代码
Step 6:
Find:
- str = str.replace(/<a\s+?name=(["']?)(.+?)(\1)[\s\S]*?>([\s\S]*?)<\/a>/ig, "$3");
复制代码
Replace:
- str = str.replace(/<a\s+?name=(["']?)(.+?)(\1)[\s\S]*?>([\s\S]*?)<\/a>/ig, '$4');
复制代码
Step 7:
Find:
- function parsestyle(tagoptions, appendtags) {
复制代码
Replace:
- function parsestyle(tagoptions, prepend, append) {
复制代码
Step 8:
Find:
- append = '[/' + searchlist[i][0] + ']' + appendtags;
- }
- }
复制代码
Replace:
- append = '[/' + searchlist[i][0] + ']' + append;
- }
- }
- return {'prepend' : prepend, 'append' : append};
复制代码
include/cache.func.php
Step 1:
Find:
Or:
Replace:
Step 2:
Find:
- 'crons' => array('crons'),
复制代码
Delete!!!
Step 3:
Find:
- static $cronunlocked = FALSE;
- global $cronnextrun;
- if(!$cronunlocked && !$cachename && $cronnextrun) {
- require_once DISCUZ_ROOT.'./include/cron.func.php';
- $lockfile = DISCUZ_ROOT.'./forumdata/cronlock.php';
- if(file_exists($lockfile)) {
- unlink($lockfile);
- $cronunlocked = TRUE;
- }
- }
复制代码
Delete!!!
Step 4:
Find:
- case 'crons':
- $table = 'crons';
- $cols = 'cronid, name, filename, nextrun, weekday, day, hour, minute';
- $conditions = "WHERE available>'0'";
- break;
复制代码
Delete!!!
Step 5:
Find:
- case 'crons':
- while($cron = $db->fetch_array($query)) {
- $cronid = $cron['cronid'];
- $cron['filename'] = str_replace(array('..', '/', '\\'), array('', '', ''), $cron['filename']);
- $cron['minute'] = explode("\t", $cron['minute']);
- unset($cron['cronid']);
- $data[$cronid] = $cron;
- }
- break;
复制代码
Delete!!!
include/common.inc.php
Find:
- $forum['postcredits'] = $forum['postcredits'] ? unserialize($forum['postcredits']) : array();
- $forum['replycredits'] = $forum['replycredits'] ? unserialize($forum['replycredits']) : array();
- $forum['threadtypes'] = $forum['threadtypes'] ? unserialize($forum['threadtypes']) : array();
- $forum['digestcredits'] = $forum['digestcredits'] ? unserialize($forum['digestcredits']) : array();
- $forum['postattachcredits'] = $forum['postattachcredits'] ? unserialize($forum['postattachcredits']) : array();
- $forum['getattachcredits'] = $forum['getattachcredits'] ? unserialize($forum['getattachcredits']) : array();
- if($supe_status) {
- $forum['supe_pushsetting'] = unserialize($forum['supe_pushsetting']);
- }
复制代码
Replace:
- foreach(array('postcredits', 'replycredits', 'threadtypes', 'digestcredits', 'postattachcredits', 'getattachcredits', 'supe_pushsetting') as $key) {
- $forum[$key] = !empty($forum[$key]) ? unserialize($forum[$key]) : array();
- }
复制代码
include/discuzcode.func.php
Find:
- return ($htmlon || $allowhtml) && $parsetype != 1 ? $message : nl2br(str_replace(array("\t", ' ', ' '), array(' ', ' ', ' '), $message));
复制代码
Replace:
- return $htmlon || $allowhtml ? $message : nl2br(str_replace(array("\t", ' ', ' '), array(' ', ' ', ' '), $message));
复制代码
include/editpost.inc.php
Step 1:
Find:
- if(!$postinfo['parseurloff']) {
- $postinfo['message'] = parseurl($postinfo['message']);
- }
复制代码
Delete!!!
Step 2:
Find:
- 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:
- $attachpermadd = $allowsetattachperm && $attach['readperm'] != $attachpermnew[$attach['aid']] ? ", readperm='{$attachpermnew[$attach['aid']]}'" : '' ;
- $attachdescnew[$attach['aid']] = cutstr(dhtmlspecialchars($attachdescnew[$attach['aid']]), 100);
- $attachdescadd = $attach['description'] != $attachdescnew[$attach['aid']] ? 1 : 0;
- if($uattachment || $attachpermadd || $attachdescadd) {
复制代码
include/forum.func.php
Step 1:
Find:
Delete!!!
Step 2:
Find:
- foreach($_DCACHE['forums'] as $fid1 => $forum1) {
- if($forum1['type'] == 'group') {
- if($tableformat) {
- $forumlist .= '<tr><td class="popupmenu_option"><a'.($gid == $forum1['fid'] ? ' class="bold"' : '').' href="'.$indexname.'?gid='.$forum1['fid'].'">'.$forum1['name'].'</a></td></tr>';
- } else {
- $forumlist .= $groupselectable ? '<option value="'.$forum1['fid'].'">'.$forum1['name'].'</option>' : '</optgroup><optgroup label="'.$forum1['name'].'">';
- }
- foreach($_DCACHE['forums'] as $fid2 => $forum2) {
- if($forum2['fup'] == $fid1 && $forum2['type'] == 'forum' && (!$forum2['viewperm'] || ($forum2['viewperm'] && forumperm($forum2['viewperm'])) || strstr($forum2['users'], "\t$discuz_uid\t"))) {
- if($tableformat) {
- $forumlist .= '<tr><td class="popupmenu_option"><a'.($fid == $fid2 ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$fid2.'"> > '.$forum2['name'].'</a></td></tr>';
- } else {
- $forumlist .= '<option value="'.$fid2.'"> > '.$forum2['name'].'</option>';
- }
- foreach($_DCACHE['forums'] as $fid3 => $forum3) {
- if($forum3['fup'] == $fid2 && $forum3['type'] == 'sub' && (!$forum3['viewperm'] || ($forum3['viewperm'] && forumperm($forum3['viewperm'])) || strstr($forum3['users'], "\t$discuz_uid\t"))) {
- if($tableformat) {
- $forumlist .= '<tr><td class="popupmenu_option"><a'.($fid == $fid3 ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$fid3.'"> > '.$forum3['name'].'</a></td></tr>';
- } else {
- $forumlist .= '<option value="'.$fid3.'"> > '.$forum3['name'].'</option>';
- }
- }
- }
- }
- }
- $forumlist .= $tableformat ? '' : '</optgroup><optgroup label=" ">';
- } elseif(!$forum1['fup'] && $forum1['type'] == 'forum' && (!$forum1['viewperm'] || ($forum1['viewperm'] && forumperm($forum1['viewperm'])) || strstr($forum1['users'], "\t$discuz_uid\t"))) {
- if($tableformat) {
- $forumlist .= '<tr><td class="popupmenu_option"><a'.($fid == $fid1 ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$fid1.'"> > '.$forum1['name'].'</a></td></tr>';
- } else {
- $forumlist .= '<option value="'.$fid1.'"> > '.$forum1['name'].'</option>';
- }
- foreach($_DCACHE['forums'] as $fid2 => $forum2) {
- if($forum2['fup'] == $fid1 && $forum2['type'] == 'sub' && (!$forum2['viewperm'] || ($forum2['viewperm'] && forumperm($forum2['viewperm'])) || strstr($forum2['users'], "\t$discuz_uid\t"))) {
- if($tableformat) {
- $forumlist .= '<tr><td class="popupmenu_option"><a'.($fid == $fid2 ? ' class="bold"' : '').' href="forumdisplay.php?fid='.$fid2.'"> > '.$forum2['name'].'</a></td></tr>';
- } else {
- $forumlist .= '<option value="'.$fid2.'"> > '.$forum2['name'].'</option>';
- }
- }
- }
- $forumlist .= $tableformat ? '' : '</optgroup><optgroup label=" ">';
- }
- }
- $forumlist .= $tableformat ? '' : '</optgroup>';
复制代码
Replace:
- foreach($_DCACHE['forums'] as $key => $forum) {
- if(!$forum['viewperm'] || ($forum['viewperm'] && forumperm($forum['viewperm'])) || strstr($forum['users'], "\t$discuz_uid\t")) {
- if($forum['type'] == 'group') {
- $forumtree[$forum['type']][$forum['fup']][$forum['fid']] = $tableformat ?
- '\'<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>\'' :
- '(\$groupselectable ? \'<option value="\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'">\'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</option>\' : \'</optgroup><optgroup label="\'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'">\')';
- $forumtree[$forum['type']][$forum['fup']][$forum['fid']] .= '.eval(\'return \'.@implode(\'.\', \$forumtree[\'forum\'][\$_DCACHE[\'forums\']['.$key.'][\'fid\']]).\';\')';
- } elseif($forum['type'] == 'forum') {
- $forumtree[$forum['type']][$forum['fup']][$forum['fid']] = $tableformat ?
- '\'<tr><td class="popupmenu_option"><a\'.(\$fid == \$_DCACHE[\'forums\']['.$key.'][\'fid\'] ? \' class="bold"\' : \'\').\' href="forumdisplay.php?fid=\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'"> > \'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</a></td></tr>\'' :
- '\'<option value="\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'"> > \'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</option>\'';
- $forumtree[$forum['type']][$forum['fup']][$forum['fid']] .= '.eval(\'return \'.@implode(\'.\', \$forumtree[\'sub\'][\$_DCACHE[\'forums\']['.$key.'][\'fid\']]).\';\')';
- } else {
- $forumtree[$forum['type']][$forum['fup']][] = $tableformat ?
- '\'<tr><td class="popupmenu_option"><a\'.(\$fid == \$_DCACHE[\'forums\']['.$key.'][\'fid\'] ? \' class="bold"\' : \'\').\' href="forumdisplay.php?fid=\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'"> > \'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</a></td></tr>\'' :
- '\'<option value="\'.\$_DCACHE[\'forums\']['.$key.'][\'fid\'].\'"> > \'.\$_DCACHE[\'forums\']['.$key.'][\'name\'].\'</option>\'';
- }
- }
- }
- $forumlist .= $forumtree['group'][0] ? eval('return '.implode('.', $forumtree['group'][0]).';') : '';
- $forumlist .= $tableformat ? '' : '</optgroup>';
复制代码
include/global.func.php
Step 1:
Find:
- for($i = 0; $i < $length - 3; $i++) {
复制代码
Replace:
- for($i = 0; $i < $length - strlen($dot) - 1; $i++) {
复制代码
Step 2:
Find:
- $tids = str_replace(array('0,', '0'), array('', ''), $tids);
复制代码
Add Above:
- $boardurl = dhtmlspecialchars($boardurl);
复制代码
Step 3:
Find:
Replace:
include/newthread.inc.php
Find:
- $supe_pushstatus = $supe_status && $supe_allowpushthread && $forum['supe_pushsetting']['status'] == 1 && !$modnewthreads ? '1' : '0';
复制代码
Replace:
- $supe_pushstatus = $supe_status && $forum['supe_pushsetting']['status'] == 1 && !$modnewthreads ? '1' : '0';
复制代码
include/sendmail.inc.php
Step 1:
Find:
- if(!$email_from) {
- $email_from = '=?'.$charset.'?B?'.base64_encode($bbname)."?= <$adminemail>";
- }
- $headers = "From: $email_from\r\nContent-type: text/plain; charset=$charset\r\nContent-Transfer-Encoding: base64\r\n";
复制代码
Replace:
- if($email_from) {
- $email_from = '=?'.$charset.'?B?'.base64_encode($email_from).'?=';
- } else {
- $email_from = '=?'.$charset.'?B?'.base64_encode($bbname)."?= <$adminemail>";
- }
- $headers = "From: $email_from\nMIME-Version: 1.0\nContent-type: text/plain; charset=$charset\nContent-Transfer-Encoding: base64\n";
复制代码
Step 2:
Find:
- $lastmessage = fgets($fp, 512);
- if(substr($lastmessage, 3, 1) != '-' || empty($lastmessage)) {
- break;
- }
复制代码
Replace:
- if(substr($lastmessage, 3, 1) != '-' || empty($lastmessage)) {
- break;
- }
- $lastmessage = fgets($fp, 512);
复制代码
=========================================================================
templates/default/css.htm
Step 1:
Find:
- padding-top: 1px;
- color: {HEADERTEXT};
- font-weight: {BOLD};
复制代码
Replace:
- padding-top: 1px;
- font-weight: {BOLD};
复制代码
Step 2:
Find:
Add Above:
- .t_msg p {
- margin: 0px;
- }
复制代码
templates/default/footer.htm
Find:
- <!--{echo "var thisurl = '".substr($_SERVER[SCRIPT_FILENAME], strrpos($_SERVER[SCRIPT_FILENAME], '/')+1).'?'.$_SERVER[QUERY_STRING]."'";}-->
复制代码
Replace:
- <!--{echo "var thisurl = '".CURSCRIPT.'.php?'.$_SERVER[QUERY_STRING]."';";}-->
复制代码
templates/default/login.htm
/////////////////////////////////////////////////
Step 1:(此步的代码的某字符被DZ程序的CODE过滤掉了...弄了也白弄,大家自己对照修改)
Find:
- <form method="post" name="login" action="logging.php?action=login&">
复制代码
Replace:
- <form method="post" name="login" action="logging.php?action=login&">
复制代码
/////////////////////////////////////////////////
Step 2:
Find:
- <input class="radio" class="radio" type="radio" name="loginfield" value="username" checked onclick="document.login.username.focus();">{lang username}
- <input class="radio" class="radio" type="radio" name="loginfield" value="uid" onclick="document.login.username.focus();">{lang uid}</span>
复制代码
Replace:
- <input class="radio" type="radio" name="loginfield" value="username" checked onclick="document.login.username.focus();">{lang username}
- <input class="radio" type="radio" name="loginfield" value="uid" onclick="document.login.username.focus();">{lang uid}</span>
复制代码
templates/default/memcp_credits.htm
Find:
Delete!!!
templates/default/my.htm
Find:
- <a href="$indexname">$bbname</a> » <!--{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}-->
- <!--{if $srchfid}--> » $forumname<!--{/if}-->
- </div><br>
复制代码
Replace:
- <a href="$indexname">$bbname</a> » <!--{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> » $forumname<!--{/if}-->
- </div><br>
复制代码
templates/default/register.htm
Find:
- <input class="checkbox" type="checkbox" name="showemail" value="1" checked="checked"> {lang show_email_addr}<br>
- <input class="checkbox" type="checkbox" name="newsletter" value="1" checked="checked"> {lang allow_newsletter}<br>
复制代码
Replace:
- <input class="checkbox" type="checkbox" name="showemailnew" value="1" checked="checked"> {lang show_email_addr}<br>
- <input class="checkbox" type="checkbox" name="newsletter" value="1" checked="checked"> {lang allow_newsletter}<br>
复制代码
=========================================================================
修改时小心,看清楚再弄,切勿出错!!!另外,谢谢您的支持。
**** 本内容跟帖回复才可浏览 *****
[ 本帖最后由 freddy 于 2006-10-2 12:28 编辑 ] |