folder restrokteer

This commit is contained in:
2021-03-09 10:45:05 +01:00
parent 66eefe37a5
commit fbdf9e675c
11 changed files with 113 additions and 5 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
require "../../../bootstrap.php";
use Backend\Models\GameJam;
if(isset($_SESSION['Admin'])){
if(isset($_POST['NewGameJam'])){
$gameJam = New GameJam();
$gameJam->name = $_POST["gameJam_name"];
$gameJam->start_time = $_POST["start_time"];
$gameJam->end_time = $_POST["end_time"];
$gameJam->description = $_POST["description"];
if($gameJam->save()){
}
else{
}
}
}