@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $fp = fopen($filename, "rb"); |
| 37 | 37 | |
| 38 | 38 | header("Content-Type: $sql_music[mime_type]"); |
| 39 | - header("Content-Length: " . filesize($filename)); |
|
| 39 | + header("Content-Length: ".filesize($filename)); |
|
| 40 | 40 | |
| 41 | 41 | if ($sql_music['imgext'] == 'mod') { |
| 42 | 42 | header('Content-Disposition: attachment; filename="music.mod"'); |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | LEFT JOIN music_types ON (music.music_id = music_types.music_id) |
| 97 | 97 | LEFT JOIN music_types_main ON (music_types.music_types_main_id = music_types_main.music_types_main_id) |
| 98 | 98 | WHERE game_music.game_id='$game_id'"); |
| 99 | -$i = 0; |
|
| 99 | +$i = 0; |
|
| 100 | 100 | while ($MUSIC = $sql_music->fetch_array(MYSQLI_BOTH)) { |
| 101 | 101 | $i++; |
| 102 | 102 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | $smarty->assign("user_id", $_SESSION['user_id']); |
| 140 | 140 | |
| 141 | 141 | //Send all smarty variables to the templates |
| 142 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_music_detail.html"); |
|
| 142 | +$smarty->display("file:".$cpanel_template_folder."games/games_music_detail.html"); |
|
| 143 | 143 | |
| 144 | 144 | //close the connection |
| 145 | 145 | mysqli_close($mysqli); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $smarty->assign("user_id", $_SESSION['user_id']); |
| 63 | 63 | |
| 64 | 64 | //Send all smarty variables to the templates |
| 65 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_similar.html"); |
|
| 65 | +$smarty->display("file:".$cpanel_template_folder."games/games_similar.html"); |
|
| 66 | 66 | |
| 67 | 67 | //close the connection |
| 68 | 68 | mysqli_close($mysqli); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | $smarty->assign("last_timestamp", $date); |
| 95 | 95 | |
| 96 | 96 | //Send all smarty variables to the templates |
| 97 | -$smarty->display("file:" . $cpanel_template_folder . "games/ajax_submission_games_search.html"); |
|
| 97 | +$smarty->display("file:".$cpanel_template_folder."games/ajax_submission_games_search.html"); |
|
| 98 | 98 | |
| 99 | 99 | //close the connection |
| 100 | 100 | mysqli_close($mysqli); |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $smarty->assign('nr_of_entries', $i); |
| 101 | 101 | |
| 102 | 102 | //Send all smarty variables to the templates |
| 103 | - $smarty->display("file:" . $cpanel_template_folder . "games/games_music_list.html"); |
|
| 103 | + $smarty->display("file:".$cpanel_template_folder."games/games_music_list.html"); |
|
| 104 | 104 | |
| 105 | 105 | //close the connection |
| 106 | 106 | mysqli_free_result($numberzaks); |
@@ -40,4 +40,4 @@ |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | //Send all smarty variables to the templates |
| 43 | -$smarty->display("file:" . $cpanel_template_folder . "games/ajax_games_detail.html"); |
|
| 43 | +$smarty->display("file:".$cpanel_template_folder."games/ajax_games_detail.html"); |
|
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | |
| 28 | 28 | //Send all smarty variables to the templates |
| 29 | -$smarty->display("file:".$cpanel_template_folder . "games/games_music.html"); |
|
| 29 | +$smarty->display("file:".$cpanel_template_folder."games/games_music.html"); |
|
| 30 | 30 | |
| 31 | 31 | //close the connection |
| 32 | 32 | mysqli_close($mysqli); |
@@ -52,4 +52,4 @@ |
||
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | //Send all smarty variables to the templates |
| 55 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_series_editor.html"); |
|
| 55 | +$smarty->display("file:".$cpanel_template_folder."games/games_series_editor.html"); |
|
@@ -152,4 +152,4 @@ |
||
| 152 | 152 | $smarty->assign('game_series_id', $game_series_id); |
| 153 | 153 | |
| 154 | 154 | //Send all smarty variables to the templates |
| 155 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_series_add_games.html"); |
|
| 155 | +$smarty->display("file:".$cpanel_template_folder."games/games_series_add_games.html"); |
|
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $smarty->assign("user_id", $_SESSION['user_id']); |
| 60 | 60 | |
| 61 | 61 | //Send all smarty variables to the templates |
| 62 | -$smarty->display("file:" . $cpanel_template_folder . "games/games_screenshot_add.html"); |
|
| 62 | +$smarty->display("file:".$cpanel_template_folder."games/games_screenshot_add.html"); |
|
| 63 | 63 | |
| 64 | 64 | //close the connection |
| 65 | 65 | mysqli_close($mysqli); |