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 Releases
CMS Releases
[1.X] RevCMS - Security Key [FIX]
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="Sledmore" data-source="post: 207844" data-attributes="member: 591"><p>Hey,</p><p> </p><p>Found this about 6 month ago but never bothered to make a thread as I didn't use the 'Security Key' option in RevCMS and didn't see much others but I have recently.</p><p> </p><p>Have you used this before and noticed how all the hashes in the users table are the same for seckey? Well this simple fix will solve that (not previous hashes but only new ones once the fix is applied).</p><p> </p><p><strong>1)</strong> Open up '<strong>app/class.users.php</strong>'.</p><p><strong>2)</strong> Find the following: (Under <strong>final public function register()</strong>)</p><p>[PHP]$this->addUser($template->form->reg_username, $core->hashed($template->form->reg_password), $template->form->reg_email, $_CONFIG['hotel']['motto'], $_CONFIG['hotel']['credits'], $_CONFIG['hotel']['pixels'], 1, $template->form->reg_figure, $template->form->reg_gender, $core->hashed($template->form->reg_key));[/PHP]</p><p><strong>3)</strong> If you have already customized this code then simply replace the following:</p><p>[PHP]$core->hashed($template->form->reg_key)[/PHP]</p><p>With:</p><p>[PHP]$core->hashed($template->form->reg_seckey)[/PHP]</p><p> </p><p>If not you can replace the whole line with the following:</p><p>[PHP]$this->addUser($template->form->reg_username, $core->hashed($template->form->reg_password), $template->form->reg_email, $_CONFIG['hotel']['motto'], $_CONFIG['hotel']['credits'], $_CONFIG['hotel']['pixels'], 1, $template->form->reg_figure, $template->form->reg_gender, $core->hashed($template->form->$core->hashed($template->form->reg_seckey)));[/PHP]</p><p> </p><p>And then you're done, this simple error is now fixed.</p></blockquote><p></p>
[QUOTE="Sledmore, post: 207844, member: 591"] Hey, Found this about 6 month ago but never bothered to make a thread as I didn't use the 'Security Key' option in RevCMS and didn't see much others but I have recently. Have you used this before and noticed how all the hashes in the users table are the same for seckey? Well this simple fix will solve that (not previous hashes but only new ones once the fix is applied). [B]1)[/B] Open up '[B]app/class.users.php[/B]'. [B]2)[/B] Find the following: (Under [B]final public function register()[/B]) [PHP]$this->addUser($template->form->reg_username, $core->hashed($template->form->reg_password), $template->form->reg_email, $_CONFIG['hotel']['motto'], $_CONFIG['hotel']['credits'], $_CONFIG['hotel']['pixels'], 1, $template->form->reg_figure, $template->form->reg_gender, $core->hashed($template->form->reg_key));[/PHP] [B]3)[/B] If you have already customized this code then simply replace the following: [PHP]$core->hashed($template->form->reg_key)[/PHP] With: [PHP]$core->hashed($template->form->reg_seckey)[/PHP] If not you can replace the whole line with the following: [PHP]$this->addUser($template->form->reg_username, $core->hashed($template->form->reg_password), $template->form->reg_email, $_CONFIG['hotel']['motto'], $_CONFIG['hotel']['credits'], $_CONFIG['hotel']['pixels'], 1, $template->form->reg_figure, $template->form->reg_gender, $core->hashed($template->form->$core->hashed($template->form->reg_seckey)));[/PHP] And then you're done, this simple error is now fixed. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[1.X] RevCMS - Security Key [FIX]
Top