diff --git a/Header.php b/Header.php index 9268f16..1bb45e9 100644 --- a/Header.php +++ b/Header.php @@ -8,215 +8,214 @@ $con = mysqli_connect("localhost", $mysql_username, $mysql_password, "lrr"); // Check database connection if (mysqli_connect_errno()) { - echo "Failed to connect to MySQL: " . mysqli_connect_error(); + echo "Failed to connect to MySQL: " . mysqli_connect_error(); } - ?> - + - LRR - Lab Report Repository - - - - + LRR - Lab Report Repository + + + + - - - + + + - + - + - + - - + function blockUser(id, status) { + if (!confirm('Are you sure you want to change user status?')) { + return; + } + window.location.href = "\Script.php\?action=statuschange&uid=" + id + "&status=" + status; + } +