password reset, admin upadte and Camel case update
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
<?php
|
||||
require "../../../bootstrap.php";
|
||||
require_once "../../../bootstrap.php";
|
||||
require_once "Admin.php";
|
||||
use Backend\Models\GameJam;
|
||||
|
||||
if(isset($_SESSION['Admin'])){
|
||||
if(isset($_POST['UpdateGameJam'])) {
|
||||
$gameJam = GameJam::find($_POST['game_jam_id']);
|
||||
if(isAdmin()){
|
||||
if(isset($_POST['updateGameJam'])) {
|
||||
$gameJam = GameJam::find($_POST['gameJamId']);
|
||||
if($gameJam){
|
||||
|
||||
$gameJam->name = $_POST['name'];
|
||||
|
||||
$gameJam->start_time = $_POST['start_time'];
|
||||
$gameJam->start_time = $_POST["startDate"]."T".$_POST["startTime"];
|
||||
|
||||
$gameJam->end_time = $_POST['start_time'];
|
||||
$gameJam->end_time = $_POST["endDate"]."T".$_POST["endTime"];
|
||||
|
||||
if (!empty($_POST['key_word'])) {
|
||||
$gameJam->key_word = $_POST['key_word'];
|
||||
$gameJam->key_word = $_POST['keyWord'];
|
||||
}
|
||||
|
||||
$gameJam->description = $_POST['description'];
|
||||
|
||||
Reference in New Issue
Block a user