19 lines
396 B
PHP
Executable File
19 lines
396 B
PHP
Executable File
<?php
|
|
include("../../../mysqlverbinden.php");
|
|
include("../secret.php");
|
|
include("../../vendor/autoload.php");
|
|
|
|
include("../check.php");
|
|
|
|
$payload=getUserInfo();
|
|
|
|
$username=$payload->username;
|
|
$id=$payload->id;
|
|
|
|
if(!isset($_GET["id"])) die("GET id fehlt");
|
|
$eventid=$_GET["id"];
|
|
|
|
mysqli_execute_query($db_id,"DELETE FROM `ritzenbergen-events` WHERE `id`=?;",[$eventid]);
|
|
|
|
echo '{"success":true}';
|