first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<!-- start page title -->
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="page-title-box">
|
||||
<div class="page-title-right">
|
||||
<ol class="breadcrumb m-0">
|
||||
<li class="breadcrumb-item"><a href="./">首页</a></li>
|
||||
<li class="breadcrumb-item active">错误</li>
|
||||
</ol>
|
||||
</div>
|
||||
<h4 class="page-title">404</h4>
|
||||
</div> <!-- end page-title-box -->
|
||||
</div> <!-- end col-->
|
||||
</div>
|
||||
<!-- end page title -->
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="text-center">
|
||||
|
||||
<div class="text-center" style="margin-top:6.5rem!important;margin-bottom:8rem!important;">
|
||||
<img src="../assets/images/maintenance.svg" height="120" alt="File not found Image">
|
||||
<h4 class="text-uppercase mt-3">你遇到了一个错误的页面</h4>
|
||||
<p class="text-muted mt-3"> 由于你当前访问的页面不存在,因此无法显示。请返回首页重试</p>
|
||||
<a class="btn btn-success btn-sm mt-2" href="./">返回首页</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div><!-- end col -->
|
||||
</div><!-- end row -->
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
require_once 'globals.php';
|
||||
// json(201,'对不起~演示站点,不支持此操作');
|
||||
$act = isset($_GET['act']) ? purge($_GET['act']) : '';
|
||||
$act_Arr = explode("_",$act);
|
||||
if(count($act_Arr) == 2){
|
||||
$Path = $act_Arr[0];//路径
|
||||
$act = $act_Arr[1];//操作
|
||||
if(file_exists(FCPATH.ADM_EXTEND_MULU."/{$Path}/api/{$Path}.php")){
|
||||
require FCPATH.ADM_EXTEND_MULU."/{$Path}/api/{$Path}.php";//载入接口
|
||||
}else{
|
||||
json(201,'错误的操作文件');
|
||||
}
|
||||
}elseif(count($act_Arr) == 3){
|
||||
$Path = $act_Arr[0];//路径
|
||||
$File = $act_Arr[1];//文件
|
||||
$act = $act_Arr[2];//操作
|
||||
if(file_exists(FCPATH.ADM_EXTEND_MULU."/{$Path}/api/{$File}.php")){
|
||||
require FCPATH.ADM_EXTEND_MULU."/{$Path}/api/{$File}.php";//载入接口
|
||||
}else{
|
||||
json(201,'错误的操作文件');
|
||||
}
|
||||
}else{
|
||||
json(201,'错误的操作接口');
|
||||
}
|
||||
?>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
//系统版本检测文件
|
||||
require_once '../include/global.php';
|
||||
require_once 'userdata.php';
|
||||
$ADMIN_COOKIE = isset($_COOKIE['ADMIN_COOKIE']) ? purge($_COOKIE['ADMIN_COOKIE']) : '';
|
||||
if($ADMIN_COOKIE == $cookie){
|
||||
$islogin = true;
|
||||
}else{
|
||||
$islogin = false;
|
||||
}
|
||||
|
||||
if (!$islogin) {
|
||||
echo "<html><head>
|
||||
<title>404 Not Found</title>
|
||||
</head><body>
|
||||
<h1>Not Found</h1>
|
||||
<p>The requested URL /edition.php was not found on this server.</p>
|
||||
</body></html>";
|
||||
exit;
|
||||
}
|
||||
|
||||
$data = http_gets('http://auth.lvdoui.net/api/authlook/update?host=' . $_SERVER['HTTP_HOST'] . '&authkey=EAEFBAFE732CED83C872A42EDCFA622F'. '&version=' . EDITION);
|
||||
$json_data = json_decode($data, true);
|
||||
|
||||
if(EDITION >= $json_data['msg']['extend']){ //不需要更新,检测文件是否被修改
|
||||
$file_new = [];
|
||||
$file_md5 = [];
|
||||
$file_lose = [];
|
||||
if(is_array($json_data['msg']['extend']) && !empty($json_data['msg']['extend'])){
|
||||
foreach($json_data['msg']['extend'] as $extend) {
|
||||
if($extend['home'] == 'api'){
|
||||
$file_arr = apiData($extend['file'],$extend['mulu']);
|
||||
}elseif('adm'){
|
||||
$file_arr = admData($extend['file'],$extend['mulu']);
|
||||
}
|
||||
if($file_arr){
|
||||
if($file_arr['md5'] != $extend['md5'] && $file_arr['version'] == $extend['version']){
|
||||
$file_md5[] = $extend;
|
||||
}
|
||||
if($file_arr['version'] < $extend['version']){
|
||||
$file_new[] = $extend;
|
||||
}
|
||||
}else{
|
||||
$file_lose[] = $extend;
|
||||
}
|
||||
}
|
||||
$data = ['file_new'=>$file_new,'file_md5'=>$file_md5,'file_lose'=>$file_lose];
|
||||
json(200, $data);
|
||||
}
|
||||
}else{
|
||||
json(201,['edition'=>$json_data['msg'], 'new_url'=>$json_data['url']]);
|
||||
}
|
||||
|
||||
function admData($FilePath,$mulu='') {
|
||||
if(file_exists(FCPATH.ADM_EXTEND_MULU.$mulu.$FilePath)){
|
||||
$Data = implode('', file(FCPATH.ADM_EXTEND_MULU.$mulu.$FilePath));
|
||||
$filemd5 = md5_file(FCPATH.ADM_EXTEND_MULU.$mulu.$FilePath);
|
||||
preg_match("/Version:(.*)/i", $Data, $version);
|
||||
$version = isset($version[1]) ? strip_tags(trim($version[1])) : '';
|
||||
$file_arr = ['version'=>$version,'md5' => $filemd5];
|
||||
return $file_arr;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function apiData($FilePath,$mulu='') {
|
||||
if(file_exists(FCPATH.API_EXTEND_MULU.$mulu.$FilePath)){
|
||||
$Data = implode('', file(FCPATH.API_EXTEND_MULU.$mulu.$FilePath));
|
||||
$filemd5 = md5_file(FCPATH.API_EXTEND_MULU.$mulu.$FilePath);
|
||||
preg_match("/Version:(.*)/i", $Data, $version);
|
||||
$version = isset($version[1]) ? strip_tags(trim($version[1])) : '';
|
||||
$file_arr = ['version'=>$version,'md5' => $filemd5];
|
||||
return $file_arr;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
</div> <!-- content -->
|
||||
<!-- Footer Start -->
|
||||
<footer class="footer">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
2018 - <?php echo date('Y', time()); ?> © <a href="https://www.yunzer.cn" class="text-title" style="text-decoration:none" target="_blank">云泽网</a> - https://www.yunzer.cn
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="text-md-right footer-links d-none d-md-block">
|
||||
<a href="http://wpa.qq.com/msgrd?v=3&uin=357099073&site=qq&menu=yes" target="_blank">联系作者</a>
|
||||
<!--<a href="https://jq.qq.com/?_wv=1027&k=zqVBNFiY" target="_blank">加入Q群</a>-->
|
||||
<a href="https://www.yunzer.cn" target="_blank">云泽网</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- end Footer -->
|
||||
</div> <!-- content-page -->
|
||||
</div> <!-- end wrapper-->
|
||||
<!-- ============================================================== -->
|
||||
<!-- End Page content -->
|
||||
<!-- ============================================================== -->
|
||||
</div>
|
||||
<!-- END Container -->
|
||||
<div class="rightbar-overlay"></div>
|
||||
<!-- /Right-bar -->
|
||||
<!-- third party js -->
|
||||
<script src="../assets/js/vendor/Chart.bundle.min.js"></script>
|
||||
<script src="../assets/js/vendor/jquery-jvectormap-1.2.2.min.js"></script>
|
||||
<script src="../assets/js/vendor/jquery-jvectormap-world-mill-en.js"></script>
|
||||
<script src="../assets/js/vendor/jquery.dataTables.min.js"></script>
|
||||
<script src="../assets/js/vendor/dataList.software.news.js"></script>
|
||||
<script src="../assets/js/vendor/dataTables.bootstrap4.js"></script>
|
||||
<script src="../assets/js/vendor/dataTables.responsive.min.js"></script>
|
||||
<script src="../assets/js/vendor/responsive.bootstrap4.min.js"></script>
|
||||
<script src="../assets/js/vendor/dataTables.checkboxes.min.js"></script>
|
||||
<!-- App js -->
|
||||
<script src="../assets/js/app.min.js"></script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/*
|
||||
* File:后台全局加载项
|
||||
* Author:易如意
|
||||
* QQ:51154393
|
||||
* Url:www.eruyi.cn
|
||||
*/
|
||||
|
||||
require_once '../include/global.php';
|
||||
require_once 'userdata.php';
|
||||
substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '/') + 1);
|
||||
|
||||
$action = isset($_GET['action']) ? purge($_GET['action']) : '';
|
||||
|
||||
//登录验证
|
||||
if ($action == 'login') {
|
||||
$username = isset($_POST['user']) ? purge($_POST['user']) : '';
|
||||
$password = isset($_POST['pwd']) ? purge($_POST['pwd']) : '';
|
||||
|
||||
if ($username == '' || $password == '') {
|
||||
header('Location:./login.php?err=1');
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($username == $user && $password == $pass) {
|
||||
if (defined('ADM_LOG') && ADM_LOG == 1) {
|
||||
Db::table('log')->add(['group' => 'adm', 'type' => 'logon', 'status' => 200, 'time' => time(), 'ip' => getip(), 'data' => json_encode($_POST)]);
|
||||
} //记录日志
|
||||
setcookie('ADMIN_COOKIE', $cookie, time() + 36000, '/');
|
||||
header('Location:./');
|
||||
exit;
|
||||
} else {
|
||||
header('Location:./login.php?err=2');
|
||||
exit;
|
||||
}
|
||||
}
|
||||
//退出
|
||||
if ($action == 'logout') {
|
||||
setcookie('ADMIN_COOKIE', ' ', time() - 36000, '/');
|
||||
header('Location:./login.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
$ADMIN_COOKIE = isset($_COOKIE['ADMIN_COOKIE']) ? purge($_COOKIE['ADMIN_COOKIE']) : '';
|
||||
if ($ADMIN_COOKIE == $cookie) {
|
||||
$islogin = true;
|
||||
} else {
|
||||
$islogin = false;
|
||||
}
|
||||
|
||||
if (!$islogin) {
|
||||
header('Location:./login.php?err=3');
|
||||
exit;
|
||||
}
|
||||
|
||||
/*导航配置*/
|
||||
$menu_arr = myScanDir(FCPATH . ADM_EXTEND_MULU, 1);
|
||||
$titlename = [];
|
||||
foreach ($menu_arr as $value) {
|
||||
$nav_arr = getPluginData($value);
|
||||
foreach ($nav_arr as $val) {
|
||||
$titlename = array_merge($titlename, [$val['file'] => $val['name']]);
|
||||
}
|
||||
if ($value == 'web') { //continue;
|
||||
$web = $nav_arr;
|
||||
} else {
|
||||
if (!file_exists(FCPATH . ADM_EXTEND_MULU . $value . "/menu.php")) { //continue;
|
||||
foreach ($nav_arr as $value) {
|
||||
$menu[] = $value;
|
||||
}
|
||||
} else {
|
||||
$nav = include FCPATH . ADM_EXTEND_MULU . $value . "/menu.php";
|
||||
$menu[] = array_merge($nav, ['side-nav-second-level' => $nav_arr]);
|
||||
}
|
||||
}
|
||||
}
|
||||
$sortKey = array_column($menu, 'sort');
|
||||
array_multisort($sortKey, SORT_ASC, $menu);
|
||||
|
||||
$Filename = strpos($_SERVER["QUERY_STRING"], '&') ? txt_zuo($_SERVER["QUERY_STRING"], "&") : $_SERVER["QUERY_STRING"];
|
||||
$title = !empty($titlename[$Filename]) ? $titlename[$Filename] : '首页';
|
||||
|
||||
function getPluginData($FilePath)
|
||||
{
|
||||
$file_arr = myScanDir(FCPATH . ADM_EXTEND_MULU . $FilePath . '/view', 2);
|
||||
$nav_arr = [];
|
||||
foreach ($file_arr as $val) {
|
||||
$Data = implode('', file(FCPATH . ADM_EXTEND_MULU . $FilePath . '/view/' . $val));
|
||||
preg_match("/Sort:(.*)/i", $Data, $sort);
|
||||
preg_match("/Hidden:(.*)/i", $Data, $hidden);
|
||||
preg_match("/icons:(.*)/i", $Data, $icons);
|
||||
preg_match("/Name:(.*)/i", $Data, $name);
|
||||
preg_match("/Url:(.*)/i", $Data, $url);
|
||||
preg_match("/Right:(.*)/i", $Data, $right);
|
||||
$sort = isset($sort[1]) ? strip_tags(trim($sort[1])) : '';
|
||||
$hidden = isset($hidden[1]) ? strip_tags(trim($hidden[1])) : '';
|
||||
$icons = isset($icons[1]) ? strip_tags(trim($icons[1])) : '';
|
||||
$name = isset($name[1]) ? strip_tags(trim($name[1])) : '';
|
||||
$url = isset($url[1]) ? strip_tags(trim($url[1])) : '';
|
||||
$right = isset($right[1]) ? strip_tags(trim($right[1])) : '';
|
||||
//if($hidden == 'true')continue;
|
||||
$nav_arr[] = ['name' => $name, 'file' => $url, 'icons' => $icons, 'right' => $right, 'sort' => $sort, 'hidden' => $hidden];
|
||||
}
|
||||
$sortKey = array_column($nav_arr, 'sort');
|
||||
array_multisort($sortKey, SORT_ASC, $nav_arr);
|
||||
return $nav_arr;
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
<?php
|
||||
/*
|
||||
* File:页头
|
||||
* Author:易如意
|
||||
* QQ:51154393
|
||||
* Url:www.eruyi.cn
|
||||
*/
|
||||
require_once 'globals.php';
|
||||
$so = isset($_POST['so']) ? purge($_POST['so']) : '';
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title><?php echo $title; ?> - 后台管理 - 易如意网络验证</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
|
||||
<!-- App favicon -->
|
||||
<link rel="icon" href="../assets/images/favicon.ico">
|
||||
<!-- App css -->
|
||||
<link href="../assets/css/icons.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../assets/css/eruyi.min.css" rel="stylesheet" type="text/css" />
|
||||
<script src="../assets/js/modal_dialog.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- Topbar Start -->
|
||||
<div class="navbar-custom topnav-navbar">
|
||||
<div class="container-fluid">
|
||||
<!-- LOGO -->
|
||||
<a href="index.php" class="topnav-logo">
|
||||
<span class="topnav-logo-lg">
|
||||
<img src="../assets/images/logo-light.png" alt="" height="16">
|
||||
</span>
|
||||
<span class="topnav-logo-sm">
|
||||
<img src="../assets/images/logo_sm.png" alt="" height="16">
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<ul class="list-unstyled topbar-right-menu float-right mb-0">
|
||||
<li class="dropdown notification-list">
|
||||
<a class="nav-link dropdown-toggle nav-user arrow-none mr-0" data-toggle="dropdown" id="topbar-userdrop" href="#" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="account-user-avatar">
|
||||
<img src="../assets/images/users/avatar-1.jpg" alt="user-image" class="rounded-circle">
|
||||
</span>
|
||||
<span>
|
||||
<span class="account-user-name">管理员</span>
|
||||
<span class="account-position"><?php echo $user; ?></span>
|
||||
</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right dropdown-menu-animated topbar-dropdown-menu profile-dropdown" aria-labelledby="topbar-userdrop">
|
||||
<!-- item-->
|
||||
<div class=" dropdown-header noti-title">
|
||||
<h6 class="text-overflow m-0">Welcome !</h6>
|
||||
</div>
|
||||
<!-- item-->
|
||||
<?php foreach ($web as $val) {
|
||||
if ($val['hidden'] == 'true') continue; ?>
|
||||
<a href="./?<?php echo $val['file']; ?>" class="dropdown-item notify-item">
|
||||
<i class="<?php echo $val['icons']; ?>"></i>
|
||||
<span><?php echo $val['name']; ?></span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
<!-- item-->
|
||||
<a href="./?action=logout" class="dropdown-item notify-item">
|
||||
<i class="mdi mdi-account-arrow-right mr-1"></i>
|
||||
<span>退出登入</span>
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<a class="button-menu-mobile disable-btn">
|
||||
<div class="lines">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end Topbar -->
|
||||
|
||||
<div class="container-fluid">
|
||||
<!-- Begin page -->
|
||||
<div class="wrapper">
|
||||
<!-- ============================================================== -->
|
||||
<!-- Start Page Content here -->
|
||||
<!-- ============================================================== -->
|
||||
<!-- Start Content-->
|
||||
<!-- ========== Left Sidebar Start ========== -->
|
||||
<div class="left-side-menu">
|
||||
<div class="leftbar-user">
|
||||
<a href="#">
|
||||
<img src="../assets/images/users/avatar-1.jpg" alt="user-image" height="42" class="rounded-circle shadow-sm">
|
||||
<span class="leftbar-user-name">管理员</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!--- Sidemenu -->
|
||||
<ul class="metismenu side-nav">
|
||||
|
||||
<li class="side-nav-title side-nav-item">导航</li>
|
||||
|
||||
<li id="index" class="side-nav-item">
|
||||
<a id="index_a" href="./?index" class="side-nav-link">
|
||||
<i class="mdi mdi-chart-arc"></i>
|
||||
<span>首页</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php foreach ($menu as $val) {
|
||||
if (!isset($val['side-nav-second-level'])) : ?>
|
||||
<li <?php if (isset($val['file'])) : ?>id="<?php echo $val['file']; ?>" <?php endif; ?> class="side-nav-item">
|
||||
<a <?php if (isset($val['file'])) : ?>id="<?php echo $val['file']; ?>_a" <?php endif; ?> href="<?php echo isset($val['file']) ? './?' . $val['file'] : 'javascript: void(0);'; ?>" class="side-nav-link">
|
||||
<i class="<?php echo $val['icons']; ?>"></i>
|
||||
<?php if (!empty($val['right'])) : ?><span class="badge badge-success float-right"><?php $num = Db::table($val['right'])->count();
|
||||
if ($num > 99) {
|
||||
echo '99+';
|
||||
} else {
|
||||
echo $num;
|
||||
} ?></span><?php endif; ?>
|
||||
<span><?php echo $val['name']; ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php else : ?>
|
||||
<li <?php if (isset($val['id'])) : ?>id="<?php echo $val['id']; ?>" <?php endif; ?> class="side-nav-item">
|
||||
<a <?php if (isset($val['id'])) : ?>id="<?php echo $val['id']; ?>_a" <?php endif; ?> href="javascript: void(0);" class="side-nav-link">
|
||||
<i class="<?php echo $val['icons']; ?>"></i>
|
||||
<span><?php echo $val['name']; ?></span>
|
||||
<span class="menu-arrow"></span>
|
||||
</a>
|
||||
<ul <?php if (isset($val['id'])) : ?>id="<?php echo $val['id']; ?>_ul" <?php endif; ?> class="side-nav-second-level" aria-expanded="false">
|
||||
<?php foreach ($val['side-nav-second-level'] as $v) {
|
||||
if ($v['hidden'] == 'true') continue; ?>
|
||||
<li id="<?php echo str_ireplace('/', '_', $v['file']); ?>">
|
||||
<a href="./?<?php echo $v['file']; ?>"><?php echo $v['name'];
|
||||
if (!empty($v['right'])) : ?><span class="badge badge-success float-right"><?php $num = Db::table($v['right'])->count();
|
||||
if ($v['right'] == 'app') {
|
||||
$app_num = $num;
|
||||
}
|
||||
if ($num > 99) {
|
||||
echo '99+';
|
||||
} else {
|
||||
echo $num;
|
||||
} ?></span><?php endif; ?></a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php } ?>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<!-- Sidebar -left -->
|
||||
</div>
|
||||
<!-- Left Sidebar End -->
|
||||
<div class="content-page">
|
||||
<div class="content">
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
include_once 'header.php';
|
||||
if($Filename == '' or $Filename == 'index'){
|
||||
include(FCPATH.ADM_EXTEND_MULU."/index.php");
|
||||
}else if(file_exists(FCPATH.ADM_EXTEND_MULU.str_replace("_",'/view/',$Filename).".php")){
|
||||
include(FCPATH.ADM_EXTEND_MULU.str_replace("_",'/view/',$Filename).".php");
|
||||
}else{
|
||||
if(!strpos($Filename,"_") && file_exists(FCPATH.ADM_EXTEND_MULU.$Filename.'/view/'.$Filename.".php")){
|
||||
include(FCPATH.ADM_EXTEND_MULU.$Filename.'/view/'.$Filename.".php");
|
||||
}else{
|
||||
include("404.php");
|
||||
}
|
||||
}
|
||||
include_once 'footer.php';
|
||||
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
/*
|
||||
* File:后台登陆
|
||||
* Author:易如意
|
||||
* QQ:51154393
|
||||
* Url:www.eruyi.cn
|
||||
*/
|
||||
$err = isset($_GET['err']) ? intval($_GET['err']) : 0;
|
||||
$errmsg = array(null, '账号密码不能为空', '账号密码有误', '您还没有登陆,请先登录!');
|
||||
$error_msg = $errmsg[$err];
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>后台管理 - 易如意验证系统</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
|
||||
<meta content="Coderthemes" name="author" />
|
||||
<!-- App favicon -->
|
||||
<link rel="icon" href="../assets/images/favicon.ico">
|
||||
<!-- App css -->
|
||||
<link href="../assets/css/icons.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../assets/css/eruyi.min.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body class="authentication-bg">
|
||||
<div class="account-pages mt-5 mb-5">
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-lg-5">
|
||||
<div class="card">
|
||||
<!-- Logo -->
|
||||
<div class="card-header pt-4 pb-4 text-center bg-primary">
|
||||
<a href="../">
|
||||
<span><img src="../assets/images/logo.png" alt="" height="18"></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body p-4">
|
||||
|
||||
<div class="text-center w-75 m-auto">
|
||||
<h4 class="text-dark-50 text-center mt-0 font-weight-bold">登 录</h4>
|
||||
<p class="text-muted mb-4">输入您的账号和密码以访问管理面板。</p>
|
||||
</div>
|
||||
|
||||
<form name="f" method="post" action="./index.php?action=login">
|
||||
|
||||
<div class="form-group">
|
||||
<label for="emailaddress">账号</label>
|
||||
<input class="form-control" type="text" placeholder="请输入账号" name="user" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
<label for="password">密码</label>
|
||||
<input class="form-control" type="password" placeholder="请输入密码" name="pwd" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-3">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="checkbox-signin" checked>
|
||||
<label class="custom-control-label" for="checkbox-signin">记住我</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button class="btn btn-primary" type="submit"> 登 录 </button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div> <!-- end card-body -->
|
||||
</div>
|
||||
<?php if ($error_msg) : ?>
|
||||
<div class="alert alert-danger alert-dismissible bg-danger text-white border-0 fade show" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<strong>提示:</strong> <?php echo $error_msg; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div> <!-- end col -->
|
||||
</div>
|
||||
<!-- end row -->
|
||||
</div>
|
||||
<!-- end container -->
|
||||
</div>
|
||||
<!-- end page -->
|
||||
|
||||
<footer class="footer footer-alt">
|
||||
2018 - <?php echo date('Y', time()); ?> © 易如意 - eruyi.cn
|
||||
</footer>
|
||||
|
||||
<!-- App js -->
|
||||
<script src="../assets/js/app.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/*
|
||||
* File:管理账号密码数据文件
|
||||
* Author:易如意
|
||||
* QQ:51154393
|
||||
* Url:www.eruyi.cn
|
||||
*/
|
||||
|
||||
$user = 'hero920103';//后台账号
|
||||
|
||||
$pass = '920103';//后台密码
|
||||
|
||||
$cookie = '29a61ce1e4780613cc59153515edf9ec';
|
||||
|
||||
/* 请手动修改以上账号密码信息 */
|
||||
Reference in New Issue
Block a user