@@ -80,7 +80,7 @@ |
||
| 80 | 80 | $smarty->assign('game_id', $game_id); |
| 81 | 81 | |
| 82 | 82 | //Send all smarty variables to the templates |
| 83 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_review_preview.html"); |
|
| 83 | +$smarty->display("file:".$cpanel_template_folder."games/games_review_preview.html"); |
|
| 84 | 84 | |
| 85 | 85 | //close the connection |
| 86 | 86 | mysqli_close($mysqli); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | game_series.name as game_series_name |
| 65 | 65 | FROM game |
| 66 | 66 | LEFT JOIN game_series ON (game.game_series_id = game_series.id) |
| 67 | - WHERE game.game_id='$game_id'") or die("Error getting game info: " . $mysqli->error); |
|
| 67 | + WHERE game.game_id='$game_id'") or die("Error getting game info: ".$mysqli->error); |
|
| 68 | 68 | |
| 69 | 69 | while ($game_info = $sql_game->fetch_array(MYSQLI_BOTH)) { |
| 70 | 70 | $smarty->assign('game_info', array( |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | $smarty->assign("user_id", $_SESSION['user_id']); |
| 287 | 287 | |
| 288 | 288 | //Send all smarty variables to the templates |
| 289 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_detail.html"); |
|
| 289 | +$smarty->display("file:".$cpanel_template_folder."games/games_detail.html"); |
|
| 290 | 290 | |
| 291 | 291 | //close the connection |
| 292 | 292 | mysqli_close($mysqli); |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | $smarty->assign("last_timestamp", $last_timestamp); |
| 94 | 94 | |
| 95 | 95 | //Send all smarty variables to the templates |
| 96 | -$smarty->display("file:" . $cpanel_template_folder . "games/ajax_submission_games.html"); |
|
| 96 | +$smarty->display("file:".$cpanel_template_folder."games/ajax_submission_games.html"); |
|
| 97 | 97 | |
| 98 | 98 | //close the connection |
| 99 | 99 | mysqli_close($mysqli); |
@@ -160,6 +160,6 @@ |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | $smarty->assign("tab", isset($tab) ? $tab : "general"); |
| 163 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_release_detail.html"); |
|
| 163 | +$smarty->display("file:".$cpanel_template_folder."games/games_release_detail.html"); |
|
| 164 | 164 | |
| 165 | 165 | mysqli_close($mysqli); |
@@ -117,5 +117,5 @@ |
||
| 117 | 117 | $smarty->assign("user_id", $_SESSION['user_id']); |
| 118 | 118 | |
| 119 | 119 | //Send all smarty variables to the templates |
| 120 | - $smarty->display("file:" . $cpanel_template_folder . "games/games_review_edit.html"); |
|
| 120 | + $smarty->display("file:".$cpanel_template_folder."games/games_review_edit.html"); |
|
| 121 | 121 | } |
@@ -88,11 +88,11 @@ discard block |
||
| 88 | 88 | // This is the delete submission |
| 89 | 89 | //**************************************************************************************** |
| 90 | 90 | if (isset($fact_id)) { |
| 91 | - if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') { |
|
| 91 | + if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') { |
|
| 92 | 92 | if ($action == "fact_delete") { |
| 93 | 93 | //Let's first check if this submission has screenshots. |
| 94 | 94 | $query_fact_screenshot = $mysqli->query("SELECT * FROM screenshot_game_fact |
| 95 | - WHERE game_fact_id = " . $fact_id . "") |
|
| 95 | + WHERE game_fact_id = " . $fact_id."") |
|
| 96 | 96 | or die("something is wrong with mysqli of fact screenshots"); |
| 97 | 97 | |
| 98 | 98 | while ($sql_fact_screenshot = $query_fact_screenshot->fetch_array(MYSQLI_BOTH)) { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | $i = 0; |
| 159 | 159 | |
| 160 | - while ($sql_games_facts = $query_games_facts->fetch_array(MYSQLI_BOTH)) { |
|
| 160 | + while ($sql_games_facts = $query_games_facts->fetch_array(MYSQLI_BOTH)) { |
|
| 161 | 161 | $i++; |
| 162 | 162 | |
| 163 | 163 | //check if there are screenshot added to the submission |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | $smarty->assign('osd_message', $osd_message); |
| 202 | 202 | |
| 203 | 203 | //Send to smarty for return value |
| 204 | - $smarty->display("file:" . $cpanel_template_folder . "games/ajax_game_facts_edit.html"); |
|
| 204 | + $smarty->display("file:".$cpanel_template_folder."games/ajax_game_facts_edit.html"); |
|
| 205 | 205 | } |
| 206 | 206 | } |
| 207 | 207 | |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | or die("couldn't update game_facts table"); |
| 217 | 217 | |
| 218 | 218 | create_log_entry('Games', $game_id, 'Fact', $game_id, 'Update', $_SESSION['user_id']); |
| 219 | - $_SESSION['edit_message'] = "fact updated"; |
|
| 219 | + $_SESSION['edit_message'] = "fact updated"; |
|
| 220 | 220 | |
| 221 | 221 | //Here we'll be looping on each of the inputs on the page that are filled in with an image! |
| 222 | 222 | $image = $_FILES['image']; |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | // Obtain the contentlist of the zip file. |
| 41 | 41 | if (($list = $zip->listContent()) == 0) { |
| 42 | - die("Error : " . $zip->errorInfo(true)); |
|
| 42 | + die("Error : ".$zip->errorInfo(true)); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | // Get the filename from the returned array |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $archive = new PclZip("$tempfilename"); |
| 78 | 78 | |
| 79 | 79 | if ($archive->extract(PCLZIP_OPT_PATH, "$game_file_temp_path") == 0) { |
| 80 | - die("Error : " . $archive->errorInfo(true)); |
|
| 80 | + die("Error : ".$archive->errorInfo(true)); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | // rename diskimage to increment number |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | $archive = new PclZip("$game_file_path$gamedownrow[0].zip"); |
| 89 | 89 | $v_list = $archive->create("$game_file_temp_path$gamedownrow[0].$ext", PCLZIP_OPT_REMOVE_ALL_PATH); |
| 90 | 90 | if ($v_list == 0) { |
| 91 | - die("Error : " . $archive->errorInfo(true)); |
|
| 91 | + die("Error : ".$archive->errorInfo(true)); |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | // Time to do the safeties, here we do a md5 file hash that we later enter into the database, this will be used |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | $smarty->assign("user_id", $_SESSION['user_id']); |
| 100 | 100 | |
| 101 | 101 | //Send all smarty variables to the templates |
| 102 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_review.html"); |
|
| 102 | +$smarty->display("file:".$cpanel_template_folder."games/games_review.html"); |
|
| 103 | 103 | |
| 104 | 104 | //close the connection |
| 105 | 105 | mysqli_close($mysqli); |
@@ -38,4 +38,4 @@ |
||
| 38 | 38 | )); |
| 39 | 39 | |
| 40 | 40 | //Send all smarty variables to the templates |
| 41 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_series_add_series.html"); |
|
| 41 | +$smarty->display("file:".$cpanel_template_folder."games/games_series_add_series.html"); |
|