Guest User

Chose_gender.php

a guest
Apr 15th, 2017
25
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None
  1. <?php
  2. #|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
  3. #| #|
  4. #| Développement de RetroPHP par Tyler #|
  5. #| #|
  6. #|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
  7.  
  8. include '../init.php';
  9.  
  10. $Auth::Session_Disconnected($_SESSION);
  11.  
  12. $pagename = "Quel est votre sexe";
  13. $pageid = "gender";
  14.  
  15. if($rtp_user['gender_register'] == 1) {
  16. Redirect(URL."/client");
  17. }
  18.  
  19. if(isset($_POST['male']))
  20. {
  21. if($rtp_user['gender_register'] == 0) {
  22. include './register/gender.boy.php';
  23. $count = 1;
  24. $i = 0;
  25. while($i != $count){
  26. $i++;
  27. $figure = generateFigure(); $figure = $figure[0];
  28. $id = uniqid();
  29. $sql = $bdd->exec("UPDATE users SET look = '".safe($figure,'SQL')."' WHERE id = '".safe($User->id,'SQL')."'");
  30. }
  31. $sql = $bdd->exec("UPDATE users SET gender = 'M' WHERE id = '".safe($User->id,'SQL')."'");
  32. $sql = $bdd->exec("UPDATE retrophp_users SET gender_register = '1' WHERE uid = '".safe($User->id,'SQL')."'");
  33. Redirect(URL."/client");
  34. }
  35. }
  36.  
  37. if(isset($_POST['female']))
  38. {
  39. if($rtp_user['gender_register'] == 0) {
  40. include './register/gender.girl.php';
  41. $count = 1;
  42. $i = 0;
  43. while($i != $count){
  44. $i++;
  45. $figure = generateFigure(); $figure = $figure[0];
  46. $id = uniqid();
  47. $sql = $bdd->exec("UPDATE users SET look = '".safe($figure,'SQL')."' WHERE id = '".safe($User->id,'SQL')."'");
  48. }
  49. $sql = $bdd->exec("UPDATE users SET gender = 'F' WHERE id = '".safe($User->id,'SQL')."'");
  50. $sql = $bdd->exec("UPDATE retrophp_users SET gender_register = '1' WHERE uid = '".safe($User->id,'SQL')."'");
  51. Redirect(URL."/client");
  52. }
  53. }
  54. ?>
  55. <html>
  56. <head>
  57. <meta charset="utf-8">
  58. <title><?php echo Settings('Name'); ?>: <?PHP echo $pagename; ?> </title>
  59. <link type="text/css" rel="stylesheet" href="<?php echo URL; ?>/web-gallery/v5/css/habbo.out.css?<?PHP echo UPDATE; ?>">
  60. <link rel="shortcut icon" href="<?php echo URL; ?>/web-gallery/v2/favicon.ico?<?PHP echo UPDATE; ?>" type="image/vnd.microsoft.icon" />
  61. <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
  62.  
  63. </head>
  64. <body>
  65.  
  66. <?php include './templates/jour_nuit.php'; ?>
  67.  
  68. <div id="login" name="form1">
  69. <div class="logo">
  70. </div>
  71. <span class="title">Je suis...</span>
  72. <p>
  73. S&eacute;lectionne ton cas...
  74. </p>
  75. <form method="post">
  76. <button type="submit" class="btn green" name="male">Un gar&ccedil;on</button>
  77. <button type="submit" class="btn red" name="female" style="margin-top:-66px;margin-left:60px;">Une fille</button>
  78. </form>
  79. </div>
  80.  
  81. </body>
  82. </html>
RAW Paste Data Copied