1
0
mirror of https://e.coding.net/circlecloud/McAccount.git synced 2025-09-06 07:37:40 +00:00

更新项目...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092
2015-11-01 22:29:21 +08:00
parent 17a9ae06a2
commit 5425b2b1e4
6 changed files with 58 additions and 147 deletions

View File

@ -1,37 +1,28 @@
<?php
class index extends AmysqlController
{
// 默认首页
function IndexAction()
{
$this -> title = 'Minecraft 用户中心'; // 直接赋值模板
$this -> _view('message'); // 载入index模板
}
function login(){
$this -> title = "Minecraft 用户登陆";
$this -> _view('login');
}
function register(){
$this -> title = "Minecraft 帐号注册";
$this -> _view("register");
}
function pass(){
$this -> title = "Minecraft 修改密码";
$this -> _view("password");
}
function mail(){
$this -> title = "Minecraft 邮箱验证";
$this -> _View("mail/mailstatus");
}
function forge(){
$this -> title = "Minecraft 密码找回";
$this -> _View("forge");
}
<?php
class index extends AmysqlController {
// 默认首页
function IndexAction() {
$this->title = 'Minecraft 用户中心'; // 直接赋值模板
$this->_view ( 'message' ); // 载入index模板
}
function login() {
$this->title = "Minecraft 用户登陆";
$this->_view ( 'login' );
}
function register() {
$this->title = "Minecraft 帐号注册";
$this->_view ( "register" );
}
function pass() {
$this->title = "Minecraft 修改密码";
$this->_view ( "password" );
}
function mail() {
$this->title = "Minecraft 邮箱验证";
$this->_View ( "mail/mailstatus" );
}
function forge() {
$this->title = "Minecraft 密码找回";
$this->_View ( "forge" );
}
}

View File

@ -23,7 +23,7 @@ class mail_status extends AmysqlController {
JsonError ( '验证码不对!请重试' );
exit ( 0 );
}
if ($this->_model ( "mail_model" )->mail ( @$_REQUEST ['mail'], $verify, @$_SESSION ['username'] ))
if ($this->_model ( "mail_model" )->mail ( @$_REQUEST ['mail'], @$_SESSION ['username'] ))
JsonSuccess ( '验证成功' );
else
JsonError ( "验证失败" );

View File

@ -1,8 +0,0 @@
<?php
class server_status extends AmysqlController {
function getinfo() {
$info = $this -> _model('server_model') -> QueryMinecraft( $_REQUEST ['ip'], $_REQUEST ['port'] );
return $info;
}
}
?>