@@ -26,17 +26,17 @@ discard block |
||
26 | 26 | if (isset($crewsearch)) { |
27 | 27 | $crewsearch = $mysqli->real_escape_string($crewsearch); |
28 | 28 | } else { |
29 | - $crewsearch='-'; |
|
29 | + $crewsearch = '-'; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | if (isset($crewbrowse)) { |
33 | 33 | } else { |
34 | - $crewbrowse='-'; |
|
34 | + $crewbrowse = '-'; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | if (isset($message)) { |
38 | 38 | } else { |
39 | - $message=''; |
|
39 | + $message = ''; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | if (isset($new_crew)) { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $smarty->assign('az_output', $az_output); |
62 | 62 | |
63 | 63 | //Send all smarty variables to the templates |
64 | -$smarty->display("file:" . $cpanel_template_folder . "crew/crew_main.html"); |
|
64 | +$smarty->display("file:".$cpanel_template_folder."crew/crew_main.html"); |
|
65 | 65 | |
66 | 66 | //close the connection |
67 | 67 | mysqli_close($mysqli); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'crew_name' => $query_crew['crew_name'] |
45 | 45 | )); |
46 | 46 | } |
47 | - $smarty->display("file:" . $cpanel_template_folder . "crew/ajax_crew_editor.html"); |
|
47 | + $smarty->display("file:".$cpanel_template_folder."crew/ajax_crew_editor.html"); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | if (isset($action) and $action == "crew_search") { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | )); |
65 | 65 | } |
66 | 66 | |
67 | - $smarty->display("file:" . $cpanel_template_folder . "crew/ajax_crew_editor.html"); |
|
67 | + $smarty->display("file:".$cpanel_template_folder."crew/ajax_crew_editor.html"); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | if (isset($action) and $action == "crew_gen_browse") { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $crew = $sql_crew->fetch_array(MYSQLI_BOTH); |
104 | 104 | |
105 | 105 | $mysqli->query("UPDATE crew SET crew_logo='' WHERE crew_id='$crew_select'") |
106 | - or die('Error: ' . mysqli_error($mysqli)); |
|
106 | + or die('Error: '.mysqli_error($mysqli)); |
|
107 | 107 | |
108 | 108 | unlink("$crew_logo_save_path$crew_select.$crew[crew_logo]"); |
109 | 109 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $sql = $mysqli->query("SELECT * FROM crew_menu_prod |
126 | 126 | WHERE crew_id = '$crew_select'") or die("error selecting crew from crew_menu_prod"); |
127 | 127 | if ($sql->num_rows > 0) { |
128 | - $_SESSION['edit_message'] = "This crew is still linked to a menu disk - remove that link first"; |
|
128 | + $_SESSION['edit_message'] = "This crew is still linked to a menu disk - remove that link first"; |
|
129 | 129 | header("Location: ../crew/crew_main.php"); |
130 | 130 | } else { |
131 | 131 | $sql = $mysqli->query("SELECT * FROM crew_demo_prod |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $crew = $sql_crew->fetch_array(MYSQLI_BOTH); |
141 | 141 | |
142 | 142 | $crew_logo = $crew['crew_logo']; |
143 | - if ($crew['crew_logo'] =! '') { |
|
143 | + if ($crew['crew_logo'] = !'') { |
|
144 | 144 | unlink("$crew_logo_save_path$crew_select.$crew_logo"); |
145 | 145 | } |
146 | 146 | |
@@ -148,16 +148,16 @@ discard block |
||
148 | 148 | create_log_entry('Crew', $crew_select, 'Crew', $crew_select, 'Delete', $_SESSION['user_id']); |
149 | 149 | |
150 | 150 | $mysqli->query("DELETE FROM crew WHERE crew_id='$crew_select'") |
151 | - or die('Error: ' . mysqli_error($mysqli)); |
|
151 | + or die('Error: '.mysqli_error($mysqli)); |
|
152 | 152 | ; |
153 | 153 | $mysqli->query("DELETE FROM sub_crew WHERE crew_id='$crew_select'") |
154 | - or die('Error: ' . mysqli_error($mysqli)); |
|
154 | + or die('Error: '.mysqli_error($mysqli)); |
|
155 | 155 | ; |
156 | 156 | $mysqli->query("DELETE FROM sub_crew WHERE parent_id='$crew_select'") |
157 | - or die('Error: ' . mysqli_error($mysqli)); |
|
157 | + or die('Error: '.mysqli_error($mysqli)); |
|
158 | 158 | ; |
159 | 159 | $mysqli->query("DELETE FROM crew_individual WHERE crew_id='$crew_select'") |
160 | - or die('Error: ' . mysqli_error($mysqli)); |
|
160 | + or die('Error: '.mysqli_error($mysqli)); |
|
161 | 161 | ; |
162 | 162 | header("Location: ../crew/crew_main.php"); |
163 | 163 | } |
@@ -118,7 +118,7 @@ |
||
118 | 118 | header("Location: ../crew/crew_main.php"); |
119 | 119 | } else { |
120 | 120 | //Send all smarty variables to the templates |
121 | - $smarty->display("file:" . $cpanel_template_folder . "crew/crew_editor.html"); |
|
121 | + $smarty->display("file:".$cpanel_template_folder."crew/crew_editor.html"); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | //close the connection |
@@ -25,17 +25,17 @@ discard block |
||
25 | 25 | |
26 | 26 | if (isset($crewsearch)) { |
27 | 27 | } else { |
28 | - $crewsearch=''; |
|
28 | + $crewsearch = ''; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | if (isset($crewbrowse)) { |
32 | 32 | } else { |
33 | - $crewbrowse=''; |
|
33 | + $crewbrowse = ''; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | if (isset($message)) { |
37 | 37 | } else { |
38 | - $message=''; |
|
38 | + $message = ''; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | if (isset($new_crew)) { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $smarty->assign('az_output', $az_output); |
207 | 207 | |
208 | 208 | //Send all smarty variables to the templates |
209 | -$smarty->display("file:" . $cpanel_template_folder . "crew/crew_genealogy.html"); |
|
209 | +$smarty->display("file:".$cpanel_template_folder."crew/crew_genealogy.html"); |
|
210 | 210 | |
211 | 211 | //close the connection |
212 | 212 | mysqli_close($mysqli); |
@@ -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); |