Advertisement
Guest User

Untitled

a guest
Jun 6th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6. <div class="habblet-container" style="float:left; width: 560px;">
  7. <div class="cbb clearfix settings">
  8.  
  9. <h2 class="title">Change your profile</h2>
  10. <div class="box-content">
  11. <?php
  12. if (!isset($_GET['do']))
  13. {
  14. //If not isset -> set with dumy value
  15. $_GET['do'] = "undefine";
  16. }
  17. if($_GET['do'] == "save")
  18. {
  19. $motto = mysql_real_escape_string($_POST['motto']);
  20. $mail = mysql_real_escape_string($_POST['email']);
  21.  
  22.  
  23.  
  24. dbquery("UPDATE users SET motto='$motto' WHERE username='$_SESSION[Habbo_USER_N]'");
  25. // dbquery("UPDATE users SET password='$vpw' WHERE username='$_SESSION[Habbo_USER_N]'");
  26.  
  27. dbquery("UPDATE users SET mail='$mail' WHERE username='$_SESSION[Habbo_USER_N]'");
  28.  
  29. ?>
  30. <div class="rounded rounded-green">
  31. Profile update successful!<br />
  32. </div><br />
  33.  
  34. <?php
  35. }
  36. ?>
  37. <form action="?do=save" method="post">
  38. <b>Your Motto</b>
  39. <br /><br />
  40. Your motto is what other Habbos will see on your Habbo Home page and beneath your Habbo in the Hotel.
  41. <br /><br /><label>Motto:
  42. <?php
  43. $result = dbquery("SELECT * FROM users WHERE username='$_SESSION[Habbo_USER_N]'");
  44. while($row = mysql_fetch_array($result))
  45. {
  46. ?>
  47. <input type="text" name="motto" size="32" maxlength="32" value="<?php echo $row['motto']; ?>" id="avatarmotto" /></label>
  48. <br /><br />
  49. <h3>Email Address</h3>
  50. <p><br>
  51. <label>Email: <input type="text" size="32" name="email" value="<?php echo $row['mail']; ?>" id="avatarmotto"><br />
  52. </label><br />
  53. </p>
  54.  
  55.  
  56.  
  57.  
  58. <!-- <h3>Block New Friends</h3>
  59. <p><br />
  60. <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 />
  61. </label>
  62. </p> -->
  63. <br />
  64. <!--
  65. <h3>Password Changing</h3> - <b>Note: Don't worry about the 20 letters, it will update fine.</b>
  66. <p><br />
  67. <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 />
  68. </label>
  69. </p>
  70. -->
  71. <br /><br />
  72.  
  73.  
  74.  
  75. <p align="right"><a href="#" class="new-button" style="display: none" id="profileForm-submit"><b>Save changes</b><i></i></a>
  76. <input type="submit" value="Save changes" name="save" class="submit" />
  77. </p></form>
  78.  
  79.  
  80.  
  81.  
  82. <?php
  83. }
  84. ?>
  85. </p>
  86.  
  87.  
  88. </div>
  89. </div>
  90. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement