Files
ritzenbergen-backend/admin/events/createEvent.php
2026-01-05 21:46:00 +01:00

16 lines
393 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;
mysqli_execute_query($db_id,"INSERT INTO `ritzenbergen-events` (`eventname`,`datum`,`type`,`content`,`minitext`) VALUES ('',CURDATE(),'markdown','','');");
echo '{"success":true}';