diff --git a/Backend/Controllers/FileHandler/updateFiles.php b/Backend/Controllers/FileHandler/updateFiles.php new file mode 100644 index 0000000..683a12b --- /dev/null +++ b/Backend/Controllers/FileHandler/updateFiles.php @@ -0,0 +1,45 @@ +game_data_id); + $gameData->game_name = $title; + if(isset($gameData) && $gameFileError === 0){ + unlink("../../Games/".$gameData->game_link); + $gameData->game_link = ZipFileHandler($gameFileName,$gameFileTmp); + } + $gameData->description = $desc; + if(isset($thumbnail) && $thumbnailFileError === 0){ + unlink("../../../Frontend/images/".$gameData->img); + $gameData->img = imagesFileHandler($thumbnailFileName,$thumbnailFileTmp); + } + $gameData->is_web_Based = $isWebBased; + $gameData->save(); + } +}else{ + header("location: ../Backend/Main.php?error=NoLogin"); +} \ No newline at end of file diff --git a/Backend/Controllers/keyWord/genRandomKeyWinner.php b/Backend/Controllers/keyWord/genRandomKeyWinner.php new file mode 100644 index 0000000..b3d9bbc --- /dev/null +++ b/Backend/Controllers/keyWord/genRandomKeyWinner.php @@ -0,0 +1 @@ + -
diff --git a/Frontend/updateGameJam.php b/Frontend/updateGameJam.php new file mode 100644 index 0000000..aa7e89f --- /dev/null +++ b/Frontend/updateGameJam.php @@ -0,0 +1,29 @@ + + + + +