62 lines
1.8 KiB
PHP
62 lines
1.8 KiB
PHP
<?php
|
|
$uid=$cookie::get('uid');
|
|
$url=isset($_GET['url'])?$_GET['url']:'/user/';
|
|
if(!empty($uid))go($url);
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head lang="en">
|
|
<meta charset="UTF-8">
|
|
<title>权限登录 - <?=$conf['sitename']?></title>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<meta name="format-detection" content="telephone=no">
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
<link rel="alternate icon" type="image/png" href="/assets/amazeui/i/favicon.png">
|
|
<link rel="stylesheet" href="/assets/amazeui/css/amazeui.min.css"/>
|
|
<style>
|
|
.header {
|
|
text-align: center;
|
|
}
|
|
.header h1 {
|
|
font-size: 200%;
|
|
color: #333;
|
|
margin-top: 30px;
|
|
}
|
|
.header p {
|
|
font-size: 14px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<div class="am-g">
|
|
<h1><?=$conf['sitename']?></h1>
|
|
<p><?=$conf['user_say1']?><br/><?=$conf['user_say2']?></p>
|
|
</div>
|
|
<hr />
|
|
</div>
|
|
<div class="am-g">
|
|
<div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
|
|
<h3>登录</h3>
|
|
<hr>
|
|
<form method="post" action="<?=$siteurl?>user/loginsubmit.cgi" class="am-form">
|
|
<label for="username">用户名:</label>
|
|
<input type="text" name="username" id="username" value="" required>
|
|
<br>
|
|
<label for="password">密码:</label>
|
|
<input type="password" name="password" id="password" value="" required>
|
|
<br />
|
|
<div class="am-cf">
|
|
<input type="submit" name="" value="登 录" class="am-btn am-btn-primary am-btn-sm am-fl">
|
|
<a href="/forget.html" class="am-btn am-btn-default am-btn-sm am-fr">忘记密码 ^_^?</a>
|
|
</div>
|
|
</form>
|
|
<hr>
|
|
<div><?=$conf['footer']?></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|