Event Backend für das AdminPanel
This commit is contained in:
18
admin/events/deleteEvent.php
Executable file
18
admin/events/deleteEvent.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?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}';
|
||||
Reference in New Issue
Block a user