From 946d0ec7aab167cb281c7ed8d38c3bcd58f35f2c Mon Sep 17 00:00:00 2001 From: Tanaka Sandati Date: Sun, 31 May 2020 14:09:17 +0800 Subject: [PATCH 1/3] Fixed spelling mistakes and grammatical errors. --- Admin.php | 4 ++-- Header.php | 2 +- Script.php | 22 +++++++++++----------- Student.php | 2 +- SubmitLab.php | 2 +- recover_password.php | 2 +- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Admin.php b/Admin.php index 3c6ca89..bdee263 100644 --- a/Admin.php +++ b/Admin.php @@ -316,7 +316,7 @@ - + diff --git a/Script.php b/Script.php index 5a84f98..d5bfbe5 100644 --- a/Script.php +++ b/Script.php @@ -40,7 +40,7 @@ // Just removed this condition from the above command and (Passport_Number='$passport' or Passport_Number = '') if(mysqli_num_rows($result)==0) { - $_SESSION["info_signup1"]="Student Information could not be verified ! Plaese contact student Management Office."; + $_SESSION["info_signup1"]="Student Information could not be verified ! Please contact the Student Management Office."; header("Location: index.php"); return; } @@ -61,7 +61,7 @@ } else { - $_SESSION["info_signup1"]="Student ID already Used ! Please contact student Management Office if you could not login to your account."; + $_SESSION["info_signup1"]="Student ID already exists ! Please contact Student Management Office if you could not login to your account."; header("Location: index.php"); return; } @@ -109,16 +109,16 @@ // check for strong password if($containsAll < 8) { - $_SESSION['info_signup2']="Password should contain Letters , Numbers and sepcial characters"; + $_SESSION['info_signup2']="Password should contain Letters , Numbers and special characters"; header("Location: signup.php"); return; } - // check if email is taked + // check if email already exists in the database $result = mysqli_query($con, "SELECT * FROM Users_Table WHERE email='$email'"); if(mysqli_num_rows($result)!=0) { - $_SESSION["info_signup2"]="Email adress : ".$email." is already used."; + $_SESSION["info_signup2"]="Email adress : ".$email." already exists."; header("Location: signup.php"); return; } @@ -300,7 +300,7 @@ if(mysqli_num_rows($result)==0) { -echo "invalid email"; +echo "Invalid email."; return; } @@ -325,7 +325,7 @@ error_reporting(0); - $_SESSION["info_login"]=" Password changed successfully , you can login now with your new password "; + $_SESSION["info_login"]=" Password changed successfully , you can now login with your new password "; header("Location: index.php"); } @@ -381,12 +381,12 @@ $fullname=mysqli_real_escape_string($con,$_POST["fullname"]); $type=mysqli_real_escape_string($con,$_POST["type"]); $password=$passport; - // check if email is taked + // check if email alraedy exists in the database $result = mysqli_query($con, "SELECT * FROM Users_Table WHERE email='$email'"); if(mysqli_num_rows($result)!=0) { - $_SESSION["info_Admin_Users"]="Email adress : ".$email." is already used."; + $_SESSION["info_Admin_Users"]="Email adress : ".$email." already exists."; header("Location: Admin.php"); } $sql= "INSERT INTO `users_table`(`Email`, `Password`, `Full_Name`, `UserType`, `Passport_Number`) VALUES " @@ -913,7 +913,7 @@ function checksize($file) if($joining==0) { - $_SESSION["info_Courses_student"]="You enroll in this Course successfully."; + $_SESSION["info_Courses_student"]="You have successfully enrolled in this Course."; } else { $_SESSION["info_Courses_student"]="Course enrollment request was sent to the lecturer."; @@ -954,7 +954,7 @@ function checksize($file) if($marks>$total) { - echo " Marks could not be greater than total"; + echo " Marks cannot be greater than total"; return; } $date= date("Y-m-d H:i"); diff --git a/Student.php b/Student.php index 6d062b0..791e495 100644 --- a/Student.php +++ b/Student.php @@ -10,7 +10,7 @@
-

STUEDNT Account Created , Now you can Browse Course Portals

+

STUEDNT account created , now you can browse course portals.

diff --git a/SubmitLab.php b/SubmitLab.php index 2ad7b56..11d1e40 100644 --- a/SubmitLab.php +++ b/SubmitLab.php @@ -123,7 +123,7 @@ Title - + Attachment 1 diff --git a/recover_password.php b/recover_password.php index 8645f51..f6ad9e7 100644 --- a/recover_password.php +++ b/recover_password.php @@ -29,7 +29,7 @@
-
* You will recieve email with recovery information +
* You will receive an email with password recovery information. Date: Mon, 1 Jun 2020 15:31:27 +0800 Subject: [PATCH 2/3] Deleting an incomplete line of code --- Header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Header.php b/Header.php index a718f00..4f8118f 100644 --- a/Header.php +++ b/Header.php @@ -35,7 +35,7 @@ - From ecbace8c1b9299aa10256bc294651f43c5fc3429 Mon Sep 17 00:00:00 2001 From: TanakaMichelle <48944710+TanakaMichelle@users.noreply.github.com> Date: Mon, 1 Jun 2020 15:33:52 +0800 Subject: [PATCH 3/3] correcting a spelling mistake reviewing code and correcting a spelling mistake --- Script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Script.php b/Script.php index d5bfbe5..f3aa2c1 100644 --- a/Script.php +++ b/Script.php @@ -381,7 +381,7 @@ $fullname=mysqli_real_escape_string($con,$_POST["fullname"]); $type=mysqli_real_escape_string($con,$_POST["type"]); $password=$passport; - // check if email alraedy exists in the database + // check if email already exists in the database $result = mysqli_query($con, "SELECT * FROM Users_Table WHERE email='$email'"); if(mysqli_num_rows($result)!=0)