Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include 'config/declare.php'; ?>
- <?php include 'config/classesGetter.php'; ?>
- <?php $universal = new universal; ?>
- <?php if ($universal->isLoggedIn()) { header('Location: '.DIR); } ?>
- <?php
- $title = "Signup | TregolApp";
- $keywords = "TregolApp, Development quotes, development social network, capture, share, login, signup, social media, developers, programming, websites, games, signup";
- $desc = "Create your TregolApp account for free and start the technical and scientific connection!";
- ?>
- <?php include 'index_include/custom_header.php'; ?>
- <div class="container">
- <div class="sign-up">
- <div class="content">
- <h2> Sign up for free! </h2>
- <p>Get up and running with Ionic in minutes.</p>
- </div>
- <div class="form">
- <form class="sign_up fa" id="sign_up" action="" method="post">
- <input type="text" name="s_username" value="" autocomplete="off" placeholder="Username" class="s_username" spellcheck="false" mssg="" maxlength="30" required autofocus> <br>
- <div class="username_checker u_c">
- <span class="checker_text">username not available</span>
- <span class="checker_icon">
- <i class="fa fa-frown-o" aria-hidden="true"></i>
- </span>
- </div>
- <input type="text" name="s_first_name" value="" autocomplete="off" placeholder="First name" class="s_firstname" spellcheck="false" maxlength="20" required> <br>
- <input type="text" name="s_surname" value="" autocomplete="off" placeholder="Surname" class="s_surname" spellcheck="false" maxlength="20" required> <br>
- <input type="email" name="s_email" value="" autocomplete="off" placeholder="Email" class="s_email" spellcheck="false" maxlength="52" required> <br>
- <input type="password" name="s_password" value="" autocomplete="off" placeholder="Password" class="s_password" maxlength="32" spellcheck="false" required id="password"> <br>
- <input type="submit" name="s_submit" value="Create Account" class="s_submit">
- </form>
- </div>
- <div class="privacy">
- <p> By signing up you agree to our <a href="#">Terms of services</a> and <br> <a href="#">Privacy Policy</a> </p>
- <p style="margin-top: 4%;"> Already have an account? <a href="login">Log in.</a> </p>
- </div>
- </div>
- <div class="section2">
- <div class="text">
- <h1>With an Ionic account you can...</h1>
- <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>
- <p> <img src="public/images/auth/success.png" style=" float: left; margin-right: 10px;" width="20" height="20"> Create Unlimited Ionic apps</p>
- <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>
- <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>
- <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>
- </div>
- </div>
- <div class="notify">
- <span></span>
- </div>
- </div>
- <div class="overlay-2"></div>
- <?php include 'index_include/index_footer.php'; ?>
- <script type="text/javascript">
- $(function(){
- $('.s_username').username_checker();
- $('input[type="password"]').psswrd_strength();
- $('form').on('submit', (function(e){
- e.preventDefault();
- $('.s_submit').prop('disabled', true);
- $('.overlay-2').show();
- var username = $('.s_username').val();
- var firstname = $('.s_firstname').val();
- var surname = $('.s_surname').val();
- var email = $('.s_email').val();
- var password = $('.s_password').val();
- $.ajax({
- url: DIR+"/ajaxify/ajax_requests/register_requests.php",
- method: 'POST',
- cache: false,
- data: {
- username: username,
- firstname: firstname,
- surname: surname,
- email: email,
- password: password,
- },
- success: function(data){
- console.log(data);
- if (data == "Successfull") {
- console.log('yepp');
- $('.s_submit').prop('disabled', true);
- $('.s_submit').prop('value', 'Redirecting..');
- $('.overlay-2').show();
- // window.location.href = DIR+"/success";
- window.location.href = DIR+"/thanks";
- } else {
- $('.s_submit').prop('disabled', false);
- $('.overlay-2').hide();
- $('.notify').notify({ value: 'Hello ' + username + '!!' });
- }
- }
- });
- }));
- $('#show_psswrd').togglePassword({
- input: document.getElementById('password')
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement