1 Star 0 Fork 0

ica / bbs_0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
login.php 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
require 'core/header.php';
if ( isset( $_SESSION['uid'] ) ) {
if ( $_SESSION['rank'] != '10' ) {
header( 'Location:forum.php' );
}
}
?>
<h3>用户登录</h3>
<form method="post" action="post.php">
<p>
用户名: <input id="username" name="username" type="text" value=""/>
</p>
<p>
&nbsp;&nbsp;&nbsp;码: <input id="password" name="password" type="password" value=""/>
</p>
<p>
验证码:<input id="verify" name="verify" type="text" value=""/><img id="verifyImg" style="-webkit-user-select: none;" src="core/verification.php"><a href="javascript:void(0)" onclick="document.getElementById('verifyImg').src='core/verification.php?r='+Math.random()">换一张</a>
<!-- ?r='+Math.random() -->
</p>
<input type="button" onclick="history.go(-1)" value="返回">
<?php
if ( isset( $_GET['back'] ) ) {
?>
<input name="submit" type="button" onclick="ajaxpost_login(<?= $_GET['back'] ?>, 1)" value="登录"/>
<?php
} else {
?>
<input name="submit" type="button" onclick="ajaxpost_login('forum.php', 0)" value="登录"/>
<?php
}
?>
<a href="signin.php">没有账号,注册</a>
</form>
<?php
require 'core/footer.php';
?>
PHP
1
https://gitee.com/ica520/bbs_0.git
git@gitee.com:ica520/bbs_0.git
ica520
bbs_0
bbs_0
master

搜索帮助