Advertisement
Guest User

Untitled

a guest
May 30th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.21 KB | None | 0 0
  1. <?php
  2. //Start Session
  3. session_start();
  4.  
  5. //Set current year
  6. $currentyear = date("Y");
  7.  
  8. ?>
  9. <html>
  10. <head>
  11.  
  12. <link rel="stylesheet" type="text/css" href="../mechanics/segments_container.css"/>
  13. <script src='https://www.google.com/recaptcha/api.js'></script>
  14.  
  15. </head>
  16. <body>
  17. <div class = "container">
  18.  
  19. <div class = "titlebar">
  20.  
  21. Registration
  22.  
  23. </div>
  24. <div class = "inner_container">
  25.  
  26. <?php
  27.  
  28. if(!isset($_SESSION["aged"])){
  29.  
  30. ?>
  31.  
  32. <form action="../mechanics/register.php" method="post">
  33. <div class = "inside_container">
  34. <div class = "titlebar">
  35.  
  36. Date Of Birth
  37.  
  38. </div>
  39. <div class = "inside_inner_container">
  40.  
  41. <br />
  42. <center>
  43. You can choose to hide your date of birth after<br />
  44. you've successfully registered.
  45. </center>
  46. <br />
  47.  
  48. <center>
  49. <font style="padding-right:15px;">Day:</font>
  50. <font style="padding-right:10px;">Month:</font>
  51. <font style="padding-right:15px;">Year:</font>
  52. </center>
  53.  
  54. <center>
  55. <select name = "day">
  56. <?php
  57. for($c = 1;$c < 32; $c++){
  58. echo "<option value = '$c'>$c</option>";
  59. }
  60. ?>
  61. </select>
  62.  
  63. &nbsp;&nbsp;
  64.  
  65. <select name = "month">
  66. <?php
  67. for($b = 1;$b < 13; $b++){
  68. echo "<option value = '$b'>$b</option>";
  69. }
  70. ?>
  71. </select>
  72.  
  73. &nbsp;&nbsp;
  74.  
  75. <select name = "year">
  76. <?php
  77. for($a = $currentyear;$a > ($currentyear - 100); $a--){
  78. echo "<option value = '$a'>$a</option>";
  79. }
  80. ?>
  81. </select>
  82. </center>
  83.  
  84. <br />
  85.  
  86. </div>
  87. </div>
  88.  
  89. <center>
  90. <input class = "general_button" type = "submit" value = "Proceed" name="aging"/>
  91. </center>
  92. </form>
  93.  
  94. <?php
  95. }
  96.  
  97. if($_SESSION["aged"] == true){
  98.  
  99. ?>
  100.  
  101. <form target="../mechanics/register.php" method = "post">
  102.  
  103. <div class = "inside_container">
  104.  
  105. <div class = "titlebar">
  106.  
  107. Required Information
  108.  
  109. </div>
  110.  
  111. <div class = "inside_inner_container">
  112.  
  113. <br />
  114. <center>
  115. <table style="color:#CCCCCD">
  116. <tr>
  117. <td style="text-align:right;">Username:</td><td width="50px"></td><td><input type = "text" name = "username"/></td>
  118. </tr>
  119. <tr>
  120. <td style="text-align:right;">E-Mail:</td><td width="50px"></td><td><input type = "text" name = "email"/></td>
  121. </tr>
  122. <tr>
  123. <td style="text-align:right;padding-top:10px;">Password:</td><td width="50px"></td><td style="padding-top:10px;"><input type = "password" name = "passwordone"/></td>
  124. </tr>
  125. <tr>
  126. <td style="text-align:right;">Repeat:</td><td width="50px"></td><td><input type = "password" name = "passwordtwo"/></td>
  127. </tr>
  128. </table>
  129. </center>
  130.  
  131. </div>
  132. </div>
  133.  
  134. <div class = "inside_container">
  135.  
  136. <div class = "titlebar">
  137.  
  138. Optional Information
  139.  
  140. </div>
  141.  
  142. <div class = "inside_inner_container">
  143.  
  144. <br />
  145. <center>
  146. <table style="color:#CCCCCD">
  147. <tr>
  148. <td style="text-align:right;">Referred By:</td><td width="50px"></td><td><input type = "text" name = "referred"/></td>
  149. </tr>
  150. <tr>
  151. <td style="text-align:right;padding-top:10px;">Skype:</td><td width="50px"></td><td style="padding-top:10px;"><input type = "text" name = "skype"/></td>
  152. </tr>
  153. <tr>
  154. <td style="text-align:right;">Icq:</td><td width="50px"></td><td><input type = "text" name = "icq"/></td>
  155. </tr>
  156. <tr>
  157. <td style="text-align:right;">Jabber:</td><td width="50px"></td><td><input type = "text" name = "jabber"/></td>
  158. </tr>
  159. <tr>
  160. <td style="text-align:right;padding-top:10px;">Website:</td><td width="50px"></td><td style="padding-top:10px;"><input type = "text" name = "website"/></td>
  161. </tr>
  162. </table>
  163. </center>
  164. <br />
  165. </div>
  166.  
  167. </div>
  168.  
  169. <center>
  170.  
  171. <div class="g-recaptcha" data-sitekey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"></div>
  172. <br />
  173. <input class = "general_button" type = "submit" value = "Register" name = "regging"/>
  174.  
  175. </center>
  176.  
  177. <br />
  178.  
  179. </form>
  180.  
  181. <?php
  182.  
  183. }
  184.  
  185. if(isset($_SESSION["aged"]) && $_SESSION["aged"] == false){
  186.  
  187. echo "No.";
  188. $_SESSION["aged"] = NULL;
  189.  
  190.  
  191. }
  192.  
  193. ?>
  194. </div>
  195. </div>
  196. </body>
  197. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement