fix: about

This commit is contained in:
Gitea 2022-03-30 09:21:06 +08:00
parent 557aa3c555
commit 6e29609208
8 changed files with 424 additions and 20 deletions

View File

@ -0,0 +1,332 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="renderer" content="webkit">
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
</head>
<body class="layui-layout-body">
<!--定义部分地址方便JS调用-->
<div style="display: none">
<span id="controller" data-controller="<?php echo C;?>"></span>
<span id="url" data-url="<?php echo URL;?>"></span>
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
</div>
<div class="layui-layout layui-layout-admin">
<div class="layui-header">
<div class="layui-logo">
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
<?php echo CMSNAME;?>
<?php if (LICENSE==3) {?>
<span class="layui-badge">SVIP</span>
<?php } else { ?>
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
<?php } ?>
</a>
</div>
<ul class="menu">
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
</ul>
<?php if (!$this->getVar('one_area')) {?>
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
<div class="layui-col-xs8">
<select name="acode">
<?php echo $this->getVar('area_html');?>
</select>
</div>
<div class="layui-col-xs4">
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
</div>
</form>
<?php } ?>
<ul class="layui-nav layui-layout-right">
<li class="layui-nav-item layui-hide-xs">
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
</li>
<li class="layui-nav-item layui-hide-xs">
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
</li>
<li class="layui-nav-item layui-hide-xs">
<a href="javascript:;">
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
</a>
<dl class="layui-nav-child">
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
<?php if (session('ucode')==10001) {?>
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
<?php } ?>
</dl>
</li>
</ul>
</div>
<div class="layui-side layui-bg-black">
<div class="layui-side-scroll">
<!-- 左侧导航区域可配合layui已有的垂直导航 -->
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
<dl class="layui-nav-child">
<?php if ($value->mcode=='M130') {?>
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
<?php if ($value3->type==1) {?>
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
<?php } ?>
<?php if ($value3->type==2) {?>
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
<?php } ?>
<?php } ?>
<?php } else { ?>
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
<?php if (!isset($value2->status)|| $value2->status==1) {?>
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
<?php } ?>
<?php } ?>
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
<?php } ?>
<?php } ?>
</dl>
</li>
<?php } ?>
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
<li class="layui-nav-item layui-hide-sm">
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
</li>
<li class="layui-nav-item layui-hide-sm">
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
</li>
<li class="layui-nav-item layui-hide-sm">
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
</li>
<li class="layui-nav-item layui-hide-sm">
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
</li>
</ul>
</div>
</div>
<div class="layui-body">
<?php if (!$this->getVar('dbsecurity')||!session('pwsecurity')) {?>
<blockquote class="layui-elem-quote layui-text-red" id="note">
<?php if (!$this->getVar('dbsecurity')) {?>
<p>
<i class="fa fa-info-circle" aria-hidden="true"></i>
您的数据库文件存在安全隐患,可能被下载,请尽快修改数据库路径!<a class="layui-btn layui-btn-sm" href="<?php echo \core\basic\Url::get('/admin/Index/home');?>&action=moddb">自动修改</a>
</p>
<?php } ?>
<?php if (!session('pwsecurity')) {?>
<p>
<i class="fa fa-info-circle" aria-hidden="true"></i>
您的账号密码为初始密码,存在安全隐患,请尽快修改密码!<a class="layui-btn layui-btn-sm" href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>">立即修改</a>
</p>
<?php } ?>
</blockquote>
<?php } ?>
<blockquote class="layui-elem-quote">
当前登录用户:<?php echo @$this->getVar('user_info')->username;?> <?php echo @$this->getVar('user_info')->realname;?>,登录时间:<?php echo @$this->getVar('user_info')->update_time;?>登录IP<?php echo long2ip($this->getVar('user_info')->last_login_ip);?>,累计登录次数:<?php echo @$this->getVar('user_info')->login_count;?>
</blockquote>
<fieldset class="layui-elem-field">
<legend>快捷操作</legend>
<div class="layui-field-box">
<div class="layui-row">
<?php $num = 0;foreach ($this->getVar('model_msg') as $key => $value) { $num++;?>
<div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
<?php if ($value->type==1) {?>
<a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value->mcode.'');?>">
<?php } else { ?>
<a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value->mcode.'');?>">
<?php } ?>
<dl class="deskbox center-block">
<dt><?php echo $value->name; ?></dt>
<dd><?php echo $value->count; ?></dd>
</dl>
</a>
</div>
<?php } ?>
<div class="layui-col-xs6 layui-col-sm4 layui-col-md3 layui-col-lg2">
<a href="<?php echo \core\basic\Url::get('/admin/Message/index');?>">
<dl class="deskbox center-block">
<dt>留言</dt>
<dd><?php echo $this->getVar('sum_msg');?></dd>
</dl>
</a>
</div>
</div>
</div>
</fieldset>
<?php if (CMSNAME=='PbootCMS') {?>
<div class="layui-row layui-col-space10">
<div class="layui-col-xs12 layui-col-md6">
<table class="layui-table table-two">
<thead>
<tr>
<th colspan="2">系统信息</th>
</tr>
</thead>
<tbody>
<tr>
<th width="100">应用版本</th>
<td>PbootCMS V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?>
<?php if (session('ucode')==10001) {?>
<a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>" class="layui-btn layui-btn-xs" id="check">在线更新</a>
<?php } ?>
</td>
</tr>
<tr>
<th>主机系统</th>
<td><?php echo @$this->getVar('server')->php_os;?></td>
</tr>
<tr>
<th>主机地址</th>
<td><?php echo @$this->getVar('server')->server_name;?><?php echo @$this->getVar('server')->server_addr;?>:<?php echo @$this->getVar('server')->server_port;?></td>
</tr>
<tr>
<th>WEB软件</th>
<td><?php echo @$this->getVar('server')->server_software;?></td>
</tr>
<tr>
<th>PHP版</th>
<td><?php echo @$this->getVar('server')->php_version;?></td>
</tr>
<tr>
<th>数据库驱动</th>
<td><?php echo @$this->getVar('server')->db_driver;?></td>
</tr>
<tr>
<th>文件上传限制</th>
<td><?php echo @$this->getVar('server')->upload_max_filesize;?></td>
</tr>
<tr>
<th>表单提交限制</th>
<td><?php echo @$this->getVar('server')->post_max_size;?></td>
</tr>
</tbody>
</table>
</div>
<div class="layui-col-xs12 layui-col-md6">
<table class="layui-table table-two">
<thead>
<tr>
<th colspan="2">开发信息</th>
</tr>
</thead>
<tbody>
<tr>
<th>系统名称</th>
<td><?php echo CMSNAME;?>企业网站开发建设管理系统</td>
</tr>
<tr>
<th>官方网站</th>
<td><a href="http://www.pbootcms.com" target="_blank" style="color:#666">www.pbootcms.com</a></td>
</tr>
<tr>
<th>源码下载</th>
<td>
<a href="https://gitee.com/hnaoyun/PbootCMS/" style="color:#666" target="_blank">Gitee</a>
</td>
</tr>
<tr>
<th>系统开发</th>
<td>星梦</td>
</tr>
<tr>
<th>版权协议</th>
<td><a href="http://www.pbootcms.com/system-usage/277.html" style="color:#666" target="_blank">点击查看</a></td>
</tr>
<tr>
<th>技术交流群</th>
<td>822430453、794519782</td>
</tr>
<tr>
<th>友情贡献者</th>
<td>
感谢交流群各网友对PbootCMS发展的大力支持
感谢LayUI提供的前端框架
感谢百度提供的富文本编辑器;
感谢星梦开发团队的日夜奋斗。
</td>
</tr>
</tbody>
</table>
</div>
</div>
<?php } ?>
</div>
<script>
$.ajax({
type: 'GET',
url: 'https://www.pbootcms.com/index.php?p=/upgrade/check&version=<?php echo APP_VERSION;?>.<?php echo RELEASE_TIME;?>.<?php echo $this->getVar('revise');?>&branch=<?php echo $this->getVar('branch');?>&snuser=<?php echo $this->getVar('snuser');?>&site=<?php echo $this->getVar('site');?>',
dataType: 'json',
success: function (response, status) {
if(response.code==1){
$("#check").html($("#check").html()+'<span class="layui-badge-dot"></span>');
}
}
});
</script>
</div>
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</body>
</html>
<?php return array (
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
1 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
); ?>

View File

@ -0,0 +1,83 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="renderer" content="webkit">
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/login.css?v=v1.1.6">
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
</head>
<body>
<div class="user-login" >
<div class="user-login-main">
<div class="user-login-header">
<h2>
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="40">
<?php echo CMSNAME;?>管理中心
</h2>
<p>高效、简洁、强悍的PHP企业网站管理系统</p>
</div>
<form action="<?php echo \core\basic\Url::get('/admin/Index/login');?>" onsubmit="return false" class="layui-form" id="dologin">
<input type="hidden" name="formcheck" id="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
<div class="user-login-box">
<div class="layui-form-item">
<label class="user-login-icon layui-icon layui-icon-username"></label>
<input name="username" id="username" type="text" lay-verify="required" placeholder="用户名" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-item">
<label class="user-login-icon layui-icon layui-icon-password"></label>
<input name="password" id="password" type="password" lay-verify="required" placeholder="密码" autocomplete="off" class="layui-input">
</div>
<?php if (\core\basic\Config::get('admin_check_code')) {?>
<div class="layui-form-item">
<div class="layui-row">
<div class="layui-col-xs7 layui-col-sm8">
<label class="user-login-icon layui-icon layui-icon-vercode" ></label>
<input name="checkcode" id="checkcode" type="text" lay-verify="required" placeholder="验证码" autocomplete="off" class="layui-input">
</div>
<div class="layui-col-xs5 layui-col-sm4">
<div style="margin-left: 10px;">
<img title="点击刷新" src="<?php echo CORE_DIR;?>/code.php" class="user-login-codeimg" id="codeimg" onclick="this.src='<?php echo CORE_DIR;?>/code.php?'+Math.round(Math.random()*10);" />
</div>
</div>
</div>
</div>
<?php } ?>
<div class="layui-form-item">
<button class="layui-btn layui-btn-fluid" lay-submit lay-filter="login-submit" > </button>
</div>
<div style="color:red;" id="note"></div>
</div>
</form>
</div>
<?php if (CMSNAME=='PbootCMS') {?>
<div class="layui-trans user-login-footer">
<p>© 2018-<?php echo date('Y');?> <a href="http://www.pbootcms.com/" target="_blank">pbootcms.com</a></p>
<p><span><a href="http://demo.pbootcms.com" target="_blank">在线演示</a></span><span><a href="http://www.pbootcms.com" target="_blank">前往官网</a></span> </p>
</div>
<?php } ?>
</div>
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v1.1.6"></script>
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</body>
</html><?php return array (
); ?>

View File

@ -43,7 +43,7 @@
<!-------------------------------------- 内容开始 -------------------------------------->
<div class="mainer">
<div class="wrap">
<div class="title wow fadeInUp" data-wow-delay=".1s">
<div class="title wow fadeInUp" style="background-image: ;" data-wow-delay=".1s">
<h3>{sort:topname}</h3>
<label></label>
<span></span> </div>
@ -60,7 +60,7 @@
<div class="clear"></div>
</div> -->
<div class="about_gsjj">
<div class="list wow fadeInUp" data-wow-delay=".3s">
<div class="list wow fadeInUp" data-wow-delay=".3s" style="margin: 0;">
<div class="web">
<div class="text" id="maximg">
<p>{content:content}</p>

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
sendemail|b:0;

View File

@ -650,7 +650,7 @@ img {
.title {
position: relative;
text-align: center;
margin: 80px 0;
padding: 80px 0;
}
.title h3 {
font-size: 32px;
@ -1793,7 +1793,7 @@ img {
max-width: initial;
}
.title {
margin: 60px 0;
padding: 60px 0;
}
.owl-carousel .owl-item .img {
overflow: hidden;
@ -2008,7 +2008,7 @@ img {
padding: 0 5px;
}
.title {
margin: 40px 0
padding: 40px 0
}
.div_tag {
margin-top: -10px;

View File

@ -27,24 +27,13 @@
<!-------------------------------------- 内容开始 -------------------------------------->
<div class="mainer">
<div class="wrap">
<div class="title wow fadeInUp" data-wow-delay=".1s">
<div class="title wow fadeInUp" style="background-image: ;" data-wow-delay=".1s">
<h3>{sort:topname}</h3>
<label></label>
<span></span> </div>
<!-- <div class="class_nav wow fadeInUp" data-wow-delay=".2s">
<ul>
{pboot:nav num=15 parent={sort:tcode}}
{pboot:if('[nav:scode]'=='{sort:scode}')}
<li class="on"><a href="[nav:link]">[nav:name]</a></li>
{else}
<li><a href="[nav:link]">[nav:name]</a></li>
{/pboot:if}
{/pboot:nav}
</ul>
<div class="clear"></div>
</div> -->
<div class="about_gsjj">
<div class="list wow fadeInUp" data-wow-delay=".3s">
<div class="list wow fadeInUp" data-wow-delay=".3s" style="margin: 0;">
<div class="web">
<div class="text" id="maximg">
<p>{content:content}</p>