Update Script.php

Removed the passport number entries from the code.
SIMPLICITY_link
enockkays 2020-12-25 22:41:35 +08:00 committed by GitHub
parent 088ab3d0fa
commit 1d2192e22e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -314,7 +314,6 @@ if (!empty($_POST["frm_reset_password"])) {
// ############################### CREATE Lecturer/TA USER ################################## // ############################### CREATE Lecturer/TA USER ##################################
if (!empty($_POST["frm_createlecturrer"])) { if (!empty($_POST["frm_createlecturrer"])) {
$email=mysqli_real_escape_string($con,$_POST["email"]); $email=mysqli_real_escape_string($con,$_POST["email"]);
$passport=mysqli_real_escape_string($con,$_POST["passport"]);
$fullname=mysqli_real_escape_string($con,$_POST["fullname"]); $fullname=mysqli_real_escape_string($con,$_POST["fullname"]);
$type=mysqli_real_escape_string($con,$_POST["type"]); $type=mysqli_real_escape_string($con,$_POST["type"]);
$password=$passport; $password=$passport;
@ -326,8 +325,8 @@ if (!empty($_POST["frm_createlecturrer"])) {
$_SESSION["info_Admin_Users"]="Email adress : ".$email." is already in use."; $_SESSION["info_Admin_Users"]="Email adress : ".$email." is already in use.";
header("Location: Admin.php"); header("Location: Admin.php");
} }
$sql= "INSERT INTO `users_table`(`Email`, `Password`, `Full_Name`, `UserType`, `Passport_Number`) VALUES " $sql= "INSERT INTO `users_table`(`Email`, `Password`, `Full_Name`, `UserType`) VALUES "
. "('$email','$password','$fullname','$type','$passport')"; . "('$email','$password','$fullname','$type')";
if ($con->query($sql) === TRUE) { if ($con->query($sql) === TRUE) {
$_SESSION["info_Admin_Users"]=$type." user Created successfully : email ".$email." and $password as Password."; $_SESSION["info_Admin_Users"]=$type." user Created successfully : email ".$email." and $password as Password.";
@ -515,7 +514,7 @@ function checksize($file)
{ {
$result = $_FILES["$file"]['size']/(1024*1024); $result = $_FILES["$file"]['size']/(1024*1024);
if($result > 3) if($result > 1)
{ {
return FALSE; return FALSE;
} }