From 8ecab98e215e600e8f8af174e68e34773180ebce Mon Sep 17 00:00:00 2001 From: Lan Hui <lanhui@zjnu.edu.cn> Date: Fri, 17 Jun 2022 21:58:14 +0800 Subject: [PATCH 3/5] git reset HEAD^ twice. --- .htaccess | 1 + Submissions.php | 4 ++-- index.php | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..8d2f256 --- /dev/null +++ b/.htaccess @@ -0,0 +1 @@ +deny from all diff --git a/Submissions.php b/Submissions.php index a5961e4..cabcaf0 100644 --- a/Submissions.php +++ b/Submissions.php @@ -183,7 +183,7 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Pending' order by Sub } echo " <k href='#'> <div class='btn btn-default break-word' style='dislay:block; word-wrap: break-word; border: 1px solid #F0F0F0;border-left: 4px solid #03407B;'> - $title <br> by: <b> $submitted_by </b> + $title <br> by: <b> <span class = 'text-selectable'>$submitted_by </span> </b> <br> <span style='font-size:8pt'>Submitted : $posted <button class='btn-sm btn-info' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'> Mark Submission</button><br> Attachments : $full_link </span> </div></k>"; } @@ -347,7 +347,7 @@ where Lab_Report_ID=$id and lab_report_submissions.Status='Remarking'"); $full_link = $full_link . "| <a href='~\..\Lab_Report_Submisions\\$att4'>$att4</a>"; } echo " <k href='#'> <div class='btn btn-default break-word ' style='dislay:block; word-wrap: break-word; border: 1px solid #F0F0F0;border-left: 4px solid #03407B;'> - $title <br> by : <b> $submitted_by [ Marked $Marks ] </b> <br> Remarking Reason : <b>$remarking_reason </b> + $title <br> by : <b> <span class = 'text-selectable'>$submitted_by </span> [ Marked $Marks ] </b> <br> Remarking Reason : <b>$remarking_reason </b> <hr> <span style='font-size:8pt'>Submitted : $posted <b> </b> " . "<button class='btn-sm btn-info' style='margin-left:50px;' onclick='mark($Submission_ID,\"$title\",$total)'> Re-Mark Submission</button>" . " <a href='~\..\Script.php?ignoreremarking=yes&id=$id&subid=$Submission_ID&header=$header&total=$total&status=Marked' class='btn-sm btn-warning'> Ignore Request </a>" diff --git a/index.php b/index.php index fd8c17a..8824217 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,7 @@ +<?php +exit("Under Maintenance."); +?> + <?php $page='Home'; require 'Header.php'; @@ -82,7 +86,7 @@ if (isset($_SESSION["user_fullname"])) { <div id="footer"> - LRR was originally developed as a <a href="http://lanlab.org/course/2018f/se/homepage.html" style="color:white;">software engineering course project</a> by Mohamed Nor and Elmahdi Houzi. Please submit your suggestions or bug reports to lanhui _at_ zjnu.edu.cn. Last updated on 18/04/2020 by Ashly. <a href="./homepage" style="color:white;">More information ...</a> + LRR was originally developed as a <a href="http://lanlab.org/course/2018f/se/homepage.html" style="color:white;">software engineering course project</a> by Mohamed Nor and Elmahdi Houzi. Please submit your suggestions or bug reports to lanhui. Last updated on 18/04/2020 by Ashly. <a href="./homepage" style="color:white;">More information ...</a> </div> </body> From 1fc6061e1981aa4a54e79b48eff08a8a86b8b65d Mon Sep 17 00:00:00 2001 From: Lan Hui <lanhui@zjnu.edu.cn> Date: Fri, 17 Jun 2022 22:02:40 +0800 Subject: [PATCH 4/5] nothing to say --- index.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/index.php b/index.php index 8824217..94537b3 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,3 @@ -<?php -exit("Under Maintenance."); -?> - <?php $page='Home'; require 'Header.php'; From fa1932c95c19defe0ddd46c09141ab98a03725e2 Mon Sep 17 00:00:00 2001 From: Lan Hui <lanhui@zjnu.edu.cn> Date: Fri, 17 Jun 2022 22:42:08 +0800 Subject: [PATCH 5/5] Max input length set to 11 characters. --- Courses.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Courses.php b/Courses.php index 17b6cf8..36ebc2e 100644 --- a/Courses.php +++ b/Courses.php @@ -635,7 +635,7 @@ INNER JOIN course_students_table on course_students_table.Course_ID=courses_tabl if($Status=="Joined") { - echo "<a href='~\..\Course.php?url=$url'> <div class='btn btn-default' style='word-wrap:break-word'> + echo "<a href='~\..\Course.php?url=$url'> <div class='btn btn-default' style='word-wrap:break-word'> ($code) - $name <br>($url) <i class='fa fa-check-circle'></i> $Status <a href='~\..\Course.php?url=$url' class='btn-sm btn-primary'> Open</a> <br> <span style='font-size:8pt'>Faculty : $faculty Year : $academic Lecturer :$lecturer </span></div></a> "; @@ -682,7 +682,7 @@ INNER JOIN course_students_table on course_students_table.Course_ID=courses_tabl <div class='row'> <div class='col-md-10'> <div class='row'><div class='col-md-6'> Find course by Code - <input type='text' class='form-control' name='search' placeholder='Enter Course Code'> + <input type='text' class='form-control' name='search' maxlength='11' placeholder='Enter Course Code'> </div><div class='col-md-6'> List courses by faculty