Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Log in help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayC" data-source="post: 356816" data-attributes="member: 36373"><p>Okay do me a favor under your class.users.php found in your APP folder there is a function called login() go ahead and replace it with this and then try:</p><p>[CODE]</p><p>final public function login()</p><p> {</p><p> global $template, $_CONFIG, $core;</p><p> </p><p> if(isset($_POST['login']))</p><p> {</p><p> $template->form->setData();</p><p> unset($template->form->error);</p><p> </p><p> if($this->nameTaken($template->form->log_username))</p><p> {</p><p> if($this->isBanned($template->form->log_username) == false || $this->isBanned($_SERVER['REMOTE_ADDR']) == false)</p><p> {</p><p> if($this->userValidation($template->form->log_username, $core->hashed($template->form->log_password)))</p><p> {</p><p> $this->turnOn($template->form->log_username);</p><p> $this->updateUser($_SESSION['user']['id'], 'ip_last', $_SERVER['REMOTE_ADDR']);</p><p> $template->form->unsetData();</p><p> header('Location: ' . $_CONFIG['hotel']['url'] . '/me');</p><p> exit;</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Details do not match';</p><p> return;</p><p> }</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Sorry, it appears this user is banned<br />';</p><p> $template->form->error .= 'Reason: ' . $this->getReason($template->form->log_username);</p><p> return;</p><p> }</p><p> }</p><p> else</p><p> {</p><p> $template->form->error = 'Username does not exist';</p><p> return;</p><p> }</p><p> }</p><p> }</p><p></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="JayC, post: 356816, member: 36373"] Okay do me a favor under your class.users.php found in your APP folder there is a function called login() go ahead and replace it with this and then try: [CODE] final public function login() { global $template, $_CONFIG, $core; if(isset($_POST['login'])) { $template->form->setData(); unset($template->form->error); if($this->nameTaken($template->form->log_username)) { if($this->isBanned($template->form->log_username) == false || $this->isBanned($_SERVER['REMOTE_ADDR']) == false) { if($this->userValidation($template->form->log_username, $core->hashed($template->form->log_password))) { $this->turnOn($template->form->log_username); $this->updateUser($_SESSION['user']['id'], 'ip_last', $_SERVER['REMOTE_ADDR']); $template->form->unsetData(); header('Location: ' . $_CONFIG['hotel']['url'] . '/me'); exit; } else { $template->form->error = 'Details do not match'; return; } } else { $template->form->error = 'Sorry, it appears this user is banned<br />'; $template->form->error .= 'Reason: ' . $this->getReason($template->form->log_username); return; } } else { $template->form->error = 'Username does not exist'; return; } } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Log in help
Top