Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <head>
- <title>DibDibCraft | Staff Application</title>
- <style>
- body, html{
- height: 100%;
- width: 100%;
- margin: 0;
- }
- body{
- background-image: url("http://dibdibcraft.com/images/background.png");
- background-repeat: no-repeat;
- background-size: 100% 100%;
- }
- .text{
- font-family: Arial, Helvetica, sans-serif;
- font-size: 13px;
- color: #FFFFFF;
- }
- .bold{
- font-family: Arial, Helvetica, sans-serif;
- font-size: 13px;
- font-weight: bold;
- color: #FFFFFF;
- }
- .header{
- font-family: Arial, Helvetica, sans-serif;
- font-size: 45px;
- font-weight: bolder;
- color: #FFFFFF;
- }
- .header-small{
- font-family: Arial, Helvetica, sans-serif;
- font-size: 25px;
- font-weight: bolder;
- color: #FFFFFF;
- }
- </style>
- </head>
- <body>
- <div class="header" align="center">DibDibCraft | Staff Application Form</div>
- <div class="header-small" align="center">Please fill out this form if you would like to become a staff member on DibDibCraft.<br>
- Please, only fill out the form once, otherwise your application may be ignored or declined!</div>
- <br>
- <br>
- <?php
- date_default_timezone_set('Europe/London');
- $activeFile = fopen("active.txt", "r");
- $active = fread($activeFile,filesize("active.txt"));
- fclose($activeFile);
- echo($active);
- if ($active !== "true"){
- echo("There are no Staff Positions Availible");
- header("Location: http://www.dibdibcraft.com/staff/closed");
- }
- ?>
- <div class="text" align="center">
- <form name="apply" method="post">
- <label>In-Game Name
- <input name="ign" type="text" placeholder="eg; SpinballWhizzer">
- </label>
- <br>
- <br>
- <label>Full Name
- <input type="rname" name="rname" placeholder="eg; Francis Ryley">
- </label>
- <br>
- <br>
- E-Mail Address
- <label>
- <input type="text" name="email">
- </label>
- <br>
- <br>
- <label>Age
- <input name="age" type="text" id="age" placeholder="eg; 13">
- </label>
- <br>
- <font color="#999999"><i> (You must be at least 10 years old to apply for a staff position.)</i></font>
- <br>
- <br>
- <label>Why would you like a Staff Position?<br>
- <textarea name="reason" cols="150" rows="10" id="reason"></textarea>
- </label>
- <br>
- <font color="#999999"><i>Please write, at least, 300 characters for this, to provide a detailed description.</i></font>
- <br>
- <br>
- <label><span>Have you had past Experience as a Staff Member? Yes </span>
- <input name="past_yes" id="past_yes" value="Yes" type="radio" checked>
- </label>
- <label><span> No </span>
- <input name="past_no" id="past_no" value="No" type="radio">
- </label>
- <br>
- <br>
- <label>How long have you been playing Minecraft (in years)?
- <input type="text" name="duration" id="duration" placeholder="eg; 3" width="30">
- </label>
- <br>
- <label>
- <input name="Submit" type="submit" value="Apply">
- </label>
- </form>
- <font color="#FF0000"><? if ($error == true) echo(" *You must fill in ALL fields!"); ?>
- </div>
- <?php
- #CHANGING POST VARS TO REG VARS
- $submit = $_POST['Submit'];
- $ign = strtolower($_POST['ign']);
- $name = $_POST['rname'];
- $email = $_POST['email'];
- $age = $_POST['age'];
- $reason = $_POST['reason'];
- $duration = $_POST['duration'];
- $date = date('Y-m-d');
- if (isset($_POST['past_yes'])){
- $pe = "1";
- }else{
- $pe = "0";
- }
- if ($ign !== "" and $name !== "" and $email !== "" and $age !== "" and $reason !== "" and $duration !== "" and isset($_POST['Submit'])){
- $conn = mysql_connect("localhost", "wadmin", "CENSORED", "DibDibCraft-API");
- $data = "INSERT INTO `custom_staffapp`
- (`ign`,`name`,`email`,`age`,`reason`,`past`,`duration`,`date`)
- VALUES('$ign','$name','$email','$age','$reason','$pe','$duration', '$date')";
- mysql_query($conn, $data);
- mysql_close($conn);
- sleep(0.5);
- $ign = "";
- $name = "";
- $email = "";
- $age = "";
- $reason = "";
- $duration = "";
- $pe = "";
- header("Location: http://www.dibdibcraft.com/staff/apply_done");
- }else $error = true;
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement