Store in GIT

This commit is contained in:
2026-06-17 15:46:26 +02:00
parent 47150cc7ca
commit 876ad89e72
134 changed files with 31034 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
require("../../../inc/connect.php");
require("../../../inc/session.php");
$schedule = $_POST['id'];
//Check if user is allowed to delete
$sql = "SELECT `id` FROM `schedule` WHERE `dev_id`=$deviceid AND `id`=$schedule";
$query = ExecQuery($mysqli, $sql);
if($query->num_rows < 1)
{
error("schedules", "You are not allowed to delete that schedule");
}
//Delete schedule
$sql = "DELETE FROM `schedule` WHERE `id`=$schedule";
ExecQuery($mysqli, $sql);
success("schedules", "The schedule has been deleted");
?>