后台修改代码加快加载速度:
5、管理员登录界面“安全提问”直接显示出来,不需要点击
source\admincp\admincp_login.php
146: <p tabindex="2" onclick="document.querySelectorAll('.loginqa').forEach(vf=>{vf.className=''});this.style.display='none';"><span></span>{$lang['security_question']}</p>
147: <select id="questionid" name="admin_questionid" class="loginqa" tabindex="3" >
157: <input tabindex="4" type="text" name="admin_answer" class="loginqa" placeholder="{$lang['security_answer']}" autocomplete="off">
找到对应位置,将删除线的代码删掉即可。
4、去掉”新闻动态“
source/admincp/admincp_index.php第404行找到 function show_news()函数,直接返回 return;
3、去掉”DiscuzX 开发团队“
source/admincp/admincp_index.php第457行找到 show_forever_thanks() 函数,直接返回 return;
2、去掉版本检测 source/admincp/admincp_index.php第50-60行
$newversion = (CHARSET == 'utf-8') ? dunserialize($_G['setting']['cloudaddons_newversion']) : json_decode($_G['setting']['cloudaddons_newversion'], true);
if(empty($newversion['newversion']) || !is_array($newversion['newversion']) || abs($_G['timestamp'] - $newversion['updatetime']) > 86400 || (isset($_GET['checknewversion']) && $_G['formhash'] == $_GET['formhash'])) {
$newversion = json_decode(cloudaddons_open('&mod=app&ac=upgrade'), true);
if(!empty($newversion['newversion'])) {
$newversion['updatetime'] = $_G['timestamp'];
C::t('common_setting')->update_setting('cloudaddons_newversion', ((CHARSET == 'utf-8') ? $newversion : json_encode($newversion)));
updatecache('setting');
} else {
$newversion = array();
}
}
改为: $newversion = array();
1、修改后台首页“管理团队留言”中30天
source/admincp/admincp_index.php第267行函数 function show_note()方法:
$note['expiration'] = ceil(($note['expiration'] - $note['dateline']) / 86400);
或者直接让此函数 return;
|