2021-03-09 09:45:05 +00:00
|
|
|
<?php
|
2021-03-16 11:46:44 +00:00
|
|
|
require_once "../../../bootstrap.php";
|
2021-03-12 13:05:31 +00:00
|
|
|
require_once "Group.php";
|
2021-03-09 09:45:05 +00:00
|
|
|
|
|
|
|
use Backend\Models\Group;
|
|
|
|
|
2021-03-12 13:05:31 +00:00
|
|
|
if(isLogin()){
|
2021-03-09 09:45:05 +00:00
|
|
|
if (isset($_POST['updateGroup'])) {
|
2021-03-12 13:05:31 +00:00
|
|
|
if($group = groupViaToken($_SESSION['token'])){
|
2021-03-11 08:28:30 +00:00
|
|
|
$group->group_name = $_POST['groupName'];
|
|
|
|
$group->group_amount = $_POST['groupAmount'];
|
|
|
|
$group->game_jam_id = $_POST['gameJamId'];
|
2021-03-09 12:16:34 +00:00
|
|
|
$group->save();
|
|
|
|
}
|
2021-03-09 09:45:05 +00:00
|
|
|
}
|
2021-03-12 13:05:31 +00:00
|
|
|
}
|
|
|
|
|
2021-03-09 12:16:34 +00:00
|
|
|
|
2021-03-09 09:45:05 +00:00
|
|
|
|
|
|
|
|