����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 162.0.232.25 / Your IP : 18.219.119.163 Web Server : LiteSpeed System : Linux premium276.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : kwacuqig ( 988) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/kwacuqig/learn.skilltainment.org/ |
Upload File : |
<?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>SKILLTAINMENT - Sign Up</title> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta content="" name="keywords"> <meta content="" name="description"> <!-- Favicon --> <link href="img/favicon.html" rel="icon"> <!-- Google Web Fonts --> <link rel="preconnect" href="https://fonts.googleapis.com/"> <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Roboto:wght@500;700&display=swap" rel="stylesheet"> <!-- Libraries Stylesheet --> <link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet"> <link href="lib/tempusdominus/css/tempusdominus-bootstrap-4.min.css" rel="stylesheet" /> <!-- Sweet Alert --> <script src="js/sweetalert.min.js"></script> <!-- Customized Bootstrap Stylesheet --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- Template Stylesheet --> <link href="css/style.css" rel="stylesheet"> <!-- Icon --> <link rel="icon" type="image/png" href="./img/logo.png" sizes="32x32"> <!-- aos animations --> <link rel="stylesheet" href="css/aos.css"> </head> <body> <div class="container-fluid position-relative d-flex p-0"> <?php include 'php/connect.php'; if (isset($_POST['submit'])) { $fname = mysqli_real_escape_string($conn, htmlentities($_POST['fname'])); $lname = mysqli_real_escape_string($conn, htmlentities($_POST['lname'])); $email = mysqli_real_escape_string($conn, htmlentities($_POST['email'])); $mobile = mysqli_real_escape_string($conn, htmlentities($_POST['mobile'])); $pwd = mysqli_real_escape_string($conn, htmlentities(md5($_POST['pwd']))); $pwd_co = mysqli_real_escape_string($conn, htmlentities(md5($_POST['pwd_co']))); $_SESSION['fname'] = $fname; $_SESSION['lname'] = $lname; $_SESSION['email'] = $email; $_SESSION['mobile'] = $mobile; $query = "SELECT * FROM `users` WHERE `email`='$email'"; $run = mysqli_query($conn, $query) or die(mysqli_error($conn)); $count = mysqli_num_rows($run); if ($count == 0) { if ($pwd == $pwd_co) { if (strlen($_POST['pwd']) >= 5) { $query2 = "INSERT INTO `users`(`email`,`mobile`,`password`,`firstname`,`surname`) VALUES('$email','$mobile','$pwd','$fname','$lname')"; if ($run2 = mysqli_query($conn, $query2)) { //destroying all three sessions unset($_SESSION['fname'], $_SESSION['lname'], $_SESSION['email'], $_SESSION['mobile']); ?> <script type="text/javascript"> swal("SUCCESS", "<?php echo "$fname $lname"; ?> was successfully registered", "success"); </script> <?php } else { die(mysqli_error($conn)); } } else { ?> <script type="text/javascript"> swal("WARNING", "Password is too short", "warning"); </script> <?php } } else { ?> <script type="text/javascript"> swal("WARNING", "Passwords do not match", "warning"); </script> <?php } } else { unset($_SESSION['email']); ?> <script type="text/javascript"> swal("ERROR", "<?php echo $email; ?> is already registered", "error"); </script> <?php } } ?> <!-- Sign Up Start --> <div class="container-fluid"> <div class="row h-100 align-items-center justify-content-center" style="min-height: 100vh;"> <div class="col-12 col-sm-8 col-md-6 col-lg-5 col-xl-4"> <div class="bg-secondary rounded-3 p-4 p-sm-5 my-4 mx-3" data-aos="zoom-in" data-aos-duration="500"> <div class="d-flex align-items-center justify-content-between mb-3" data-aos="flip-up" data-aos-duration="500" data-aos-delay="200"> <a href="home" class=""> <img src="./img/logo.png" alt="LOGO" class="logo"> </a> <h3 class="h5">Sign Up</h3> </div> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"> <div class="form-floating mb-3" data-aos="flip-left" data-aos-duration="500" data-aos-delay="300"> <input type="text" name="fname" class="form-control" id="floatingText" placeholder="First Name" value="<?php echo isset($_SESSION['fname']) ? $_SESSION['fname'] : ''; ?>" required> <label for="floatingText">First Name</label> </div> <div class="form-floating mb-3" data-aos="flip-left" data-aos-duration="500" data-aos-delay="400"> <input type="text" name="lname" class="form-control" id="floatingText" placeholder="Last Name" value="<?php echo isset($_SESSION['lname']) ? $_SESSION['lname'] : ''; ?>" required> <label for="floatingText">Last Name</label> </div> <div class="form-floating mb-3" data-aos="flip-left" data-aos-duration="500" data-aos-delay="500"> <input type="email" name="email" class="form-control" id="floatingInput" placeholder="Email Address" value="<?php echo isset($_SESSION['email']) ? $_SESSION['email'] : ''; ?>" required> <label for="floatingInput">Email Address</label> </div> <div class="form-floating mb-3" data-aos="flip-left" data-aos-duration="500" data-aos-delay="600"> <input type="text" name="mobile" class="form-control" id="floatingInput" placeholder="Mobile Number" maxlength="15" value="<?php echo isset($_SESSION['mobile']) ? $_SESSION['mobile'] : ''; ?>" required> <label for="floatingInput">Mobile Number</label> </div> <div class="form-floating mb-4" data-aos="flip-left" data-aos-duration="500" data-aos-delay="700"> <input type="password" name="pwd" class="form-control" id="floatingPassword" placeholder="Password" required> <label for="floatingPassword">Password</label> </div> <div class="form-floating mb-4" data-aos="flip-left" data-aos-duration="500" data-aos-delay="800"> <input type="password" name="pwd_co" class="form-control" id="floatingPassword" placeholder="Confirm Password" required> <label for="floatingPassword">Confirm Password</label> </div> <button type="submit" name="submit" class="btn btn-primary py-3 w-100 mb-4" data-aos="flip-right" data-aos-duration="500" data-aos-delay="900">Sign Up</button> <p class="text-center mb-0">Already have an Account? <a href="signin">Sign In</a></p> </form> </div> </div> </div> </div> <!-- Sign Up End --> </div> <!-- JavaScript Libraries --> <script src="js/jquery-3.3.1.min.js"></script> <script src="js/bootstrap.bundle.min.js"></script> <script src="lib/chart/chart.min.js"></script> <script src="lib/easing/easing.min.js"></script> <script src="lib/waypoints/waypoints.min.js"></script> <script src="lib/owlcarousel/owl.carousel.min.js"></script> <script src="lib/tempusdominus/js/moment.min.js"></script> <script src="lib/tempusdominus/js/moment-timezone.min.js"></script> <script src="lib/tempusdominus/js/tempusdominus-bootstrap-4.min.js"></script> <script src="js/aos.js"></script> <script> AOS.init({}); </script> <!-- Template Javascript --> <script src="js/main.js"></script> </body> </html>