PHPCMS后台首页去掉开发者信息

来自:互联网
时间:2020-07-30
阅读:

打开文件:phpcms/modules/admin/templates下面的main.tpl.phpiss免费资源网

用下面代码替换掉文件原来代码:iss免费资源网
<?phpiss免费资源网
defined('IN_ADMIN') or exit('No permission resources.');iss免费资源网
include PC_PATH.'modules'.DIRECTORY_SEPARATOR.'admin'.DIRECTORY_SEPARATOR.'templates'.DIRECTORY_SEPARATOR.'header.tpl.php'; ?>iss免费资源网
<div id="main_frameid" class="pad-10 display" style="_margin-right:-12px;_width:98.9%;">iss免费资源网
<script type="text/javascript"> $(function(){if ($.browser.msie && parseInt($.browser.version) < 7) $('#browserVersionAlert').show();}); </script>iss免费资源网
<div class="explain-col mb10" style="display:none" id="browserVersionAlert"> <?php echo L('ie8_tip')?></div>iss免费资源网
<div class="col-2 lf mr10" style="width:48%">iss免费资源网
<h6><?php echo L('personal_information')?></h6>iss免费资源网
<div class="content"> <?php echo L('main_hello')?><?php echo $admin_username?><br /> <?php echo L('main_role')?><?php echo $rolename?> <br /> <div class="bk20 hr"><hr /></div>iss免费资源网
<?php echo L('main_last_logintime')?><?php echo date('Y-m-d H:i:s',$logintime)?><br /> <?php echo L('main_last_loginip')?><?php echo $loginip?> <br /> </div> </div> ``<div class="col-2 col-auto"> <h6><?php echo L('main_safety_tips')?></h6> <div class="content" style="color:#ff0000;">iss免费资源网
<?php if($pc_writeable) {?>iss免费资源网
<?php echo L('main_safety_permissions')?><br /> <?php } ?>iss免费资源网
<?php if(pc_base::load_config('system','debug')) {?> <?php echo L('main_safety_debug')?><br /> <?php } ?> <?php if(!pc_base::load_config('system','errorlog')) {?> <?php echo L('main_safety_errlog')?><br /> <?php } ?>iss免费资源网
<div class="bk20 hr"><hr /></div> <?php if(pc_base::load_config('system','execution_sql')) {?> <?php echo L('main_safety_sql')?> <br /> <?php } ?> <?php if($logsize_warning) {?>iss免费资源网
<?php echo L('main_safety_log',array('size'=>$common_cache['errorlog_size'].'MB'))?> <br /> <?php } ?> <?php $tpl_edit = pc_base::load_config('system','tpl_edit'); if($tpl_edit=='1') {?> <?php echo L('main_safety_tpledit')?><br /> <?php } ?> </div>iss免费资源网
</div>iss免费资源网
<div class="bk10"></div>iss免费资源网
<div class="col-2 lf mr10" style="width:48%"> <?php $ccache = getcache('category_content_1','commons'); if(module_exists('member') && is_array($ccache)) { ?> <h6><?php echo L('main_shortcut')?></h6> <div class="content" id="admin_panel"> <?php foreach($adminpanel as $v) {?> <span>iss免费资源网
[<a target="right" href="<?php echo $v['url'].'&menuid='.$v['menuid'];?>&pc_hash=<?php echo $_SESSION['pc_hash'];?>"><?php echo L($v['name'])?></a>] </span> <?php }?> </div> <?php } else { ?>iss免费资源网
<h6>Update Caches</h6>iss免费资源网
<div class="content" id="update_tips" style="height:90px; overflow:auto;"><ul id="file" class="sbul">iss免费资源网
<div class="pad-10">iss免费资源网
<form action="?m=admin&c=cache_all&a=init&pc_hash=<?php echo $_SESSION['pc_hash'];?>" target="cache_if" method="post" id="myform" name="myform">iss免费资源网
<input type="hidden" name="dosubmit" value="1"> </form>iss免费资源网
<iframe id="cache_if" name="cache_if" class="ifm" width="0" height="0"></iframe>iss免费资源网
</div>iss免费资源网
<script type="text/javascript"> document.myform.submit(); function addtext(data) { $('#file').append(data); document.getElementById('update_tips').scrollTop = document.getElementById('update_tips').scrollHeight; } </script>iss免费资源网
</div> <?php }?> </div>iss免费资源网
<div class="col-2 col-auto">iss免费资源网
<h6><?php echo L('main_sysinfo')?></h6>iss免费资源网
<div class="content"> <?php echo L('main_version')?>Phpcms <?php echo PC_VERSION?> Release <?php echo PC_RELEASE?> [<a href="http://download.phpcms.cn/v9/" target="_blank"><?php echo L('main_latest_version')?></a>]<br /> <?php echo L('main_os')?><?php echo $sysinfo['os']?> <br /> <?php echo L('main_web_server')?><?php echo $sysinfo['web_server']?> <br />iss免费资源网
<?php echo L('main_sql_version')?><?php echo $sysinfo['mysqlv']?><br /> <?php echo L('main_upload_limit')?><?php echo $sysinfo['fileupload']?><br /> </div> </div> </div> </body></html>iss免费资源网

返回顶部
顶部