Passed
Push — master ( d2c0dc...0fcf70 )
by Nicolas
04:54
created
public/php/admin/games/ajax_submission_games.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
public/php/admin/games/games_release_detail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,6 +160,6 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
public/php/admin/games/games_review_edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,5 +117,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
public/php/admin/games/db_games_facts.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -175,8 +175,8 @@  discard block
 block discarded – undo
175 175
                 $smarty->append(
176 176
                     'facts_screenshots',
177 177
                     array('game_fact_id' => $sql_games_facts['game_fact_id'],
178
-                       'screenshot_id' => $sql_screenshots_facts['screenshot_id'],
179
-                       'game_fact_screenshot' => $new_path)
178
+                        'screenshot_id' => $sql_screenshots_facts['screenshot_id'],
179
+                        'game_fact_screenshot' => $new_path)
180 180
                 );
181 181
             }
182 182
 
@@ -290,8 +290,8 @@  discard block
 block discarded – undo
290 290
             $smarty->append(
291 291
                 'facts_screenshots',
292 292
                 array('game_fact_id' => $sql_games_facts['game_fact_id'],
293
-                   'screenshot_id' => $sql_screenshots_facts['screenshot_id'],
294
-                   'game_fact_screenshot' => $new_path)
293
+                    'screenshot_id' => $sql_screenshots_facts['screenshot_id'],
294
+                    'game_fact_screenshot' => $new_path)
295 295
             );
296 296
         }
297 297
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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'];
Please login to merge, or discard this patch.
public/php/admin/games/db_games_upload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
public/php/admin/games/games_review.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
public/php/admin/games/ajax_game_search.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
             //Game names can only be 40 chars long
278 278
             if (strlen($sql_game_search['game_name']) > 40) {
279 279
                 $game_name = substr($sql_game_search['game_name'], 0, 40);
280
-                $game_name = $game_name . '...';
280
+                $game_name = $game_name.'...';
281 281
             } else {
282 282
                 $game_name = $sql_game_search['game_name'];
283 283
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             //publishers can only be 18 chars long
286 286
             if (strlen($sql_game_search['publisher_name']) > 18) {
287 287
                 $pub_name = substr($sql_game_search['publisher_name'], 0, 18);
288
-                $pub_name = $pub_name . '...';
288
+                $pub_name = $pub_name.'...';
289 289
             } else {
290 290
                 $pub_name = $sql_game_search['publisher_name'];
291 291
             }
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
             //developers can only be 18 chars long
294 294
             if (strlen($sql_game_search['developer_name']) > 18) {
295 295
                 $dev_name = substr($sql_game_search['developer_name'], 0, 18);
296
-                $dev_name = $dev_name . '...';
296
+                $dev_name = $dev_name.'...';
297 297
             } else {
298 298
                 $dev_name = $sql_game_search['developer_name'];
299 299
             }
@@ -320,10 +320,10 @@  discard block
 block discarded – undo
320 320
         $smarty->assign("user_id", $_SESSION['user_id']);
321 321
 
322 322
         //Send all smarty variables to the templates
323
-        $smarty->display("file:" . $cpanel_template_folder . "games/ajax_game_search.html");
323
+        $smarty->display("file:".$cpanel_template_folder."games/ajax_game_search.html");
324 324
     } else {
325 325
         // If there are no search results
326 326
         $smarty->assign("nr_of_games", 'none');
327
-        $smarty->display("file:" . $cpanel_template_folder . "games/ajax_game_search.html");
327
+        $smarty->display("file:".$cpanel_template_folder."games/ajax_game_search.html");
328 328
     }
329 329
 }
Please login to merge, or discard this patch.
public/php/admin/games/games_series_add_series.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,4 +38,4 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
public/php/admin/games/db_games_submissions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     //require_once __DIR__."/../../lib/Db.php";
29 29
     //require_once __DIR__."/../../common/DAO/GameSubmissionDAO.php";
30 30
 
31
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
31
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
32 32
         //****************************************************************************************
33 33
         // This is where the submissions get "sent" to "done"
34 34
         //****************************************************************************************
@@ -71,11 +71,11 @@  discard block
 block discarded – undo
71 71
     //require_once __DIR__."/../../lib/Db.php";
72 72
     //require_once __DIR__."/../../common/DAO/GameSubmissionDAO.php";
73 73
 
74
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
74
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
75 75
         if (isset($submit_id)) {
76 76
             //Let's first check if this submission has screenshots.
77 77
             $query_submit_screenshot = $mysqli->query("SELECT * FROM screenshot_game_submitinfo
78
-                WHERE game_submitinfo_id = " . $submit_id . "")
78
+                WHERE game_submitinfo_id = " . $submit_id."")
79 79
                 or die("something is wrong with mysqli of submissions screenshots");
80 80
 
81 81
             while ($sql_submit_screenshot = $query_submit_screenshot->fetch_array(MYSQLI_BOTH)) {
@@ -122,12 +122,12 @@  discard block
 block discarded – undo
122 122
     //require_once __DIR__."/../../lib/Db.php";
123 123
     //require_once __DIR__."/../../common/DAO/GameSubmissionDAO.php";
124 124
 
125
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
125
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
126 126
         if (isset($submit_id)) {
127 127
             //Let's first check if this submission has screenshots.
128 128
             //If so, it is not suited for movement to comment section!
129 129
             $query_submit_screenshot = $mysqli->query("SELECT * FROM screenshot_game_submitinfo
130
-                WHERE game_submitinfo_id = " . $submit_id . "")
130
+                WHERE game_submitinfo_id = " . $submit_id."")
131 131
                 or die("something is wrong with mysqli of submissions screenshots");
132 132
             $v_rows = $query_submit_screenshot->num_rows;
133 133
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 $message = "Submission has screenshots and is not suited for the comment section";
136 136
             } else {
137 137
                 $query_submit = $mysqli->query("SELECT * FROM game_submitinfo
138
-                    WHERE game_submitinfo_id = " . $submit_id . "") or die("something is wrong with mysqli");
138
+                    WHERE game_submitinfo_id = " . $submit_id."") or die("something is wrong with mysqli");
139 139
                 $sql_submit = $query_submit->fetch_array(MYSQLI_BOTH) or die("something is wrong with mysqli2");
140 140
 
141 141
                 $submit_text   = $sql_submit['submit_text'];
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
                 $sql = $mysqli->query("INSERT INTO game_user_comments (game_id,comment_id)
154 154
                     VALUES ('$sub_game_id',LAST_INSERT_ID())") or die("something is wrong with INSERT mysql4");
155 155
 
156
-                $sql = $mysqli->query("DELETE FROM game_submitinfo WHERE game_submitinfo_id = " . $submit_id . "")
156
+                $sql = $mysqli->query("DELETE FROM game_submitinfo WHERE game_submitinfo_id = ".$submit_id."")
157 157
                     or die("couldn't delete game_submissions quote");
158 158
 
159 159
                 $message = "Submission converted to game comment";
Please login to merge, or discard this patch.