Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="habblet-container" style="float:left; width: 560px;">
- <div class="cbb clearfix settings">
- <h2 class="title">Update your password</h2>
- <div class="box-content">
- <?php
- if (!isset($_GET['do']))
- {
- //If not isset -> set with dumy value
- $_GET['do'] = "undefine";
- }
- if($_GET['do'] == "save")
- {
- $new = mysql_real_escape_string("$_POST[npass]");
- $vpw = sha1($new);
- dbquery("UPDATE users SET password='$vpw' WHERE username='$_SESSION[Habbo_USER_N]'");
- ?>
- <div class="rounded rounded-green">
- Profile update successful!<br />
- </div><br />
- <?php
- }
- ?>
- <form action="?do=save" method="post">
- <h3>Password Changing</h3> - <b>Note: Don't worry about the 20 letters, it will update fine.</b>
- <p><br />
- <label>Leak your password by accident? No worries, you can change it right here!<br /><br />New Password:
- <input type="password" name="npass"><br />
- </label>
- </p>
- <br /><br />
- <p align="right"><a href="#" class="new-button" style="display: none" id="profileForm-submit"><b>Save changes</b><i></i></a>
- <input type="submit" value="Save changes" name="save" class="submit" />
- </p></form>
- </p>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement