Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.93 KB | None | 0 0
  1. <?php include 'config/declare.php'; ?>
  2. <?php include 'config/classesGetter.php'; ?>
  3. <?php $universal = new universal; ?>
  4. <?php if ($universal->isLoggedIn()) { header('Location: '.DIR); } ?>
  5. <?php
  6. $title = "Signup | TregolApp";
  7. $keywords = "TregolApp, Development quotes, development social network, capture, share, login, signup, social media, developers, programming, websites, games, signup";
  8. $desc = "Create your TregolApp account for free and start the technical and scientific connection!";
  9. ?>
  10. <?php include 'index_include/custom_header.php'; ?>
  11.  
  12. <div class="container">
  13. <div class="sign-up">
  14. <div class="content">
  15. <h2> Sign up for free! </h2>
  16. <p>Get up and running with Ionic in minutes.</p>
  17. </div>
  18. <div class="form">
  19. <form class="sign_up fa" id="sign_up" action="" method="post">
  20. <input type="text" name="s_username" value="" autocomplete="off" placeholder="Username" class="s_username" spellcheck="false" mssg="" maxlength="30" required autofocus> <br>
  21. <div class="username_checker u_c">
  22. <span class="checker_text">username not available</span>
  23. <span class="checker_icon">
  24. <i class="fa fa-frown-o" aria-hidden="true"></i>
  25. </span>
  26. </div>
  27. <input type="text" name="s_first_name" value="" autocomplete="off" placeholder="First name" class="s_firstname" spellcheck="false" maxlength="20" required> <br>
  28. <input type="text" name="s_surname" value="" autocomplete="off" placeholder="Surname" class="s_surname" spellcheck="false" maxlength="20" required> <br>
  29. <input type="email" name="s_email" value="" autocomplete="off" placeholder="Email" class="s_email" spellcheck="false" maxlength="52" required> <br>
  30. <input type="password" name="s_password" value="" autocomplete="off" placeholder="Password" class="s_password" maxlength="32" spellcheck="false" required id="password"> <br>
  31. <input type="submit" name="s_submit" value="Create Account" class="s_submit">
  32. </form>
  33. </div>
  34. <div class="privacy">
  35. <p> By signing up you agree to our <a href="#">Terms of services</a> and <br> <a href="#">Privacy Policy</a> </p>
  36. <p style="margin-top: 4%;"> Already have an account? <a href="login">Log in.</a> </p>
  37. </div>
  38. </div>
  39. <div class="section2">
  40. <div class="text">
  41. <h1>With an Ionic account you can...</h1>
  42. <p> <img src="public/images/auth/success.png" style=" float: left; margin-right: 10px;" width="20" height="20"> Preview, share, and test apps live in Ionic View </p>
  43. <p> <img src="public/images/auth/success.png" style=" float: left; margin-right: 10px;" width="20" height="20"> Create Unlimited Ionic apps</p>
  44. <p> <img src="public/images/auth/success.png" style=" float: left; margin-right: 10px;" width="20" height="20"> Compile native builds for any OS, from any OS</p>
  45. <p> <img src="public/images/auth/success.png" style=" float: left; margin-right: 10px;" width="20" height="20"> Push hot code updates to your app remotely</p>
  46. <p> <img src="public/images/auth/success.png" style=" float: left; margin-right: 10px;" width="20" height="20"> Prototype and rapidly develop apps visually with Creator </p>
  47. </div>
  48. </div>
  49.  
  50. <div class="notify">
  51. <span></span>
  52. </div>
  53.  
  54. </div>
  55.  
  56. <div class="overlay-2"></div>
  57. <?php include 'index_include/index_footer.php'; ?>
  58.  
  59. <script type="text/javascript">
  60. $(function(){
  61. $('.s_username').username_checker();
  62. $('input[type="password"]').psswrd_strength();
  63. $('form').on('submit', (function(e){
  64. e.preventDefault();
  65. $('.s_submit').prop('disabled', true);
  66. $('.overlay-2').show();
  67. var username = $('.s_username').val();
  68. var firstname = $('.s_firstname').val();
  69. var surname = $('.s_surname').val();
  70. var email = $('.s_email').val();
  71. var password = $('.s_password').val();
  72. $.ajax({
  73. url: DIR+"/ajaxify/ajax_requests/register_requests.php",
  74. method: 'POST',
  75. cache: false,
  76. data: {
  77. username: username,
  78. firstname: firstname,
  79. surname: surname,
  80. email: email,
  81. password: password,
  82. },
  83. success: function(data){
  84. console.log(data);
  85. if (data == "Successfull") {
  86. console.log('yepp');
  87. $('.s_submit').prop('disabled', true);
  88. $('.s_submit').prop('value', 'Redirecting..');
  89. $('.overlay-2').show();
  90. // window.location.href = DIR+"/success";
  91. window.location.href = DIR+"/thanks";
  92. } else {
  93. $('.s_submit').prop('disabled', false);
  94. $('.overlay-2').hide();
  95. $('.notify').notify({ value: 'Hello ' + username + '!!' });
  96. }
  97. }
  98. });
  99. }));
  100. $('#show_psswrd').togglePassword({
  101. input: document.getElementById('password')
  102. });
  103. });
  104. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement