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