Server IP : 162.240.98.243 / Your IP : 18.223.170.223 Web Server : Apache System : Linux server.bti.yaw.mybluehostin.me 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : btiyawmy ( 1003) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/btiyawmy/public_html/login.easenup.in/subadmin/ |
Upload File : |
<?php session_start(); require_once('dbconnection.php'); include('menu.php'); $username = "Ventexint"; $apikey = "075edfbd-e93a-41f6-b3a2-683193fe60c0"; $sendername = "HANDGO"; include('frontmenu.php'); if(isset($_POST['signup'])) { $adminid=$_POST['adminid']; $name=$_POST['name']; $user_id=$_POST['user_id']; $numbers=$_POST['numbers']; $password=$_POST['password']; $user_otp = rand(100000, 999999); $user_activation_code = md5(rand()); $msg=mysqli_query($con,"insert into subadmin(adminid,name,user_id,numbers,password,user_otp,numbers_status,user_activation_code) values('$adminid','$name','$user_id','$numbers','$password','$user_otp','not verified','$user_activation_code')"); $message="Hello Front $name, $user_otp is the OTP to complete your Registration with Ease’n’ Up."; $message=urlencode($message); $sms ="http://sms.champaksworld.com/sendSMS?username=Ventexint&message=$message&sendername=HANDGO&smstype=TRANS&numbers=$numbers&apikey=075edfbd-e93a-41f6-b3a2-683193fe60c0"; //$sms=urlencode($sms); $result=file_get_contents($sms); //echo $result; if($msg) { echo "<script>window.location='subadmin_verify.php?code=$user_activation_code';</script>;</script>"; } } ?> <!DOCTYPE html> <html lang="en"> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <title> Pt Signup</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="new2.css"> </head> <body> <div class="content-wrapper"> <section class="content-header"> <form name="signup" method="post" name="submit"> <h3><i class="fa fa-angle-right"></i> Registration Sub Admin Access </h3> <div class="account-details"> </div> <?php $sqlpatient= "SELECT * FROM admin WHERE adminid='$_GET[adminid]'"; $qsqlpatient = mysqli_query($con,$sqlpatient); while($rspatient=mysqli_fetch_array($qsqlpatient)) { echo "<input type='hidden' name='adminid' id='adminid' value='$rspatient[adminid]'></td>"; } ?> <label for="item"> Department<span>*</span></label> <input class="input100" type="text" name="Department" placeholder="Enter your Department"> <label for="item"> Name<span>*</span></label> <input class="input100" type="text" name="Name" placeholder="Enter your Name"> <label for="item"> User Id<span>*</span></label> <input class="input100" type="text" name="user_id" placeholder="Enter Your Email id"> <label for="item">Mobile Number<span>*</span></label> <input class="input100" type="text" name="numbers" placeholder="Enter Your Email id"> <label for="item"> Password<span>*</span></label> <input class="input100" type="text" name="password" placeholder="enter your password"> <button type="submit" name="signup">Submit </button> </form> </body> </html>