get votes and winner
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
require_once "../../../bootstrap.php";
|
||||
use Backend\Models\Group;
|
||||
|
||||
if (isset($_POST["groupId"])){
|
||||
$groups = Group::find($_POST["groupId"]);
|
||||
if (isset($_GET["groupId"])){
|
||||
$groups = Group::find($_GET["groupId"]);
|
||||
}
|
||||
elseif(isset($_POST["gameJameId"])){
|
||||
$groups = Group::where("game_jam_id",$_POST["gameJameId"]);
|
||||
elseif(isset($_GET["gameJameId"])){
|
||||
$groups = Group::where("game_jam_id",$_GET["gameJameId"])->get();
|
||||
}
|
||||
else{
|
||||
$groups = Group::all();
|
||||
|
||||
@@ -3,6 +3,7 @@ require_once "../../../bootstrap.php";
|
||||
|
||||
use Backend\Models\Group;
|
||||
use Backend\Models\Password;
|
||||
session_start();
|
||||
|
||||
/**
|
||||
* @param string $token
|
||||
|
||||
Reference in New Issue
Block a user