src/Neuron/GameServer/Windows/MyAccount.php
private function getResetAccount ()
	{
		$text = Neuron_Core_Text::__getInstance ();
	
		$input = $this->getInputData ();
		$myself = Neuron_GameServer::getPlayer ();
		
		$page = new Neuron_Core_Template ();
		
		// This only works if an E-mail is set.
		if (!$myself->isEmailCertified () && $this->canSetEmail ())
		{
			$page->set ('noEmail', true);
		}
		
		// E-mail address is certified: account reset can only go trough mail.		
		elseif (isset ($input['confirm']) && $input['confirm'] == 'true' && $myself->isEmailCertified ())
		{
			$myself->startResetAccount ();
			$page->set ('success', 'done');
		}
		
		// Email address is not certified (and cannot be certified)
		// That means the user can reset account without confirmation.
		elseif (isset ($input['confirm']) && $input['confirm'] == 'true')
		{
			$myself->execResetAccount ();
		
			$page->set ('success', 'instadone');
			reloadEverything ();
		}
		
		return $page->parse ('gameserver/account/resetAccount.phpt');
	}
private function getResetAccount ()
	{
		$text = Neuron_Core_Text::__getInstance ();
	
		$input = $this->getInputData ();
		$myself = Neuron_GameServer::getPlayer ();
		
		$page = new Neuron_Core_Template ();
		
		// This only works if an E-mail is set.
		if (!$myself->isEmailCertified () && $this->canSetEmail ())
		{
			$page->set ('noEmail', true);
		}
		
		// E-mail address is certified: account reset can only go trough mail.		
		elseif (isset ($input['confirm']) && $input['confirm'] == 'true' && $myself->isEmailCertified ())
		{
			$myself->startResetAccount ();
			$page->set ('success', 'done');
		}
		
		// Email address is not certified (and cannot be certified)
		// That means the user can reset account without confirmation.
		elseif (isset ($input['confirm']) && $input['confirm'] == 'true')
		{
			$myself->execResetAccount ();
		
			$page->set ('success', 'instadone');
			reloadEverything ();
		}
		
		return $page->parse ('gameserver/account/resetAccount.phpt');
	}
private function getResetAccount ( ) { $ text = Neuron_Core_Text :: __getInstance ( ) ; $ input = $ this -> getInputData ( ) ; $ myself = Neuron_GameServer :: getPlayer ( ) ; $ page = new Neuron_Core_Template ( ) ; // This only works if an E-mail is set. if ( ! $ myself -> isEmailCertified ( ) && $ this -> canSetEmail ( ) ) { $ page -> set ( 'noEmail' , true ) ; } // E-mail address is certified: account reset can only go trough mail.		 elseif ( isset ( $ input [ 'confirm' ] ) && $ input [ 'confirm' ] == 'true' && $ myself -> isEmailCertified ( ) ) { $ myself -> startResetAccount ( ) ; $ page -> set ( 'success' , 'done' ) ; } // Email address is not certified (and cannot be certified) // That means the user can reset account without confirmation. elseif ( isset ( $ input [ 'confirm' ] ) && $ input [ 'confirm' ] == 'true' ) { $ myself -> execResetAccount ( ) ; $ page -> set ( 'success' , 'instadone' ) ; reloadEverything ( ) ; } return $ page -> parse ( 'gameserver/account/resetAccount.phpt' ) ; }
/*
Returns the HTMT for an account reset.
/ * Returns the HTMT for an account reset .