Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
<script>
function updatePass(id,pass)
{
if(!confirm('Are you to Reset User Password'))
if(!confirm(' Would you like to reset user password?'))
{
return;
}
Expand All @@ -326,7 +326,7 @@ function updatePass(id,pass)

function blockUser(id,status)
{
if(!confirm('Are you to change User Status'))
if(!confirm(' Would you like to change user status?'))
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script src="http://118.25.96.118/nor/css/bootsrap.min.js" type="text/javascript"></script>
<link href="http://118.25.96.118/nor/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script src="http://118.25.96.118/nor/css/jquery.datetimepicker.min.js" type="text/javascript"></script>

<link rel
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TanakaMichelle

<link rel seems to be incomplete.

Hui

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I overlooked this when I switched to another branch whilst writing the code to create the web page icon. I have corrected it, thank you.



</header>
Expand Down
22 changes: 11 additions & 11 deletions Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -300,7 +300,7 @@
if(mysqli_num_rows($result)==0)
{

echo "invalid email";
echo "Invalid email.";
return;

}
Expand All @@ -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");

}
Expand Down Expand Up @@ -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 "
Expand Down Expand Up @@ -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.";
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion Student.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div class="row" style="width:80%;margin:auto;">

<div class="col-md-6">
<h1> STUEDNT Account Created , Now you can Browse Course Portals </h1>
<h1> STUEDNT account created , now you can browse course portals. </h1>
</div>


Expand Down
2 changes: 1 addition & 1 deletion SubmitLab.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@


Title
<input type='text' name='title' placeholder='Ttle' class='form-control' required=''>
<input type='text' name='title' placeholder='Title' class='form-control' required=''>
Attachment 1
<input type='file' name='attachment1' placeholder='Attachment 1' class='form-control' required=''>

Expand Down
2 changes: 1 addition & 1 deletion recover_password.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<br>
<input type="submit" class="btn btn-primary" value="Recover">
<br> * You will recieve email with recovery information
<br> * You will receive an email with password recovery information.
<?php


Expand Down