File manager - Edit - /home/autoph/public_html/portal/includes/addnewuser.php
Back
<html> <head> <title>FACE-IN</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/screen_white.css"> <link rel="stylesheet" href="ajs/vendors/jQueryUI/jquery-ui.css"> <script src="ajs/vendors/jQueryUI/jquery-1.12.4.js"></script> <script src="ajs/vendors/jQueryUI/jquery-ui.js"></script> </head> <?php $accessType = $user_data['account_type']; if($accessType != 'ADMIN'){ secalert_new(); exit(); } if(isset($_POST['SaveRecord'])){ $fname =$_POST['fname']; $lname =$_POST['lname']; $uname =$_POST['uname']; $upassA =$_POST['UPassA']; $upassB =$_POST['UPassB']; $access =$_POST['access']; $encPassA = md5($upassA); $encPassB = md5($upassB); $sql="INSERT INTO `c_users` (`u_id`, `u_fname`,`u_lname`,`u_name`,`u_password`,`u_password2`,`u_status`,`u_locked`,`u_locked_count`,`account_type` ) VALUES('','$fname','$lname','$uname','$encPassA','$encPassB','1','0','0','$access')"; if(!mysql_query($sql)){ die('Error: ' . mysql_error()); }else{ $tID = mysql_result(mysql_query("SELECT `id` FROM `talents_profile` WHERE `lname`='$lname' AND `fname`='$fname' AND `pemail`='$email' AND `mobile`='$mobile'"),0); echo "<div class='ContinueMSG'>"; echo " <h3 class='lightGradient' style='width:99%;font-family:Calibri Light;font-size:18px;font-weight:bold;padding-left:5px;padding-top:2px;'>NEW RECORD SAVED...</h3>"; echo "<div style='top:3px;left:95.5%;position:absolute;z-index:3;background:transparent'> <a href='main_new.php?view=100&sid=S8&sview=100&tab=0#id-0' > <center>X</center> </a> </div>"; echo "<center> <p style='font-family:Calibri Light;font-size:14px;color:#0B610B;font-weight:bold;padding-top:50px'>New User has been created... Thank you!</a> </p></center>"; echo "<center><br><a href='main_new.php?view=100&sid=S8&sview=100&tab=0#id-0'><input type='button' class='button' name='Exit' value='Close' style='width:80px;'></a></center>"; echo "</div>"; } } ?> <body> <center> <div style='width:97%;border:1px solid white;height:25px;text-align:left;padding-left:10px;padding-top:5px;font-family:Calibri;font-size:14px;color:#000;text-shadow:1px 1px 5px #fff' class='plainBlue'>USER'S INFORMATION <div style='position:relative;float:right;font-family:Calibri;font-size:12px;margin-right:10px'> Page 1 of 1</div> </div> <div style='width:97.5%;border:1px solid white;height:350px;padding:5px'> <form action='' method='POST'> <table style='width:100%;border:1px solid white'> <tr style='background:white;border:1px solid white'> <td valign='top' style='background:white;border:1px solid white;border-right:1px solid lightgray;width:70%'> <div align='left' class="form-group" style='padding:10px'> <p style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;color:black;font-weight:bold'> <ABBR title='LAST NAME'><input REQUIRED class='textbox' type="text" placeholder="Last Name" name="lname" style='background:white;width:100%;margin-top:5px'></ABBR> </p> </div> <div align='left' class="form-group" style='padding:10px'> <p style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;color:black;font-weight:bold'> <ABBR title='FIRST NAME'><input REQUIRED class='textbox' type="text" placeholder="First Name" name="fname" style='background:white;width:100%;margin-top:5px'></ABBR> </p> </div> <div align='left' class="form-group" style='padding:10px'> <p style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;color:black;font-weight:bold'> <ABBR title='USERNAME'><input REQUIRED class='textbox' type="text" placeholder="USERNAME" name="uname" style='background:white;width:100%;margin-top:5px'></ABBR> </p> </div> <div align='left' class="form-group" style='padding:10px'> <p style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;color:black;font-weight:bold'> <ABBR title='PASSWORD'><input REQUIRED class='textbox' type="password" placeholder="PASSWORD" name="UPassA" style='background:white;width:100%;margin-top:5px'></ABBR> </p> <p style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;color:black;font-weight:bold'> <ABBR title='PASSWORD'><input REQUIRED class='textbox' type="password" placeholder="CONFIRM PASSWORD" name="UPassB" style='background:white;width:100%;margin-top:5px'></ABBR> </p> </div> <div align='left' class="form-group" style='padding:10px'> <p style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;color:black;font-weight:bold;'> <select name='access' style='text-align:bottom;line-height:80%;font-family:Calibri Light;font-size:12px;padding-left:0px;font-weight:bold;background:white;width:100%;margin-top:5px'> <option>ADMIN</option> <option>USER</option> <option>VIEW</option> <option>GUEST</option> </select> </p> </div> </td> </tr> </table> <div align='right' class="form-group" style='padding:10px'> <input type='submit' class='submit' name='SaveRecord' value='Save Record'> <input type='reset' class='submit' name='Clear' value='Clear'> <a href='main_new.php?view=100&sid=S8&sview=100&tab=0#id-0'><input type='button' class='submit' name='Exit' value='Exit'></a> </div> </form> </div> </center> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings