@@ -24,5 +24,5 @@ |
||
| 24 | 24 | |
| 25 | 25 | $smarty->assign('smarty_action', 'game_fact_edit_view'); |
| 26 | 26 | //Send all smarty variables to the templates |
| 27 | - $smarty->display("file:" . $cpanel_template_folder . "games/ajax_game_facts_edit.html"); |
|
| 27 | + $smarty->display("file:".$cpanel_template_folder."games/ajax_game_facts_edit.html"); |
|
| 28 | 28 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | //include("../../config/admin_rights.php"); |
| 30 | 30 | |
| 31 | 31 | if (isset($action) and $action == 'delete_comment') { |
| 32 | - if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') { |
|
| 32 | + if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') { |
|
| 33 | 33 | $REVIEWSHOT = $mysqli->query("SELECT * FROM screenshot_review |
| 34 | 34 | WHERE review_id = $reviewid |
| 35 | 35 | AND screenshot_id = $screenshot_id") or die("Database error - selecting screenshots review"); |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $smarty->assign('game_id', $game_id); |
| 145 | 145 | |
| 146 | 146 | //Send to smarty for return value |
| 147 | - $smarty->display("file:" . $cpanel_template_folder . "games/ajax_review_add_comment.html"); |
|
| 147 | + $smarty->display("file:".$cpanel_template_folder."games/ajax_review_add_comment.html"); |
|
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 | if (isset($action) and ($action == 'delete_review' or $action == 'delete_submission')) { |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | $smarty->assign('progress_system', $gameProgressSystemDao->getAllProgressSystems()); |
| 157 | 157 | |
| 158 | 158 | //Send all smarty variables to the templates |
| 159 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_config.html"); |
|
| 159 | +$smarty->display("file:".$cpanel_template_folder."games/games_config.html"); |
|
| 160 | 160 | |
| 161 | 161 | //close the connection |
| 162 | 162 | mysqli_close($mysqli); |
@@ -31,4 +31,4 @@ |
||
| 31 | 31 | $smarty->assign('game_series', $gameSeriesDao->getAllGameSeries()); |
| 32 | 32 | |
| 33 | 33 | //Send all smarty variables to the templates |
| 34 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_series_main.html"); |
|
| 34 | +$smarty->display("file:".$cpanel_template_folder."games/games_series_main.html"); |
|
@@ -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 | } |