forked from cheshirecats/CuriousWall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccount.php
27 lines (27 loc) · 843 Bytes
/
account.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
error_reporting(E_ALL);
if ($_GET["a"] == 'logout') { $SHALL_LOG_OUT = true; }
require_once 'header.php';
?>
<div style="width: 520px; margin: 100px auto; text-shadow: 0 0 1px rgba(0,0,0,0.1);">
<div style="margin: 40px 1px; font-size:20px;">欢迎来到简单论坛。</div>
<div id="login_form">
<input type="text" id="login_user" placeholder="用户名" />
<input type="password" id="login_pass" placeholder="密码" />
<?php
if ($_GET["a"] == 'login')
{
echo '<span class="button" id="login_button">[登陆]</span>';
}
else if ($_GET["a"] == 'register')
{
echo '<span class="button" id="login_button">[注册]</span>';
}
?>
</div>
<div style="margin: 20px 1px" id="message"></div>
</div>
<script> var $IS_ACCOUNT_PHP = true; </script>
<?php
require_once 'footer.php';
?>