Account Setting codes

Experienced Elementalist
Joined
Sep 17, 2011
Messages
235
Reaction score
30
Habbo Retro's :
Is there any chance anyone can produce a code which enable the users to see there password, email, rank etc. ?


Thanks
 
Sure, something along the lines of:

PHP:
<?php
$userQ = "SELECT * FROM `userstable` WHERE `username` = '" . $_SESSION['username'] . "'"; //prepare the query
$result = @mysql_query( $userQ ) or die( mysql_error() ); //execute query or throw an error if it fails
$userA = @mysql_fetch_array( $result );
echo "Your email is: " . $userA[ "email" ] . "!";
?>
 
Last edited:
Habbo Retro's :
Is there any chance anyone can produce a code which enable the users to see there password, email, rank etc. ?


Thanks

A general rule: If the visual/textual data is available, you can code something to display it as output to the screen. Hopefully the raw password isn't available- so hopefully not.
 
Sure, something along the lines of:

PHP:
<?php
$userQ = "SELECT * FROM `userstable` WHERE `username` = '" . $_SESSION['username'] . "'"; //prepare the query
$result = @mysql_query( $userQ ) or die( mysql_error() ); //execute query or throw an error if it fails
$userA = @mysql_fetch_array( $result );
echo "Your email is: " . $userA[ "email" ] . "!";
?>

He also asked if he could see rank and password, the rank would just be echo "Your rank is: " . $userA["rank"] . "!"; like yours with the email, but as ubercms etc doesn't have decryption(don't know if it is possible to decrypt sha1 etc. ( atleast with any functions within ubercms )) but as a great coder as you are m0nsta. I do believe you could figure it out :)
 
He also asked if he could see rank and password, the rank would just be echo "Your rank is: " . $userA["rank"] . "!"; like yours with the email, but as ubercms etc doesn't have decryption(don't know if it is possible to decrypt sha1 etc. ( atleast with any functions within ubercms )) but as a great coder as you are m0nsta. I do believe you could figure it out :)

hash and encryption are two different things. Look it up.
 
He also asked if he could see rank and password, the rank would just be echo "Your rank is: " . $userA["rank"] . "!"; like yours with the email, but as ubercms etc doesn't have decryption(don't know if it is possible to decrypt sha1 etc. ( atleast with any functions within ubercms )) but as a great coder as you are m0nsta. I do believe you could figure it out :)
I've not dealt with retros in about 2 years and don't intend to at the moment, I am not familiar with how the CMS's are coded because I wasn't involved with them, I'm sure if I took the time to understand their method then I could but I chose not to.

I just gave him the standard way to retrieve information from a database.
 
Back