Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //Start Session
- session_start();
- //Set current year
- $currentyear = date("Y");
- ?>
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="../mechanics/segments_container.css"/>
- <script src='https://www.google.com/recaptcha/api.js'></script>
- </head>
- <body>
- <div class = "container">
- <div class = "titlebar">
- Registration
- </div>
- <div class = "inner_container">
- <?php
- if(!isset($_SESSION["aged"])){
- ?>
- <form action="../mechanics/register.php" method="post">
- <div class = "inside_container">
- <div class = "titlebar">
- Date Of Birth
- </div>
- <div class = "inside_inner_container">
- <br />
- <center>
- You can choose to hide your date of birth after<br />
- you've successfully registered.
- </center>
- <br />
- <center>
- <font style="padding-right:15px;">Day:</font>
- <font style="padding-right:10px;">Month:</font>
- <font style="padding-right:15px;">Year:</font>
- </center>
- <center>
- <select name = "day">
- <?php
- for($c = 1;$c < 32; $c++){
- echo "<option value = '$c'>$c</option>";
- }
- ?>
- </select>
-
- <select name = "month">
- <?php
- for($b = 1;$b < 13; $b++){
- echo "<option value = '$b'>$b</option>";
- }
- ?>
- </select>
-
- <select name = "year">
- <?php
- for($a = $currentyear;$a > ($currentyear - 100); $a--){
- echo "<option value = '$a'>$a</option>";
- }
- ?>
- </select>
- </center>
- <br />
- </div>
- </div>
- <center>
- <input class = "general_button" type = "submit" value = "Proceed" name="aging"/>
- </center>
- </form>
- <?php
- }
- if($_SESSION["aged"] == true){
- ?>
- <form target="../mechanics/register.php" method = "post">
- <div class = "inside_container">
- <div class = "titlebar">
- Required Information
- </div>
- <div class = "inside_inner_container">
- <br />
- <center>
- <table style="color:#CCCCCD">
- <tr>
- <td style="text-align:right;">Username:</td><td width="50px"></td><td><input type = "text" name = "username"/></td>
- </tr>
- <tr>
- <td style="text-align:right;">E-Mail:</td><td width="50px"></td><td><input type = "text" name = "email"/></td>
- </tr>
- <tr>
- <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>
- </tr>
- <tr>
- <td style="text-align:right;">Repeat:</td><td width="50px"></td><td><input type = "password" name = "passwordtwo"/></td>
- </tr>
- </table>
- </center>
- </div>
- </div>
- <div class = "inside_container">
- <div class = "titlebar">
- Optional Information
- </div>
- <div class = "inside_inner_container">
- <br />
- <center>
- <table style="color:#CCCCCD">
- <tr>
- <td style="text-align:right;">Referred By:</td><td width="50px"></td><td><input type = "text" name = "referred"/></td>
- </tr>
- <tr>
- <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>
- </tr>
- <tr>
- <td style="text-align:right;">Icq:</td><td width="50px"></td><td><input type = "text" name = "icq"/></td>
- </tr>
- <tr>
- <td style="text-align:right;">Jabber:</td><td width="50px"></td><td><input type = "text" name = "jabber"/></td>
- </tr>
- <tr>
- <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>
- </tr>
- </table>
- </center>
- <br />
- </div>
- </div>
- <center>
- <div class="g-recaptcha" data-sitekey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"></div>
- <br />
- <input class = "general_button" type = "submit" value = "Register" name = "regging"/>
- </center>
- <br />
- </form>
- <?php
- }
- if(isset($_SESSION["aged"]) && $_SESSION["aged"] == false){
- echo "No.";
- $_SESSION["aged"] = NULL;
- }
- ?>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement