/admin目录
creditwizard.inc.php
找
- <td><input class="checkbox" type="checkbox" name="chkall1" id="chkall1" onclick="checkAll('prefix', this.form, 'postcreditsstatus', 'chkall1')" /><label for="chkall1"> <?=$lang['forums_edit_postcredits_add']?></label></td>
- <td><input class="checkbox" type="checkbox" name="chkall2" id="chkall2" onclick="checkAll('prefix', this.form, 'replycreditsstatus', 'chkall2')" /><label for="chkall2"> <?=$lang['forums_edit_replycredits_add']?></label></td>
复制代码
替换
- <td><input class="checkbox" type="checkbox" name="chkall1" id="chkall1" onclick="checkAll('prefix', this.form, 'postcreditsstatus', 'chkall1')" /><label for="chkall1"> <?=$lang['settings_credits_policy_post']?></label></td>
- <td><input class="checkbox" type="checkbox" name="chkall2" id="chkall2" onclick="checkAll('prefix', this.form, 'replycreditsstatus', 'chkall2')" /><label for="chkall2"> <?=$lang['settings_credits_policy_reply']?></label></td>
复制代码
找
- showsubmit('settingsubmit', 'submit', '<input type="button" class="btn" value="'.$lang['creditwizard_return'].'" onclick="location.href=\\'.$BASESCRIPT.'?action=creditwizard&step=1\'" /> <input type="reset" class="btn" name="settingsubmit" value="'.$lang['reset'].'" />');
复制代码
替换
- showsubmit('settingsubmit', 'submit', '<input type="button" class="btn" value="'.$lang['creditwizard_return'].'" onclick="location.href=\''.$BASESCRIPT.'?action=creditwizard&step=1\'" /> <input type="reset" class="btn" name="settingsubmit" value="'.$lang['reset'].'" />');
复制代码
=============================华丽的分割线=============================
db.inc.php
找
- if($identify[4] == 1) {
- $exportlog[$key] = array(
- 'version' => $identify[1],
- 'type' => $identify[2],
- 'method' => $identify[3],
- 'volume' => 1,
- 'filename' => $entry,
- 'dateline' => filemtime($entry),
- 'size' => $filesize
- );
- } else {
- $exportlog[$key]['volume']++;
- }
复制代码
替换
- $exportlog[$key][$identify[4]] = array(
- 'version' => $identify[1],
- 'type' => $identify[2],
- 'method' => $identify[3],
- 'volume' => $identify[4],
- 'filename' => $entry,
- 'dateline' => filemtime($entry),
- 'size' => $filesize
- );
- $exportsize[$key] += $filesize;
复制代码
找
替换
找
- foreach($exportlog as $info) {
- $info['dateline'] = is_int($info['dateline']) ? gmdate("$dateformat $timeformat", $info['dateline'] + $timeoffset * 3600) : $lang['unknown'];
- $info['size'] = sizecount($info['size']);
- $info['volume'] = $info['method'] == 'multivol' ? $info['volume'] : '';
- $info['method'] = $info['type'] != 'zip' ? ($info['method'] == 'multivol' ? $lang['db_multivol'] : $lang['db_shell']) : '';
- showtablerow('', '', array(
- "<input class="checkbox" type="checkbox" name="delete[]" value="".basename($info['filename'])."">",
- "<a href="$info[filename]">".substr(strrchr($info['filename'], "/"), 1)."</a>",
复制代码
替换
- foreach($exportlog as $key => $val) {
- $info = $val[1];
- $info['dateline'] = is_int($info['dateline']) ? gmdate("$dateformat $timeformat", $info['dateline'] + $timeoffset * 3600) : $lang['unknown'];
- $info['size'] = sizecount($exportsize[$key]);
- $info['volume'] = count($val);
- $info['method'] = $info['type'] != 'zip' ? ($info['method'] == 'multivol' ? $lang['db_multivol'] : $lang['db_shell']) : '';
- showtablerow('', '', array(
- "<input class="checkbox" type="checkbox" name="delete[]" value="".$key."">",
- "<a href="javascript:;" onclick="display_detail('exportlog_$key')">".$key."</a>",
复制代码
找
- $info['type'] == 'zip' ? "<a href="$BASESCRIPT?action=db&operation=importzip&datafile_server=$info[filename]&importsubmit=yes" class="act">$lang[db_import_unzip]</a>" : "<a class="act" href="$BASESCRIPT?action=db&operation=import&from=server&datafile_server=$info[filename]&importsubmit=yes"".($info['version'] != $version ? " onclick="return confirm('$lang[db_import_confirm]');"" : '')." class="act">$lang[import]</a>"
- ));
复制代码
下方添加
- echo '<tbody id="exportlog_'.$key.'" style="display:none">';
- foreach($val as $info) {
- $info['dateline'] = is_int($info['dateline']) ? gmdate("$dateformat $timeformat", $info['dateline'] + $timeoffset * 3600) : $lang['unknown'];
- $info['size'] = sizecount($info['size']);
- showtablerow('', '', array(
- '',
- "<a href="$info[filename]">".substr(strrchr($info['filename'], "/"), 1)."</a>",
- $info['version'],
- $info['dateline'],
- '',
- $info['size'],
- '',
- $info['volume'],
- ''
- ));
- }
- echo '</tbody>';
- }
- foreach($exportziplog as $info) {
- $info['dateline'] = is_int($info['dateline']) ? gmdate("$dateformat $timeformat", $info['dateline'] + $timeoffset * 3600) : $lang['unknown'];
- $info['size'] = sizecount($info['size']);
- $info['method'] = $info['method'] == 'multivol' ? $lang['db_multivol'] : $lang['db_shell'];
- showtablerow('', '', array(
- "<input class="checkbox" type="checkbox" name="delete[]" value="".basename($info['filename'])."">",
- "<a href="$info[filename]">".substr(strrchr($info['filename'], "/"), 1)."</a>",
- '',
- $info['dateline'],
- $lang['db_export_'.$info['type']],
- $info['size'],
- $info['method'],
- '',
- "<a href="$BASESCRIPT?action=db&operation=importzip&datafile_server=$info[filename]&importsubmit=yes" class="act">$lang[db_import_unzip]</a>"
- ));
复制代码
找
- @unlink('./forumdata/'.$backupdir.'/'.str_replace(array('/', '\\'), '', $filename));
复制代码
替换
- $file_path = './forumdata/'.$backupdir.'/'.str_replace(array('/', '\\'), '', $filename);
- if(is_file($file_path)) {
- @unlink($file_path);
- } else {
- $i = 1;
- while(1) {
- $file_path = './forumdata/'.$backupdir.'/'.str_replace(array('/', '\\'), '', $filename.'-'.$i.'.sql');
- if(is_file($file_path)) {
- @unlink($file_path);
- $i++;
- } else {
- break;
- }
- }
- }
复制代码
=============================华丽的分割线=============================
global.func.php
找
- global $db, $timestamp, $tablepre, $charset, $bbname, $_SERVER, $siteuniqueid, $save_mastermobile;
复制代码
替换
- global $db, $timestamp, $tablepre, $charset, $bbname, $_SERVER, $siteuniqueid, $save_mastermobile, $msn;
复制代码
找
- $update['spt_'.$thread['special']] = $thread['spcount'];
- }
复制代码
下方添加
- if($msn['on'] && $msn['domain']) {
- $update['msn_domain'] = $msn['domain'];
- }
复制代码
找
- if('$frame' != 'no') _attachEvent(document.documentElement, 'keydown', parent.resetEscAndF5);
复制代码
下方添加
- function display_detail(objname) {
- obj = $(objname);
- if(obj.style.display == 'none') {
- obj.style.display = '';
- } else {
- obj.style.display = 'none'
- }
- }
复制代码
=============================华丽的分割线=============================
members.inc.php
找
- showsetting('members_edit_pmsound', '', '', '<input class="radio" type="radio" value="0" name="pmsoundnew" '.$pscheck[0].'>'.$lang['none'].' <input class="radio" type="radio" value="1" name="pmsoundnew" '.$pscheck[1].'><a href="images/sound/pm_1.wav">#1</a> <input class="radio" type="radio" value="2" name="pmsoundnew" '.$pscheck[2].'><a href="images/sound/pm_2.wav">#2</a> <input class="radio" type="radio" value="3" name="pmsoundnew" '.$pscheck[3].'><a href="images/sound/pm_3.wav">#3</a>');
复制代码
替换
- showsetting('members_edit_pmsound', '', '', '<input class="radio" type="radio" value="0" name="pmsoundnew" '.$pscheck[0].'>'.$lang['none'].' <input class="radio" type="radio" value="1" name="pmsoundnew" '.$pscheck[1].'><a href="images/sound/pm_1.mp3">#1</a> <input class="radio" type="radio" value="2" name="pmsoundnew" '.$pscheck[2].'><a href="images/sound/pm_2.mp3">#2</a> <input class="radio" type="radio" value="3" name="pmsoundnew" '.$pscheck[3].'><a href="images/sound/pm_3.mp3">#3</a>');
复制代码
=============================华丽的分割线=============================
misc.inc.php
找
- $cron['time'] = lang('v_perweek').lang('misc_cron_week_day_'.$cron['weekday']);
复制代码
替换
- $cron['time'] = lang('misc_cron_perweek').lang('misc_cron_week_day_'.$cron['weekday']);
复制代码
=============================华丽的分割线=============================
settings.inc.php
找
- //$settings['customauthorinfo']['username'] = intval($settings['customauthorinfo']['username']);
复制代码
替换
- list($settings['zoomstatus'], $settings['imagemaxwidth']) = explode("\t", $settings['zoomstatus']);
- $settings['imagemaxwidth'] = !empty($settings['imagemaxwidth']) ? $settings['imagemaxwidth'] : 600;
复制代码
找
- showsetting('settings_styles_viewthread_show_images', 'settingsnew[showimages]', $settings['showimages'], 'radio');
复制代码
下方添加
- showsetting('settings_styles_viewthread_imagemaxwidth', 'settingsnew[imagemaxwidth]', $settings['imagemaxwidth'], 'text');
复制代码
找
- $lang['settings_uc_home_adshow'])), $settings['uchome']['homeshow'], 'binmcheckbox');
复制代码
替换
- $lang['settings_uc_home_adshow'],
- $lang['settings_uc_home_side'])), $settings['uchome']['homeshow'], 'binmcheckbox');
复制代码
找
- $settingsnew['uchome']['homeshow'] = bindec(intval($settingsnew['uchomec']['homeshow'][4]).intval($settingsnew['uchome']['homeshow'][3]).intval($settingsnew['uchome']['homeshow'][2]).intval($settingsnew['uchome']['homeshow'][1]));
复制代码
替换
- $settingsnew['uchome']['homeshow'] = bindec(intval($settingsnew['uchome']['homeshow'][4]).intval($settingsnew['uchome']['homeshow'][3]).intval($settingsnew['uchome']['homeshow'][2]).intval($settingsnew['uchome']['homeshow'][1]));
复制代码
找
- if($operation == 'styles') {
- $settingsnew['customauthorinfo'] = addslashes(serialize(array($settingsnew['customauthorinfo'])));
复制代码
替换
- $updatestyles = FALSE;
- if($operation == 'styles') {
- $settingsnew['customauthorinfo'] = addslashes(serialize(array($settingsnew['customauthorinfo'])));
- list(, $imagemaxwidth) = explode("\t", $settings['zoomstatus']);
- if($imagemaxwidth != $settingsnew['imagemaxwidth']) {
- $updatestyles = TRUE;
- }
- $settingsnew['zoomstatus'] = $settingsnew['zoomstatus']."\t".$settingsnew['imagemaxwidth'];
复制代码
找
- if($operation == 'credits') {
- updatecache('custominfo');
复制代码
下方添加
- }
- if($updatestyles) {
- updatecache('styles');
复制代码
=============================华丽的分割线=============================
smilies.inc.php
找
- $is_default = $type['directory'] == 'default' ? TRUE : FALSE;
复制代码
删除之
找
- $is_default ? "<input type="text" class="txt" size="25" name="code[$smiley[id]]" value="".dhtmlspecialchars($smiley['code'])."" id="code_$smileynum" smileyid="$smiley[id]" />" : dhtmlspecialchars($smiley['code']),
复制代码
替换
- "<input type="text" class="txt" size="25" name="code[$smiley[id]]" value="".dhtmlspecialchars($smiley['code'])."" id="code_$smileynum" smileyid="$smiley[id]" />",
复制代码
找
- if($is_default) {
- echo <<<EOT
复制代码
替换
找
删除其中的 }
找
- $is_default ? showtablerow('', array('', 'colspan="5"'), array(
- '',
- $lang['smilies_edit_add_code'].' <input type="text" class="txt" style="margin-right:0;width:40px;" size="2" value="'.$lang['smilies_prefix'].'" id="prefix" onclick="clearinput(this, \''.$lang['smilies_prefix'].'\')" /> + <select id="middle"><option value="1">'.$lang['smilies_edit_order_file'].'</option><option value="2">'.$lang['smilies_edit_order_radom'].'</option><option value="3">'.$lang['smilies_id'].'</option></select> + <input type="text" class="txt" style="margin-right:0;width:40px;" size="2" value="'.$lang['smilies_suffix'].'" id="suffix" onclick="clearinput(this, \''.$lang['smilies_suffix'].'\')" /> <input type="button" class="btn" onclick="addsmileycodes(\''.$smileynum.'\', \'\');" value="'.$lang['apply'].'" /> <input type="button" class="btn" onclick="autoaddsmileycodes(\''.$smileynum.'\');" value="'.$lang['smilies_edit_addcode_auto'].'" />'
- )) : NULL;
复制代码
替换
- showtablerow('', array('', 'colspan="5"'), array(
- '',
- $lang['smilies_edit_add_code'].' <input type="text" class="txt" style="margin-right:0;width:40px;" size="2" value="{:" title="'.$lang['smilies_prefix'].'" id="prefix" onclick="clearinput(this, \''.$lang['smilies_prefix'].'\')" /> + <select id="middle"><option value="1">'.$lang['smilies_edit_order_file'].'</option><option value="2">'.$lang['smilies_edit_order_radom'].'</option><option value="3">'.$lang['smilies_id'].'</option></select> + <input type="text" class="txt" style="margin-right:0;width:40px;" size="2" value=":}" title="'.$lang['smilies_suffix'].'" id="suffix" onclick="clearinput(this, \''.$lang['smilies_suffix'].'\')" /> <input type="button" class="btn" onclick="addsmileycodes(\''.$smileynum.'\', \'\');" value="'.$lang['apply'].'" /> <input type="button" class="btn" onclick="autoaddsmileycodes(\''.$smileynum.'\');" value="'.$lang['smilies_edit_addcode_auto'].'" />'
- ));
复制代码
找
- $codeadd = $is_default && !empty($code[$key]) ? ", code='$code[$key]'" : '';
复制代码
替换
- $codeadd = !empty($code[$key]) ? ", code='$code[$key]'" : '';
复制代码
=============================华丽的分割线=============================
usergroups.inc.php
找
- if($group['radminid'] == 3) {
- showsetting($lang['usergroups_edit_credit_exempt_outperm'].$lang['usergroups_edit_credit_exempt_getattch'], 'exemptnew[2]', $group['exempt'][2], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_inperm'].$lang['usergroups_edit_credit_exempt_getattch'], 'exemptnew[5]', $group['exempt'][5], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_outperm'].$lang['usergroups_edit_credit_exempt_attachpay'], 'exemptnew[3]', $group['exempt'][3], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_inperm'].$lang['usergroups_edit_credit_exempt_attachpay'], 'exemptnew[6]', $group['exempt'][6], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_outperm'].$lang['usergroups_edit_credit_exempt_threadpay'], 'exemptnew[4]', $group['exempt'][4], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_inperm'].$lang['usergroups_edit_credit_exempt_threadpay'], 'exemptnew[7]', $group['exempt'][7], 'radio');
复制代码
替换
- if($group['radminid']) {
- if($group['radminid'] == 3) {
- showsetting($lang['usergroups_edit_credit_exempt_outperm'].$lang['usergroups_edit_credit_exempt_getattch'], 'exemptnew[2]', $group['exempt'][2], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_inperm'].$lang['usergroups_edit_credit_exempt_getattch'], 'exemptnew[5]', $group['exempt'][5], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_outperm'].$lang['usergroups_edit_credit_exempt_attachpay'], 'exemptnew[3]', $group['exempt'][3], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_inperm'].$lang['usergroups_edit_credit_exempt_attachpay'], 'exemptnew[6]', $group['exempt'][6], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_outperm'].$lang['usergroups_edit_credit_exempt_threadpay'], 'exemptnew[4]', $group['exempt'][4], 'radio');
- showsetting($lang['usergroups_edit_credit_exempt_inperm'].$lang['usergroups_edit_credit_exempt_threadpay'], 'exemptnew[7]', $group['exempt'][7], 'radio');
- } else {
- echo '<input name="exemptnew[2]" type="hidden" value="1" /><input name="exemptnew[3]" type="hidden" value="1" /><input name="exemptnew[4]" type="hidden" value="1" />'.
- '<input name="exemptnew[5]" type="hidden" value="1" /><input name="exemptnew[6]" type="hidden" value="1" /><input name="exemptnew[7]" type="hidden" value="1" />';
- }
复制代码 |