diff --git a/Admin.php b/Admin.php index bf39f0f..057783c 100644 --- a/Admin.php +++ b/Admin.php @@ -1,276 +1,276 @@ - - - - - - - - -
-
-

Administration panel

-
- -
-
- -
- - - -
- - - - - -
- -

- - Create TA Accounts "; - - } - else if($_SESSION['user_type'] == "Admin"){ - echo "Create Lecturer Accounts "; - } - - ?> -
- - Full Name - - Email - - - Passport Number / ID (Used as Initial Password) - -
User Type : - - TA (Teaching Assistant) '; - - } - else if($_SESSION['user_type'] == "Admin"){ - - echo " Lecturer "; - - } - - ?> - -
- - '; - $_SESSION['info_Admin_Users'] = null; - } - if (isset($_SESSION['info_Admin_Users'])) { - echo '
'; - $_SESSION['info_Admin_Users'] = null; - } - - ?> - -
- -
- -
- - - - - - - - -
-
- -
- -
- -
- -
- - - -
- -
- - + + + + + + + + +
+
+

Administration panel

+
+ +
+
+ +
+ + + +
+ + + + + +
+ +

+ + Create TA Accounts "; + + } + else if($_SESSION['user_type'] == "Admin"){ + echo "Create Lecturer Accounts "; + } + + ?> +
+ + Full Name + + Email + + + Passport Number / ID (Used as Initial Password) + +
User Type : + + TA (Teaching Assistant) '; + + } + else if($_SESSION['user_type'] == "Admin"){ + + echo " Lecturer "; + + } + + ?> + +
+ + '; + $_SESSION['info_Admin_Users'] = null; + } + if (isset($_SESSION['info_Admin_Users'])) { + echo '
'; + $_SESSION['info_Admin_Users'] = null; + } + + ?> + +
+ +
+ +
+ + + + + + + + +
+
+ +
+ +
+ +
+ +
+ + + +
+ +
+ + diff --git a/Footer.php b/Footer.php index 9dd24d1..adcac4a 100644 --- a/Footer.php +++ b/Footer.php @@ -1,2 +1,2 @@ -








-
+








+
diff --git a/README.md b/README.md index b48e53a..57af2eb 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ LRR needs Apache and MySQL to run. I followed [How To Install Linux, Apache, My LRR uses a database called `lrr`. So create this database using MySQL root account. Open MySQL's prompt using `sudo mysql`. Create the database using command `CREATE DATABASE lrr;`, and grant all privileges to MySQL user `lrr` using command `GRANT ALL PRIVILEGES ON lrr.* TO 'mnc'@'localhost' WITH GRANT OPTION;`. If MySQL user mnc does not exist, create it using command `CREATE USER 'mnc'@'localhost' IDENTIFIED BY 'password'`. To facilitate data migration, I need to export the existing `lrr` to a plain text file (including many sql commands) and import that text file to the newly created `lrr` database on the new server. -The command for exporting the database is `mysqldump -u mnc -p lrr > lrr_database_dump.txt`, where mnc after -u is MySQL's username, and lrr after -p is the database name. -The command for importing is `mysql -u mnc -p lrr < lrr_database_dump.txt`. Read [How to Import and Export MySQL Databases in Linux](https://phoenixnap.com/kb/import-and-export-mysql-database) for more detail. Do not have lrr_database_dump.txt? You can use lrr_database.sql in this repo instead. +The command for exporting the database is `mysqldump -u mnc -p lrr > lrr_database_dump.sql`, where mnc after -u is MySQL's username, and lrr after -p is the database name. +The command for importing is `mysql -u mnc -p lrr < lrr_database_dump.sql`. Read [How to Import and Export MySQL Databases in Linux](https://phoenixnap.com/kb/import-and-export-mysql-database) for more detail. Do not have lrr_database_dump.sql? You can use lrr_database.sql in this repo instead. LRR also needs to store assignment submissions. We store them in a folder called `../../lrr_submission`. Note that `lrr_submission` is two levels above the project folder (where many PHP files reside). I copied this folder from the existing one. I think it is also OK if you create an empty folder. We need to set a proper owner and accessibility for `lrr_submission` using the following two commands: diff --git a/Student.php b/Student.php index bcca070..0c137f6 100644 --- a/Student.php +++ b/Student.php @@ -1,14 +1,14 @@ - - -


- -
- -
-

Student account created. Now you can browse the course portal.

-
- -
+ + +


+ +
+ +
+

Student account created. Now you can browse the course portal.

+
+ +
diff --git a/logout.php b/logout.php index 8b98508..f8ffb17 100644 --- a/logout.php +++ b/logout.php @@ -1,24 +1,24 @@ - + diff --git a/signup.php b/signup.php index b5c7d3b..ef51d63 100644 --- a/signup.php +++ b/signup.php @@ -1,50 +1,50 @@ - - - - -
- -
- -
- -

Please fill in each field below

-
- -
- -
- - Full Name - - - Student ID - - - Email - - - Password (must include uppercase and lowercase letters, digits and special characters) - - - Confirm Password - -
- - '; - $_SESSION['info_signup'] = null; - } - ?> -
- -
-
-
-
+ + + + +
+ +
+ +
+ +

Please fill in each field below

+
+ +
+ +
+ + Full Name + + + Student ID + + + Email + + + Password (must include uppercase and lowercase letters, digits and special characters) + + + Confirm Password + +
+ + '; + $_SESSION['info_signup'] = null; + } + ?> +
+ +
+
+
+