password reset, admin upadte and Camel case update
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
<?php
|
||||
require "../../../bootstrap.php";
|
||||
require_once "../../../bootstrap.php";
|
||||
require_once "Admin.php";
|
||||
use Backend\Models\GameJam;
|
||||
|
||||
if(isset($_SESSION['Admin'])){
|
||||
if(isset($_POST['NewGameJam'])){
|
||||
var_dump($_POST);
|
||||
|
||||
session_start();
|
||||
|
||||
if(isAdmin()){
|
||||
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->name = $_POST["gameJamName"];
|
||||
$gameJam->start_time = $_POST["startDate"]."T".$_POST["startTime"];
|
||||
$gameJam->end_time = $_POST["endDate"]."T".$_POST["endTime"];
|
||||
$gameJam->description = $_POST["description"];
|
||||
|
||||
if($gameJam->save()){
|
||||
|
||||
Reference in New Issue
Block a user