added login check to the pages which add entries to the tables

This commit is contained in:
2022-06-09 20:47:50 +02:00
parent 80a03ec557
commit 07becd4502
4 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
session_start();
include("../scripts/connection.php");
include("../scripts/functions.php");
$user_data = check_login($con);
if($_SERVER['REQUEST_METHOD'] == "POST") {
write_team($con, $_POST['team_name'], $_POST['fire_department']);