Event Backend für das AdminPanel

This commit is contained in:
R40fendt
2026-01-05 21:46:00 +01:00
parent 30d6466bfb
commit 0b605746f8
5 changed files with 82 additions and 2 deletions

15
admin/events/createEvent.php Executable file
View File

@@ -0,0 +1,15 @@
<?php
include("../../../mysqlverbinden.php");
include("../secret.php");
include("../../vendor/autoload.php");
include("../check.php");
$payload=getUserInfo();
$username=$payload->username;
$id=$payload->id;
mysqli_execute_query($db_id,"INSERT INTO `ritzenbergen-events` (`eventname`,`datum`,`type`,`content`,`minitext`) VALUES ('',CURDATE(),'markdown','','');");
echo '{"success":true}';