register.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. session_start();
  3. if(isset($_SESSION['hostz-user']) && isset($_SESSION['hostz-passwd'])) { header("Location: ctrl.php"); }
  4. //$header = file_get_contents("header.txt");
  5. //echo $header;
  6. //$page_title = "Drive";
  7. //$indir = "true";
  8. //include_once("../data/header.php");
  9. include("config.php");
  10. include_once("header.php");
  11. if(isset($_GET['error']))
  12. {
  13. echo "<div class='ptitle'>$title: $desc</div>\n";
  14. $error = $_GET['error'];
  15. if($error=="1") { echo "Error: No username provided."; }
  16. if($error=="2") { echo "Error: No password provided."; }
  17. if($error=="3") { echo "Error: Passwords provided did not mach."; }
  18. if($error=="4") { echo "Error: Username in use."; }
  19. //if($error=="5") { echo "Error: Invalid validation code"; }
  20. if($error=="6") { echo "Error: No email provided."; }
  21. if($error=="7") { echo "Error: Not a valid email address."; }
  22. if($error=="8") { echo "Error: Register form not completely filled out."; }
  23. if($error=="9") { echo "Error: VPS package not available at this time."; }
  24. if($error=="10") { echo "Error: The provided email has already been registered with EEZE Host."; }
  25. }
  26. else
  27. {
  28. echo "<div class='ptitle'>$title: $desc ~ register</div>\n";
  29. print <<<EOD
  30. <div class="form">
  31. <form method="post" action="create.php">
  32. <table>
  33. <tr>
  34. <td>Username:</td>
  35. <td><input type="text" name="filezusername"></td>
  36. </tr>
  37. <tr>
  38. <td>Password:</td>
  39. <td><input type="password" name="filezpassword"></td>
  40. </tr>
  41. <tr>
  42. <td>Confirm Password:</td>
  43. <td><input type="password" name="filezpasswordagain"></td>
  44. </tr>
  45. <tr>
  46. <td>Terms Of Service:</td>
  47. <td>By signing up for this service, you are <br>agreeing to the <a href='terms.php'>Terms Of Service</a></td>
  48. </tr>
  49. <tr>
  50. <td>Go!</td>
  51. <td><input type="submit" value="Get Your Webspace"></td>
  52. </tr>
  53. </table>
  54. </form>
  55. </div>
  56. EOD;
  57. }
  58. //include_once("../data/footer.php");
  59. $footer = file_get_contents("footer.txt");
  60. echo $footer;
  61. ?>