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">Change your profile</h2>
- <div class="box-content">
- <?php
- if (!isset($_GET['do']))
- {
- //If not isset -> set with dumy value
- $_GET['do'] = "undefine";
- }
- if($_GET['do'] == "save")
- {
- $motto = mysql_real_escape_string($_POST['motto']);
- $mail = mysql_real_escape_string($_POST['email']);
- dbquery("UPDATE users SET motto='$motto' WHERE username='$_SESSION[Habbo_USER_N]'");
- // dbquery("UPDATE users SET password='$vpw' WHERE username='$_SESSION[Habbo_USER_N]'");
- dbquery("UPDATE users SET mail='$mail' WHERE username='$_SESSION[Habbo_USER_N]'");
- ?>
- <div class="rounded rounded-green">
- Profile update successful!<br />
- </div><br />
- <?php
- }
- ?>
- <form action="?do=save" method="post">
- <b>Your Motto</b>
- <br /><br />
- Your motto is what other Habbos will see on your Habbo Home page and beneath your Habbo in the Hotel.
- <br /><br /><label>Motto:
- <?php
- $result = dbquery("SELECT * FROM users WHERE username='$_SESSION[Habbo_USER_N]'");
- while($row = mysql_fetch_array($result))
- {
- ?>
- <input type="text" name="motto" size="32" maxlength="32" value="<?php echo $row['motto']; ?>" id="avatarmotto" /></label>
- <br /><br />
- <h3>Email Address</h3>
- <p><br>
- <label>Email: <input type="text" size="32" name="email" value="<?php echo $row['mail']; ?>" id="avatarmotto"><br />
- </label><br />
- </p>
- <!-- <h3>Block New Friends</h3>
- <p><br />
- <label>Don't want to be botherd with user friend requests? Turn them off here.<br /><br />Yes: <input type="checkbox" name="on" value="1"><br />
- </label>
- </p> -->
- <br />
- <!--
- <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" value="<?php echo $row['password']; ?>"><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>
- <?php
- }
- ?>
- </p>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement