1
0
mirror of https://e.coding.net/circlecloud/MinecraftAccount.git synced 2025-11-26 21:46:09 +00:00

更新项目文件...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092
2015-11-08 23:56:53 +08:00
parent f5192bca4c
commit 1e5236aa3e
7 changed files with 170 additions and 634 deletions

View File

@@ -5,6 +5,14 @@ namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
public function Index()
{
if (!is_login) {
$this->redirect(U('Index/Login'),3,"尚未登录 3秒后跳转到登录界面!");
}
}
public function Login($username="", $password="", $verify = null) {
if(IS_POST){
$User = A ( 'User' );
@@ -12,9 +20,10 @@ class IndexController extends Controller {
dump ( $te );
$this->display ();
}
}
/* 退出登录 */
/**
* 退出登录
*/
public function Logout() {
if (is_login ()) {
session ( 'user', null );