fix
This commit is contained in:
@@ -4,9 +4,7 @@ require_once('../Group/Group.php');
|
||||
require_once('FileHandler.php');
|
||||
use Backend\Models\GameData;
|
||||
|
||||
session_start();
|
||||
|
||||
if(isset($_SESSION['token'])){
|
||||
if(isLogin()){
|
||||
if(isset($_POST['submitUpdate'])){
|
||||
$gameFile = $_FILES['gameFile'];
|
||||
$desc = $_POST['description'];
|
||||
@@ -41,5 +39,5 @@ if(isset($_SESSION['token'])){
|
||||
$gameData->save();
|
||||
}
|
||||
}else{
|
||||
header("location: ../Backend/Main.php?error=NoLogin");
|
||||
header("location: ../../../Frontend/index.html?error=NoLogin");
|
||||
}
|
||||
Reference in New Issue
Block a user