Skip to content

Commit

Permalink
1. 新增后台管理登录页、后台页 2.登录页已完成 3. 个别地方修改完善
Browse files Browse the repository at this point in the history
  • Loading branch information
shinn-lancelot committed Aug 23, 2018
1 parent e68db5b commit a26c9f9
Show file tree
Hide file tree
Showing 10 changed files with 490 additions and 10 deletions.
23 changes: 23 additions & 0 deletions admin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
session_start();
$token = $_SESSION['token'];
if (empty($token)) {
header('Location: ./login.html');
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>后台管理</title>
<link rel="shortcut icon" href="./asset/image/favicon.ico">
<link rel="stylesheet" href="./asset/css/reset.css">
</head>
<body>
admin
</body>
</html>
Binary file added asset/image/password.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asset/image/password_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asset/image/user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asset/image/user_selected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function http_request($url, $data = null)
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>微信授权登录代理案例页</title>
<link rel="shortcut icon" href="./image/favicon.ico">
Expand Down
Loading

0 comments on commit a26c9f9

Please sign in to comment.