mirror of
				https://e.coding.net/circlecloud/McAccount.git
				synced 2025-11-03 17:56:24 +00:00 
			
		
		
		
	@@ -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" );
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@@ -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 ( "验证失败" );
 | 
			
		||||
 
 | 
			
		||||
@@ -1,8 +0,0 @@
 | 
			
		||||
<?php
 | 
			
		||||
class server_status extends AmysqlController {
 | 
			
		||||
	function getinfo() {
 | 
			
		||||
		$info = $this -> _model('server_model') -> QueryMinecraft( $_REQUEST ['ip'], $_REQUEST ['port'] );
 | 
			
		||||
		return $info;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user