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

更新项目 完成登陆注册部分...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-11-06 18:12:15 +08:00
parent 6dd800f2e2
commit 9dfe8fa4a7
18 changed files with 2035 additions and 63 deletions

View File

@@ -1,11 +1,27 @@
<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
public function index(){
$data=M('authme')->select();
dump($data);
$this->data->$data;
$this->display();
}
<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
public function Login($username="", $password="", $verify = null) {
if(IS_POST){
$User = A ( 'User' );
$te = $User->Login ( $username, $password, $verify );
dump ( $te );
$this->display ();
}
}
/* 退出登录 */
public function Logout() {
if (is_login ()) {
session ( 'user', null );
session ( '[destroy]' );
$this->success ( '退出成功!', U ( 'login' ) );
} else {
$this->redirect ( 'login' );
}
}
}