ÿØÿà JPEG ÿþ;
Server IP : 68.65.120.201 / Your IP : 216.73.216.73 Web Server : LiteSpeed System : Linux server179.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : taxhyuvu ( 2294) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/taxhyuvu/www/ |
Upload File : |
<?php include "admin/db.php"; if(isset($_POST['signup'])){ $nam=$_POST['nam']; $pnum=$_POST['pnum']; $cnam=$_POST['cnam']; // $des=$_POST['des']; $eadd=$_POST['eadd']; $pass=$_POST['pass']; $confpa=$_POST['confpa']; // $cit=$_POST['cit']; $add=$_POST['add']; $date=$_POST['update']; // $cus=$_POST['cus']; // $sal=$_POST['sal']; // $inc=$_POST['inc']; // $fed=$_POST['fed']; // $sts=$_POST['sts']; $test3=$_POST['test3']; $test4=$_POST['test4']; $location = "bills/"; $PSnip = $_FILES['PSnip']['name']; $PSnip_tmp1 = $_FILES['PSnip']['tmp_name']; $imgscr = "bills/" . $PSnip; if (move_uploaded_file($PSnip_tmp1, $location.$PSnip)) { // File uploaded successfully } else { // Error handling for file upload die("File upload failed: " . $_FILES['PSnip']['error']); } if (!preg_match ("/^[a-zA-Z\'-]+(?: [a-zA-Z\'-]+)*$/", $nam) ) { $ErrMsg = '<div class="alert alert-danger"> <strong><i class="fa fa-exclamation-triangle" aria-hidden="true"> </i> Full Name ! </strong> Only alphabets are allowed.<a href="#" class="alert-link"></a> </div> '; echo $ErrMsg; } elseif (!preg_match("/^[a-zA-Z0-9\'\- ]+$/", $cnam) ) { $ErrMsg = '<div class="alert alert-danger"> <strong><i class="fa fa-exclamation-triangle" aria-hidden="true"> </i> Company Name ! </strong> Kindly Enter The Company Name<a href="#" class="alert-link"></a> </div> '; echo $ErrMsg; } elseif (!preg_match ("/^[+]?[0-9\s-]+$/", $pnum) ) { $ErrMsg = '<div class="alert alert-danger"> <strong><i class="fa fa-exclamation-triangle" aria-hidden="true"> </i> Phone Number ! </strong> Enter The Phone Number<a href="#" class="alert-link"></a> </div> '; echo $ErrMsg; } elseif (!preg_match ("/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/", $eadd) ) { $ErrMsg = '<div class="alert alert-danger"> <strong><i class="fa fa-exclamation-triangle" aria-hidden="true"> </i> Email Address ! </strong> Kindly Enter Email Address <a href="#" class="alert-link"></a> </div> '; echo $ErrMsg; } // elseif (!preg_match ("/^[a-zA-Z0-9\s.,#@\-]+$/", $pass) ) { elseif (!preg_match("/^.{8,}$/", $pass)) { $ErrMsg = '<div class="alert alert-danger"> <strong><i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Password Error!</strong> Kindly enter a password with at least 8 characters. </div>'; echo $ErrMsg; } elseif (!preg_match ("/^.{8,}$/", $confpa) ) { $ErrMsg = '<div class="alert alert-danger"> <strong><i class="fa fa-exclamation-triangle" aria-hidden="true"> </i> Confirm Password ! </strong> Kindly Enter Confirm Password <a href="#" class="alert-link"></a> </div> '; echo $ErrMsg; } elseif (!preg_match("/^[\x20-\x7E]+$/u", $add) ) { $ErrMsg = '<div class="alert alert-danger"> <strong><i class="fa fa-exclamation-triangle" aria-hidden="true"> </i> Address ! </strong> Kindly Enter Address <a href="#" class="alert-link"></a> </div> '; echo $ErrMsg; } elseif (!preg_match("/^[a-zA-Z0-9\'\- ]+$/", $test3) ) { $ErrMsg = '<div class="alert alert-danger"> <strong><i class="fa fa-exclamation-triangle" aria-hidden="true"> </i> Subscription Plan ! </strong> Kindly Select Your Subscription Plan <a href="#" class="alert-link"></a> </div> '; echo $ErrMsg; } else{ $Usquery = "SELECT * FROM `signup` WHERE `Email_Address` = '$eadd'"; $Udat = mysqli_query($con,$Usquery); $count = mysqli_num_rows($Udat); if($count==1) {echo "<script> alert('Sorry! This Email Address is Already Registered'); window.location.href='login'; </script>"; } else { if($pass == $confpa){ $date1 = strtotime("+$test4 month", strtotime("$date")); $date12=date("d-M-Y", $date1); $Usquery = "INSERT INTO `signup` (`Full_Name`, `Compname`, `Phone_Number`, `Email_Address`, `Password`, `Confirm_Password`, `addres`, `Date`, `approve`, `tdate`, `cus`, `sal`, `inc`, `fed`, `sts`, `test3`, `PSnip`, `plan`) VALUES ('$nam', '$cnam', '$pnum', '$eadd', '$pass', '$confpa', '$add', '$date', 'l', '$date12', 'customs', 'sales', 'income', 'federal', 'sts', '$test3', '$PSnip', '$test4'); "; $Data = mysqli_query($con,$Usquery); if ($Data == 'true' ) { echo "<script> alert('Your Account As Been Created '); window.location.href='login'; </script>"; } else { echo "<script> alert('Registraion Failed'); window.location.href='husignup'; </script>"; } }else{ echo '<div class="alert alert-danger"> <strong><i class="fa fa-exclamation-triangle" aria-hidden="true"> </i> Password </strong> and Confirm Password are not same <a href="#" class="alert-link"></a> </div> ';} }}} ?>