mirror of
				https://e.coding.net/circlecloud/McAccount.git
				synced 2025-11-03 17:56:24 +00:00 
			
		
		
		
	@@ -12,11 +12,6 @@ class authme extends AmysqlModel {
 | 
			
		||||
				"world" => 'world',
 | 
			
		||||
				"email" => $mail 
 | 
			
		||||
		);
 | 
			
		||||
		$ic = array (
 | 
			
		||||
				"username" => $username,
 | 
			
		||||
				"balance" => "30",
 | 
			
		||||
				"hidden" => "0" 
 | 
			
		||||
		);
 | 
			
		||||
		$data = array (
 | 
			
		||||
				"address" => $mail,
 | 
			
		||||
				'verify' => '',
 | 
			
		||||
@@ -24,15 +19,11 @@ class authme extends AmysqlModel {
 | 
			
		||||
				'time' => date ( 'Y-m-d' ),
 | 
			
		||||
				"user" => $username 
 | 
			
		||||
		);
 | 
			
		||||
		if ($this->_insert ( 'authme', $value ) == 0) {
 | 
			
		||||
		$this->_insert ( 'mail', $data );
 | 
			
		||||
		if ($this->_insert ( 'authme', $value ) != 0)
 | 
			
		||||
			return true;
 | 
			
		||||
		else
 | 
			
		||||
			return false;
 | 
			
		||||
		} else {
 | 
			
		||||
			if ($this->_insert ( 'mail', $data ) == 0) {
 | 
			
		||||
				return false;
 | 
			
		||||
			} else {
 | 
			
		||||
				return false;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	public function login($username, $password) {
 | 
			
		||||
		if ($this->_sum ( "SELECT * FROM `authme` WHERE `username` = '$username' AND `password` = '$password'" ) == 0)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user