diff --git a/Header.php b/Header.php index e867e1e..a5787c3 100644 --- a/Header.php +++ b/Header.php @@ -3,7 +3,8 @@ session_start(); error_reporting(0); date_default_timezone_set('Asia/Shanghai'); -$con = mysqli_connect("localhost","username","password","lrr"); +include "get_mysql_credentials.php"; +$con = mysqli_connect("localhost", $mysql_username, $mysql_password, "lrr"); // Check database connection if (mysqli_connect_errno()) { diff --git a/README.md b/README.md index ece6575..fac0a53 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,10 @@ The original GitHub Repo is at https://github.com/EngMohamedNor/LabReportRepo (Please put your name and student number below.) +CODEwithZAKI - Omar Mohamud Mohamed - 202025800041 + +BloudYoussef - Khayat Youssef - 202025800042 + TanakaMichelle - Tanaka Michelle Sandati - 201732120134 WhyteAsamoah - Yeboah Martha Asamoah - 201732120135 diff --git a/Script.php b/Script.php index b0225ea..b00e8d5 100644 --- a/Script.php +++ b/Script.php @@ -12,7 +12,8 @@ session_start(); date_default_timezone_set('Asia/Shanghai'); // Connect to MySQL database -$con = mysqli_connect("localhost","username","password","lrr"); +include "get_mysql_credentials.php"; +$con = mysqli_connect("localhost", $mysql_username, $mysql_password, "lrr"); // Check connection if (mysqli_connect_errno()) @@ -527,7 +528,7 @@ function checksize($file) { $result = $_FILES["$file"]['size']/(1024*1024); - if($result > 1) + if($result > 3) { return FALSE; } diff --git a/Submissions.php b/Submissions.php index 2116abf..97a540c 100644 --- a/Submissions.php +++ b/Submissions.php @@ -495,7 +495,7 @@ include 'Footer.php'; buttons: { 'Submit Marking': function () { $('#submit-form').submit(); - //$('input[type=submit].default').submit(); + $(this).dialog('close'); }, 'X': function () { @@ -520,7 +520,7 @@ function updatev(id) { - $('
\n\ + $(' \n\
\n\ Update Visibility
\n\
').dialog({ @@ -528,7 +528,10 @@ Update Visibility