Passed
Push — master ( d0aeb4...d92c88 )
by Nicolas
07:53
created
public/php/admin/administration/statistics.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
 //Lets get all the date of the selected user
32 32
 $sql_users = $mysqli->query("SELECT * FROM users
33
-                          WHERE user_id = '" . $_SESSION['user_id'] . "' ") or die("Couldn't query users Database");
33
+                          WHERE user_id = '" . $_SESSION['user_id']."' ") or die("Couldn't query users Database");
34 34
 
35 35
 while ($query_users = $sql_users->fetch_array(MYSQLI_BOTH)) {
36 36
     $smarty->assign('users', array(
@@ -61,35 +61,35 @@  discard block
 block discarded – undo
61 61
 //******************************************//
62 62
 
63 63
 //* Karma 0 to 100
64
-$result   = $mysqli->query("SELECT * FROM users WHERE karma > '0' and karma <= '100'")
64
+$result = $mysqli->query("SELECT * FROM users WHERE karma > '0' and karma <= '100'")
65 65
     or die("error getting karma 0 - 100");
66 66
 $karma = $result->num_rows;
67 67
 $karma_good_value[0] = $karma;
68 68
 $karma_good_label[0] = "<100";
69 69
 
70 70
 //* Karma 100 to 500
71
-$result   = $mysqli->query("SELECT * FROM users WHERE karma > '100' and karma <= '500'")
71
+$result = $mysqli->query("SELECT * FROM users WHERE karma > '100' and karma <= '500'")
72 72
     or die("error getting karma 0 - 500");
73 73
 $karma = $result->num_rows;
74 74
 $karma_good_value[1] = $karma;
75 75
 $karma_good_label[1] = "<500";
76 76
 
77 77
 //* Karma 500 to 1000
78
-$result   = $mysqli->query("SELECT * FROM users WHERE karma > '500' and karma <= '1000'")
78
+$result = $mysqli->query("SELECT * FROM users WHERE karma > '500' and karma <= '1000'")
79 79
     or die("error getting karma 500 - 2000");
80 80
 $karma = $result->num_rows;
81 81
 $karma_good_value[2] = $karma;
82 82
 $karma_good_label[2] = "<1000";
83 83
 
84 84
 //* Karma 1000 to 2000
85
-$result   = $mysqli->query("SELECT * FROM users WHERE karma > '1000' and karma <= '2000'")
85
+$result = $mysqli->query("SELECT * FROM users WHERE karma > '1000' and karma <= '2000'")
86 86
     or die("error getting karma 500 - 2000");
87 87
 $karma = $result->num_rows;
88 88
 $karma_good_value[3] = $karma;
89 89
 $karma_good_label[3] = "<2000";
90 90
 
91 91
 //* Karma > 2000
92
-$result   = $mysqli->query("SELECT * FROM users WHERE karma > '2000'")
92
+$result = $mysqli->query("SELECT * FROM users WHERE karma > '2000'")
93 93
     or die("error getting karma > 2000");
94 94
 $karma = $result->num_rows;
95 95
 $karma_good_value[4] = $karma;
@@ -103,35 +103,35 @@  discard block
 block discarded – undo
103 103
 //******************************************//
104 104
 
105 105
 //* Karma 0 to -100
106
-$result   = $mysqli->query("SELECT * FROM users WHERE karma <= '0' and karma >= '-100'")
106
+$result = $mysqli->query("SELECT * FROM users WHERE karma <= '0' and karma >= '-100'")
107 107
     or die("error getting karma 0 -100");
108 108
 $karma = $result->num_rows;
109 109
 $karma_bad_value[0] = $karma;
110 110
 $karma_bad_label[0] = ">-100";
111 111
 
112 112
 //* Karma -100 to -500
113
-$result   = $mysqli->query("SELECT * FROM users WHERE karma < '-100' and karma >= '-500'")
113
+$result = $mysqli->query("SELECT * FROM users WHERE karma < '-100' and karma >= '-500'")
114 114
     or die("error getting karma -100 -500");
115 115
 $karma = $result->num_rows;
116 116
 $karma_bad_value[1] = $karma;
117 117
 $karma_bad_label[1] = ">-500";
118 118
 
119 119
 //* Karma -500 to -1000
120
-$result   = $mysqli->query("SELECT * FROM users WHERE karma < '-500' and karma >= '-1000'")
120
+$result = $mysqli->query("SELECT * FROM users WHERE karma < '-500' and karma >= '-1000'")
121 121
     or die("error getting karma -500 -2000");
122 122
 $karma = $result->num_rows;
123 123
 $karma_bad_value[2] = $karma;
124 124
 $karma_bad_label[2] = ">-1000";
125 125
 
126 126
 //* Karma -1000 to -2000
127
-$result   = $mysqli->query("SELECT * FROM users WHERE karma < '-1000' and karma >= '-2000'")
127
+$result = $mysqli->query("SELECT * FROM users WHERE karma < '-1000' and karma >= '-2000'")
128 128
     or die("error getting karma -500 -2000");
129 129
 $karma = $result->num_rows;
130 130
 $karma_bad_value[3] = $karma;
131 131
 $karma_bad_label[3] = ">-2000";
132 132
 
133 133
 //* Karma < 2000
134
-$result   = $mysqli->query("SELECT * FROM users WHERE karma < '-2000'") or die("error getting karma > 2000");
134
+$result = $mysqli->query("SELECT * FROM users WHERE karma < '-2000'") or die("error getting karma > 2000");
135 135
 $karma = $result->num_rows;
136 136
 $karma_bad_value[4] = $karma;
137 137
 $karma_bad_label[4] = "<-2000";
@@ -173,63 +173,63 @@  discard block
 block discarded – undo
173 173
 // Changes per Section
174 174
 //**************************************
175 175
 //* Changelog - Games
176
-$result   = $mysqli->query("SELECT * FROM change_log WHERE section = 'Games'")
176
+$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Games'")
177 177
     or die("error getting games from change_log");
178 178
 $change_log = $result->num_rows;
179 179
 $change_log_data[0] = $change_log;
180 180
 $change_log_label[0] = "Games";
181 181
 
182 182
 //* Changelog - Users
183
-$result   = $mysqli->query("SELECT * FROM change_log WHERE section = 'Users'")
183
+$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Users'")
184 184
     or die("error getting Users from change_log");
185 185
 $change_log = $result->num_rows;
186 186
 $change_log_data[1] = $change_log;
187 187
 $change_log_label[1] = "Users";
188 188
 
189 189
 //* Changelog - Links
190
-$result   = $mysqli->query("SELECT * FROM change_log WHERE section = 'Links'")
190
+$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Links'")
191 191
     or die("error getting Links from change_log");
192 192
 $change_log = $result->num_rows;
193 193
 $change_log_data[2] = $change_log;
194 194
 $change_log_label[2] = "Links";
195 195
 
196 196
 //* Changelog - Individuals
197
-$result   = $mysqli->query("SELECT * FROM change_log WHERE section = 'Individuals'")
197
+$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Individuals'")
198 198
     or die("error getting Individuals from change_log");
199 199
 $change_log = $result->num_rows;
200 200
 $change_log_data[3] = $change_log;
201 201
 $change_log_label[3] = "Individuals";
202 202
 
203 203
 //* Changelog - News
204
-$result   = $mysqli->query("SELECT * FROM change_log WHERE section = 'News'")
204
+$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'News'")
205 205
     or die("error getting News from change_log");
206 206
 $change_log = $result->num_rows;
207 207
 $change_log_data[4] = $change_log;
208 208
 $change_log_label[4] = "News";
209 209
 
210 210
 //* Changelog - Crew
211
-$result   = $mysqli->query("SELECT * FROM change_log WHERE section = 'Crew'")
211
+$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Crew'")
212 212
     or die("error getting Crew from change_log");
213 213
 $change_log = $result->num_rows;
214 214
 $change_log_data[5] = $change_log;
215 215
 $change_log_label[5] = "Crew";
216 216
 
217 217
 //* Changelog - Menu disk
218
-$result   = $mysqli->query("SELECT * FROM change_log WHERE section = 'Menu disk'")
218
+$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Menu disk'")
219 219
     or die("error getting Menu disk from change_log");
220 220
 $change_log = $result->num_rows;
221 221
 $change_log_data[6] = $change_log;
222 222
 $change_log_label[6] = "Menu disk";
223 223
 
224 224
 //* Changelog - Downloads
225
-$result   = $mysqli->query("SELECT * FROM change_log WHERE section = 'Downloads'")
225
+$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Downloads'")
226 226
     or die("error getting Downloads from change_log");
227 227
 $change_log = $result->num_rows;
228 228
 $change_log_data[7] = $change_log;
229 229
 $change_log_label[7] = "Downloads";
230 230
 
231 231
 //* Changelog - Articles
232
-$result   = $mysqli->query("SELECT * FROM change_log WHERE section = 'Articles'")
232
+$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Articles'")
233 233
     or die("error getting Articles from change_log");
234 234
 $change_log = $result->num_rows;
235 235
 $change_log_data[8] = $change_log;
@@ -247,8 +247,8 @@  discard block
 block discarded – undo
247 247
 $last_year = date("Y") - 1;
248 248
 $current_year = date("Y") - 1;
249 249
 $current_day = 01;
250
-$months = array(1=>'Jan',2=>'Feb',3=>'Mar',4=>'Apr',5=>'May',
251
-    6=>'Jun',7=>'Jul',8=>'Aug',9=>'Sep',10=>'Oct',11=>'Nov',12=>'Dec');
250
+$months = array(1=>'Jan', 2=>'Feb', 3=>'Mar', 4=>'Apr', 5=>'May',
251
+    6=>'Jun', 7=>'Jul', 8=>'Aug', 9=>'Sep', 10=>'Oct', 11=>'Nov', 12=>'Dec');
252 252
 $i = 0;
253 253
 
254 254
 if ($current_month == 13) {
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
     $date_high = date_to_timestamp($current_year, $current_month, $current_day);
291 291
     $date_low = date_to_timestamp($last_year, $last_month, $current_day);
292 292
 
293
-    $result_monthly   = $mysqli->query("SELECT * FROM change_log
293
+    $result_monthly = $mysqli->query("SELECT * FROM change_log
294 294
         WHERE timestamp >= $date_low and timestamp < $date_high") or die("error getting change_log data");
295 295
     $change_log_monthly = $result_monthly->num_rows;
296 296
     $change_log_monthly_data[$i] = $change_log_monthly;
@@ -314,4 +314,4 @@  discard block
 block discarded – undo
314 314
 $smarty->assign('change_log_border', json_encode($change_log_border));
315 315
 
316 316
 //Send all smarty variables to the templates
317
-$smarty->display("file:" . $cpanel_template_folder . "administration/start_page.html");
317
+$smarty->display("file:".$cpanel_template_folder."administration/start_page.html");
Please login to merge, or discard this patch.
public/php/admin/administration/ajax_comments_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
 if (isset($action) and $action == "save_comment_text") {
34 34
     if (isset($comments_id)) {
35
-        if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
35
+        if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
36 36
             if (!$commentsDao->saveCommentText($comments_id, $comment_text, $comment_type)) {
37 37
                 $osd = "Comment Updated!";
38 38
             } else {
@@ -50,4 +50,4 @@  discard block
 block discarded – undo
50 50
 }
51 51
 
52 52
 //Send all smarty variables to the templates
53
-$smarty->display("file:" . $cpanel_template_folder . "administration/ajax_comments_edit.html");
53
+$smarty->display("file:".$cpanel_template_folder."administration/ajax_comments_edit.html");
Please login to merge, or discard this patch.
public/php/admin/administration/db_comments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 //****************************************************************************************
21 21
 if (isset($action) and $action == "delete") {
22 22
     if (isset($comments_id)) {
23
-        if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
23
+        if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
24 24
             //Set up queries
25 25
             $sql_games = "SELECT * FROM game_user_comments WHERE comment_id = '$comments_id'";
26 26
             $sql_interviews = "SELECT * FROM interview_user_comments WHERE comment_id = '$comments_id'";
Please login to merge, or discard this patch.
public/php/admin/administration/comments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,4 +66,4 @@
 block discarded – undo
66 66
 }
67 67
 
68 68
 //Send all smarty variables to the templates
69
-$smarty->display("file:" . $cpanel_template_folder . "administration/comments.html");
69
+$smarty->display("file:".$cpanel_template_folder."administration/comments.html");
Please login to merge, or discard this patch.
public/php/admin/administration/bug_report_type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 $smarty->assign("user_id", $_SESSION['user_id']);
37 37
 
38 38
 //Send all smarty variables to the templates
39
-$smarty->display("file:" . $cpanel_template_folder . "administration/bug_report_type.html");
39
+$smarty->display("file:".$cpanel_template_folder."administration/bug_report_type.html");
40 40
 
41 41
 //close the connection
42 42
 mysqli_free_result($result_bug_report_type);
Please login to merge, or discard this patch.
public/php/admin/administration/database_update.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,4 +143,4 @@
 block discarded – undo
143 143
 }
144 144
 
145 145
 // Send all smarty variables to the templates
146
-$smarty->display("file:" . $cpanel_template_folder . "administration/database_update.html");
146
+$smarty->display("file:".$cpanel_template_folder."administration/database_update.html");
Please login to merge, or discard this patch.
public/php/admin/administration/bug_report_type_edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     }
51 51
 
52 52
     //Send all smarty variables to the templates
53
-    $smarty->display("file:" . $cpanel_template_folder . "administration/bug_report_type_edit.html");
53
+    $smarty->display("file:".$cpanel_template_folder."administration/bug_report_type_edit.html");
54 54
 }
55 55
 
56 56
 //close the connection
Please login to merge, or discard this patch.
public/php/admin/administration/change_log.php 1 patch
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -45,14 +45,14 @@  discard block
 block discarded – undo
45 45
 if ($action == 'log_search') {
46 46
     $log_timestamp = date_to_timestamp($Date_Year, $Date_Month, $Date_Day);
47 47
     $sql_log       = $mysqli->query("SELECT * FROM change_log WHERE timestamp < '$log_timestamp'
48
-                               ORDER BY change_log_id DESC LIMIT  " . $v_counter . ", 25");
48
+                               ORDER BY change_log_id DESC LIMIT  ".$v_counter.", 25");
49 49
 
50 50
     $v_number = $sql_log->num_rows;
51 51
     $smarty->assign('rec_nr', $v_number);
52 52
 } else {
53 53
     $sql_log = $mysqli->query("SELECT *
54 54
                              FROM change_log
55
-                             ORDER BY change_log_id DESC LIMIT  " . $v_counter . ", 25");
55
+                             ORDER BY change_log_id DESC LIMIT  " . $v_counter.", 25");
56 56
 
57 57
     $v_number = $sql_log->num_rows;
58 58
     $smarty->assign('rec_nr', $v_number);
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
     //  create the section link and the subsection link
66 66
     //  the GAMES SECTION
67 67
     if ($log['section'] == 'Games') {
68
-        $section_link = ("../games/games_detail.php" . '?game_id=' . $log['section_id']);
68
+        $section_link = ("../games/games_detail.php".'?game_id='.$log['section_id']);
69 69
 
70 70
         if ($log['sub_section'] == 'Game' or $log['sub_section'] == 'AKA' or $log['sub_section'] == 'Year'
71 71
             or $log['sub_section'] == 'Submission' or $log['sub_section'] == 'Sound hardware'
72 72
             or $log['sub_section'] == 'Box back' or $log['sub_section'] == 'Box front') {
73
-            $subsection_link = ("../games/games_detail.php" . '?game_id=' . $log['sub_section_id']);
73
+            $subsection_link = ("../games/games_detail.php".'?game_id='.$log['sub_section_id']);
74 74
         }
75 75
 
76 76
         if ($log['sub_section'] == 'Release') {
@@ -78,34 +78,34 @@  discard block
 block discarded – undo
78 78
         }
79 79
 
80 80
         if ($log['sub_section'] == 'Creator') {
81
-            $subsection_link = ("../individuals/individuals_edit.php" . '?ind_id=' . $log['sub_section_id']);
81
+            $subsection_link = ("../individuals/individuals_edit.php".'?ind_id='.$log['sub_section_id']);
82 82
         }
83 83
 
84 84
         if ($log['sub_section'] == 'Publisher' or $log['sub_section'] == 'Developer') {
85
-            $subsection_link = ("../company/company_edit.php" . '?comp_id=' . $log['sub_section_id']);
85
+            $subsection_link = ("../company/company_edit.php".'?comp_id='.$log['sub_section_id']);
86 86
         }
87 87
 
88 88
         if ($log['sub_section'] == 'File') {
89
-            $subsection_link = ("../downloads/downloads_game_detail.php" . '?game_id=' . $log['sub_section_id']);
89
+            $subsection_link = ("../downloads/downloads_game_detail.php".'?game_id='.$log['sub_section_id']);
90 90
         }
91 91
 
92 92
         if ($log['sub_section'] == 'Fact') {
93
-            $subsection_link = ("../games/games_facts.php" . '?game_id=' . $log['sub_section_id']
94
-                . '&game_name=' . $log['section_name']);
93
+            $subsection_link = ("../games/games_facts.php".'?game_id='.$log['sub_section_id']
94
+                . '&game_name='.$log['section_name']);
95 95
         }
96 96
 
97 97
         if ($log['sub_section'] == 'Screenshot') {
98
-            $subsection_link = ("../games/games_screenshot_add.php" . '?game_id=' . $log['sub_section_id']
99
-                . '&game_name=' . $log['section_name']);
98
+            $subsection_link = ("../games/games_screenshot_add.php".'?game_id='.$log['sub_section_id']
99
+                . '&game_name='.$log['section_name']);
100 100
         }
101 101
 
102 102
         if ($log['sub_section'] == 'Mag score') {
103
-            $subsection_link = ("../magazine/magazine_review_score.php" . '?game_id=' . $log['sub_section_id']
104
-                . '&game_name=' . $log['section_name']);
103
+            $subsection_link = ("../magazine/magazine_review_score.php".'?game_id='.$log['sub_section_id']
104
+                . '&game_name='.$log['section_name']);
105 105
         }
106 106
 
107 107
         if ($log['sub_section'] == 'Similar') {
108
-            $subsection_link = ("../games/games_similar.php" . '?game_id=' . $log['sub_section_id'] . '&game_name='
108
+            $subsection_link = ("../games/games_similar.php".'?game_id='.$log['sub_section_id'].'&game_name='
109 109
                 . $log['section_name']);
110 110
         }
111 111
 
@@ -122,28 +122,28 @@  discard block
 block discarded – undo
122 122
                 //$subsection_link = ("../games/games_review_add.php" . '?game_id=' . $log['section_id']);
123 123
                 $subsection_link = ("../games/games_review.php");
124 124
             } else {
125
-                $subsection_link = ("../games/games_review_edit.php" . '?reviewid=' . $log['sub_section_id']
126
-                    . '&game_id=' . $log['section_id']);
125
+                $subsection_link = ("../games/games_review_edit.php".'?reviewid='.$log['sub_section_id']
126
+                    . '&game_id='.$log['section_id']);
127 127
             }
128 128
         }
129 129
 
130 130
         if ($log['sub_section'] == 'Music') {
131
-            $subsection_link = ("../games/games_music_detail.php" . '?game_id=' . $log['sub_section_id']);
131
+            $subsection_link = ("../games/games_music_detail.php".'?game_id='.$log['sub_section_id']);
132 132
         }
133 133
     }
134 134
 
135 135
     //  the GAMES SERIES SECTION
136 136
     if ($log['section'] == 'Game series') {
137
-        $section_link = ("../games/games_series_editor.php" . '?game_series_id=' . $log['section_id']
137
+        $section_link = ("../games/games_series_editor.php".'?game_series_id='.$log['section_id']
138 138
             . '&series_page=series_editor');
139 139
 
140 140
         if ($log['sub_section'] == 'Series') {
141
-            $subsection_link = ("../games/games_series_editor.php" . '?game_series_id=' . $log['section_id']
141
+            $subsection_link = ("../games/games_series_editor.php".'?game_series_id='.$log['section_id']
142 142
                 . '&series_page=series_editor');
143 143
         }
144 144
 
145 145
         if ($log['sub_section'] == 'Game') {
146
-            $subsection_link = ("../games/games_detail.php" . '?game_id=' . $log['sub_section_id']);
146
+            $subsection_link = ("../games/games_detail.php".'?game_id='.$log['sub_section_id']);
147 147
         }
148 148
     }
149 149
 
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
                 $section_link = '';
175 175
                 $subsection_link = '';
176 176
             } else {
177
-                $section_link    = ("../user/user_detail.php" . '?user_id_selected=' . $log['section_id']);
178
-                $subsection_link = ("../user/user_detail.php" . '?user_id_selected=' . $log['sub_section_id']);
177
+                $section_link    = ("../user/user_detail.php".'?user_id_selected='.$log['section_id']);
178
+                $subsection_link = ("../user/user_detail.php".'?user_id_selected='.$log['sub_section_id']);
179 179
             }
180 180
         }
181 181
 
@@ -190,10 +190,10 @@  discard block
 block discarded – undo
190 190
 
191 191
     //  the LINKS SECTION
192 192
     if ($log['section'] == 'Links') {
193
-        $section_link = ("../links/link_mod.php" . '?website_id=' . $log['section_id']);
193
+        $section_link = ("../links/link_mod.php".'?website_id='.$log['section_id']);
194 194
 
195 195
         if ($log['sub_section'] == 'Link' or $log['sub_section'] == 'Category') {
196
-            $subsection_link = ("../links/link_mod.php" . '?website_id=' . $log['section_id']);
196
+            $subsection_link = ("../links/link_mod.php".'?website_id='.$log['section_id']);
197 197
         }
198 198
 
199 199
         if ($log['sub_section'] == 'Link submit') {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
     //  the COMPANY SECTION
216 216
     if ($log['section'] == 'Company') {
217
-        $section_link = ("../company/company_edit.php" . '?comp_id=' . $log['section_id']);
217
+        $section_link = ("../company/company_edit.php".'?comp_id='.$log['section_id']);
218 218
 
219 219
         if ($log['sub_section'] == 'Company' or $log['sub_section'] == 'Logo') {
220 220
             $subsection_link = $section_link;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
     //  the INDIVIDUALS SECTION
225 225
     if ($log['section'] == 'Individuals') {
226
-        $section_link = ("../individuals/individuals_edit.php" . '?ind_id=' . $log['section_id']);
226
+        $section_link = ("../individuals/individuals_edit.php".'?ind_id='.$log['section_id']);
227 227
 
228 228
         if ($log['sub_section'] == 'Individual' or $log['sub_section'] == 'Image'
229 229
             or $log['sub_section'] == 'Nickname') {
@@ -242,14 +242,14 @@  discard block
 block discarded – undo
242 242
 
243 243
     //  the INTERVIEW SECTION
244 244
     if ($log['section'] == 'Interviews') {
245
-        $section_link = ("../interviews/interviews_edit.php" . '?interview_id=' . $log['sub_section_id']);
245
+        $section_link = ("../interviews/interviews_edit.php".'?interview_id='.$log['sub_section_id']);
246 246
 
247 247
         if ($log['sub_section'] == 'Interview' or $log['sub_section'] == 'Screenshots') {
248 248
             $subsection_link = $section_link;
249 249
         }
250 250
 
251 251
         if ($log['sub_section'] == 'Comment') {
252
-            $section_link = ("../interviews/interviews_edit.php" . '?interview_id=' . $log['section_id']);
252
+            $section_link = ("../interviews/interviews_edit.php".'?interview_id='.$log['section_id']);
253 253
             if ($log['action'] == 'Delete') {
254 254
                 $subsection_link = ("../administration/change_log.php");
255 255
             } else {
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         }
280 280
 
281 281
         if ($log['sub_section'] == 'News item') {
282
-            $section_link    = ("../news/news_edit.php" . '?news_id=' . $log['sub_section_id']);
282
+            $section_link    = ("../news/news_edit.php".'?news_id='.$log['sub_section_id']);
283 283
             $subsection_link = $section_link;
284 284
         }
285 285
 
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 
292 292
     //  the MENU SET SECTION
293 293
     if ($log['section'] == 'Menu set') {
294
-        $section_link = ("../menus/menus_disk_list.php" . '?menu_sets_id=' . $log['section_id']);
294
+        $section_link = ("../menus/menus_disk_list.php".'?menu_sets_id='.$log['section_id']);
295 295
 
296 296
         if ($log['sub_section'] == 'Menu set' or $log['sub_section'] == 'Menu disk (multiple)'
297 297
             or $log['sub_section'] == 'Menu type' or $log['sub_section'] == 'Menu disk') {
@@ -299,30 +299,30 @@  discard block
 block discarded – undo
299 299
         }
300 300
 
301 301
         if ($log['sub_section'] == 'Crew') {
302
-            $subsection_link = "../crew/crew_editor.php?crewbrowse=&crewsearch=&crew_select=" . $log['sub_section_id'];
302
+            $subsection_link = "../crew/crew_editor.php?crewbrowse=&crewsearch=&crew_select=".$log['sub_section_id'];
303 303
         }
304 304
 
305 305
         if ($log['sub_section'] == 'Individual') {
306
-            $subsection_link = ("../individuals/individuals_edit.php" . '?ind_id=' . $log['sub_section_id']);
306
+            $subsection_link = ("../individuals/individuals_edit.php".'?ind_id='.$log['sub_section_id']);
307 307
         }
308 308
     }
309 309
 
310 310
     //  the CREW SECTION
311 311
     if ($log['section'] == 'Crew') {
312
-        $section_link = "../crew/crew_editor.php?crewbrowse=&crewsearch=&crew_select=" . $log['section_id'];
312
+        $section_link = "../crew/crew_editor.php?crewbrowse=&crewsearch=&crew_select=".$log['section_id'];
313 313
 
314 314
         if ($log['sub_section'] == 'Crew' or $log['sub_section'] == 'Logo') {
315
-            $subsection_link = "../crew/crew_editor.php?crewbrowse=&crewsearch=&crew_select=" . $log['sub_section_id'];
315
+            $subsection_link = "../crew/crew_editor.php?crewbrowse=&crewsearch=&crew_select=".$log['sub_section_id'];
316 316
         }
317 317
 
318 318
         if ($log['sub_section'] == 'Subcrew') {
319
-            $subsection_link = "../crew/crew_editor.php?crewbrowse=&crewsearch=&crew_select=" . $log['sub_section_id'];
319
+            $subsection_link = "../crew/crew_editor.php?crewbrowse=&crewsearch=&crew_select=".$log['sub_section_id'];
320 320
             $section_link    = "../crew/crew_genealogy.php?action=genealogy&crewbrowse=&crewsearch=&crew_select="
321 321
                 . $log['section_id'];
322 322
         }
323 323
 
324 324
         if ($log['sub_section'] == 'Member' or $log['sub_section'] == 'Nickname') {
325
-            $subsection_link = ("../individuals/individuals_edit.php" . '?ind_id=' . $log['sub_section_id']);
325
+            $subsection_link = ("../individuals/individuals_edit.php".'?ind_id='.$log['sub_section_id']);
326 326
             $section_link    = "../crew/crew_genealogy.php?action=genealogy&crewbrowse=&crewsearch=&crew_select="
327 327
                 . $log['section_id'];
328 328
         }
@@ -330,24 +330,24 @@  discard block
 block discarded – undo
330 330
 
331 331
     //  the MENU TYPE SECTION
332 332
     if ($log['section'] == 'Menu type') {
333
-        $section_link = ("../menus/menus_type_edit.php" . '?menu_type_id=' . $log['section_id']);
333
+        $section_link = ("../menus/menus_type_edit.php".'?menu_type_id='.$log['section_id']);
334 334
 
335 335
         if ($log['sub_section'] == 'Menu type') {
336
-            $subsection_link = ("../menus/menus_type_edit.php" . '?menu_type_id=' . $log['section_id']);
336
+            $subsection_link = ("../menus/menus_type_edit.php".'?menu_type_id='.$log['section_id']);
337 337
         }
338 338
     }
339 339
 
340 340
     //  the MENU DISK SECTION
341 341
     if ($log['section'] == 'Menu disk') {
342
-        $section_link    = ("../menus/menus_disk_list.php" . '?menu_sets_id=' . $log['section_id']);
342
+        $section_link    = ("../menus/menus_disk_list.php".'?menu_sets_id='.$log['section_id']);
343 343
         $subsection_link = $section_link;
344 344
 
345 345
         if ($log['sub_section'] == 'Credits' or $log['sub_section'] == 'Nickname') {
346
-            $subsection_link = ("../individuals/individuals_edit.php" . '?ind_id=' . $log['sub_section_id']);
346
+            $subsection_link = ("../individuals/individuals_edit.php".'?ind_id='.$log['sub_section_id']);
347 347
         }
348 348
 
349 349
         if ($log['sub_section'] == 'Game' or $log['sub_section'] == 'Game doc' or $log['sub_section'] == 'Authors') {
350
-            $subsection_link = ("../games/games_detail.php" . '?game_id=' . $log['sub_section_id']);
350
+            $subsection_link = ("../games/games_detail.php".'?game_id='.$log['sub_section_id']);
351 351
         }
352 352
 
353 353
         if ($log['sub_section'] == 'Demo' or $log['sub_section'] == 'Tool' or $log['sub_section'] == 'Tool doc') {
@@ -355,20 +355,20 @@  discard block
 block discarded – undo
355 355
         }
356 356
 
357 357
         if ($log['sub_section'] == 'Doc type') {
358
-            $subsection_link = ("../docs/doc_type_edit.php" . '?doc_type_id=' . $log['sub_section_id']);
358
+            $subsection_link = ("../docs/doc_type_edit.php".'?doc_type_id='.$log['sub_section_id']);
359 359
         }
360 360
     }
361 361
 
362 362
     //  the ARTICLES SECTION
363 363
     if ($log['section'] == 'Articles') {
364
-        $section_link = ("../articles/articles_edit.php" . '?article_id=' . $log['sub_section_id']);
364
+        $section_link = ("../articles/articles_edit.php".'?article_id='.$log['sub_section_id']);
365 365
 
366 366
         if ($log['sub_section'] == 'Article' or $log['sub_section'] == 'Screenshots') {
367 367
             $subsection_link = $section_link;
368 368
         }
369 369
 
370 370
         if ($log['sub_section'] == 'Comment') {
371
-            $section_link = ("../articles/articles_edit.php" . '?article_id=' . $log['section_id']);
371
+            $section_link = ("../articles/articles_edit.php".'?article_id='.$log['section_id']);
372 372
             if ($log['action'] == 'Delete') {
373 373
                 $subsection_link = ("../administration/comments.php");
374 374
             } else {
@@ -379,86 +379,86 @@  discard block
 block discarded – undo
379 379
 
380 380
     //  the ARTICLE TYPE SECTION
381 381
     if ($log['section'] == 'Article type') {
382
-        $section_link = ("../articles/article_type_edit.php" . '?article_type_id=' . $log['section_id']);
382
+        $section_link = ("../articles/article_type_edit.php".'?article_type_id='.$log['section_id']);
383 383
 
384 384
         if ($log['sub_section'] == 'Article type') {
385
-            $subsection_link = ("../articles/article_type_edit.php" . '?article_type_id=' . $log['section_id']);
385
+            $subsection_link = ("../articles/article_type_edit.php".'?article_type_id='.$log['section_id']);
386 386
         }
387 387
     }
388 388
 
389 389
     //  the DOC TYPE SECTION
390 390
     if ($log['section'] == 'Doc type') {
391
-        $section_link = ("../docs/doc_type_edit.php" . '?doc_type_id=' . $log['section_id']);
391
+        $section_link = ("../docs/doc_type_edit.php".'?doc_type_id='.$log['section_id']);
392 392
 
393 393
         if ($log['sub_section'] == 'Doc type') {
394
-            $subsection_link = ("../docs/doc_type_edit.php" . '?doc_type_id=' . $log['section_id']);
394
+            $subsection_link = ("../docs/doc_type_edit.php".'?doc_type_id='.$log['section_id']);
395 395
         }
396 396
     }
397 397
 
398 398
     //  the DOC CATEGORRY SECTION
399 399
     if ($log['section'] == 'Doc category') {
400
-        $section_link = ("../docs/doc_category_edit.php" . '?doc_category_id=' . $log['section_id']);
400
+        $section_link = ("../docs/doc_category_edit.php".'?doc_category_id='.$log['section_id']);
401 401
 
402 402
         if ($log['sub_section'] == 'Doc category') {
403
-            $subsection_link = ("../docs/doc_category_edit.php" . '?doc_category_id=' . $log['section_id']);
403
+            $subsection_link = ("../docs/doc_category_edit.php".'?doc_category_id='.$log['section_id']);
404 404
         }
405 405
     }
406 406
 
407 407
     //  the DOWNLOAD FORMAT SECTION
408 408
     if ($log['section'] == 'Format') {
409
-        $section_link = ("../downloads/download_format_edit.php" . '?format_id=' . $log['section_id']);
409
+        $section_link = ("../downloads/download_format_edit.php".'?format_id='.$log['section_id']);
410 410
 
411 411
         if ($log['sub_section'] == 'Format') {
412
-            $subsection_link = ("../downloads/download_format_edit.php" . '?format_id=' . $log['section_id']);
412
+            $subsection_link = ("../downloads/download_format_edit.php".'?format_id='.$log['section_id']);
413 413
         }
414 414
     }
415 415
 
416 416
     //  the DOWNLOAD LINGO SECTION
417 417
     if ($log['section'] == 'Lingo') {
418
-        $section_link = ("../downloads/download_lingo_edit.php" . '?lingo_id=' . $log['section_id']);
418
+        $section_link = ("../downloads/download_lingo_edit.php".'?lingo_id='.$log['section_id']);
419 419
 
420 420
         if ($log['sub_section'] == 'Lingo') {
421
-            $subsection_link = ("../downloads/download_lingo_edit.php" . '?lingo_id=' . $log['section_id']);
421
+            $subsection_link = ("../downloads/download_lingo_edit.php".'?lingo_id='.$log['section_id']);
422 422
         }
423 423
     }
424 424
 
425 425
     //  the DOWNLOAD OPTIONS SECTION
426 426
     if ($log['section'] == 'Option') {
427
-        $section_link = ("../downloads/download_options_edit.php" . '?option_id=' . $log['section_id']);
427
+        $section_link = ("../downloads/download_options_edit.php".'?option_id='.$log['section_id']);
428 428
 
429 429
         if ($log['sub_section'] == 'Option') {
430
-            $subsection_link = ("../downloads/download_options_edit.php" . '?option_id=' . $log['section_id']);
430
+            $subsection_link = ("../downloads/download_options_edit.php".'?option_id='.$log['section_id']);
431 431
         }
432 432
     }
433 433
 
434 434
     //  the TOS VERSION SECTION
435 435
     if ($log['section'] == 'TOS') {
436
-        $section_link = ("../downloads/download_tos_edit.php" . '?tos_id=' . $log['section_id']);
436
+        $section_link = ("../downloads/download_tos_edit.php".'?tos_id='.$log['section_id']);
437 437
 
438 438
         if ($log['sub_section'] == 'TOS') {
439
-            $subsection_link = ("../downloads/download_tos_edit.php" . '?tos_id=' . $log['section_id']);
439
+            $subsection_link = ("../downloads/download_tos_edit.php".'?tos_id='.$log['section_id']);
440 440
         }
441 441
     }
442 442
 
443 443
     //  the TRAINER OPTION SECTION
444 444
     if ($log['section'] == 'Trainer') {
445
-        $section_link = ("../downloads/download_trainer_edit.php" . '?trainer_id=' . $log['section_id']);
445
+        $section_link = ("../downloads/download_trainer_edit.php".'?trainer_id='.$log['section_id']);
446 446
 
447 447
         if ($log['sub_section'] == 'Trainer') {
448
-            $subsection_link = ("../downloads/download_trainer_edit.php" . '?trainer_id=' . $log['section_id']);
448
+            $subsection_link = ("../downloads/download_trainer_edit.php".'?trainer_id='.$log['section_id']);
449 449
         }
450 450
     }
451 451
 
452 452
     //  the DOWNLOAD EDIT SECTION
453 453
     if ($log['section'] == 'Downloads') {
454
-        $section_link = ("../downloads/downloads_game_detail.php" . '?game_id=' . $log['section_id']);
454
+        $section_link = ("../downloads/downloads_game_detail.php".'?game_id='.$log['section_id']);
455 455
 
456 456
         if ($log['sub_section'] == 'Options') {
457
-            $subsection_link = ("../downloads/download_options_edit.php" . '?option_id=' . $log['sub_section_id']);
457
+            $subsection_link = ("../downloads/download_options_edit.php".'?option_id='.$log['sub_section_id']);
458 458
         }
459 459
 
460 460
         if ($log['sub_section'] == 'TOS') {
461
-            $subsection_link = ("../downloads/download_tos_edit.php" . '?tos_id=' . $log['sub_section_id']);
461
+            $subsection_link = ("../downloads/download_tos_edit.php".'?tos_id='.$log['sub_section_id']);
462 462
         }
463 463
 
464 464
         if ($log['sub_section'] == 'Details') {
@@ -474,7 +474,7 @@  discard block
 block discarded – undo
474 474
         }
475 475
 
476 476
         if ($log['sub_section'] == 'Trainer') {
477
-            $subsection_link = ("../downloads/download_trainer_edit.php" . '?trainer_id=' . $log['sub_section_id']);
477
+            $subsection_link = ("../downloads/download_trainer_edit.php".'?trainer_id='.$log['sub_section_id']);
478 478
         }
479 479
 
480 480
         if ($log['sub_section'] == 'Crew') {
@@ -483,16 +483,16 @@  discard block
 block discarded – undo
483 483
         }
484 484
 
485 485
         if ($log['sub_section'] == 'Authors') {
486
-            $subsection_link = ("../individuals/individuals_edit.php" . '?ind_id=' . $log['sub_section_id']);
486
+            $subsection_link = ("../individuals/individuals_edit.php".'?ind_id='.$log['sub_section_id']);
487 487
         }
488 488
     }
489 489
 
490 490
     //  the BUG REPORT TYPE SECTION
491 491
     if ($log['section'] == 'Bug type') {
492
-        $section_link = ("../administration/bug_report_type_edit.php" . '?type_id=' . $log['section_id']);
492
+        $section_link = ("../administration/bug_report_type_edit.php".'?type_id='.$log['section_id']);
493 493
 
494 494
         if ($log['sub_section'] == 'Bug type') {
495
-            $subsection_link = ("../administration/bug_report_type_edit.php" . '?type_id=' . $log['section_id']);
495
+            $subsection_link = ("../administration/bug_report_type_edit.php".'?type_id='.$log['section_id']);
496 496
         }
497 497
     }
498 498
 
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
 
511 511
     //  the GAMES RELEASE SECTION
512 512
     if ($log['section'] == 'Game Release') {
513
-        $section_link    = ("../games/games_release_detail.php" . '?game_id=' . $log['section_id'] . '&release_id='
513
+        $section_link = ("../games/games_release_detail.php".'?game_id='.$log['section_id'].'&release_id='
514 514
             . $log['sub_section_id']);
515 515
         if ($log['sub_section'] == 'Game Release' or $log['sub_section'] == 'Release Info'
516 516
             or $log['sub_section'] == 'Release AKA' or $log['sub_section'] == 'Compatibility'
@@ -524,8 +524,8 @@  discard block
 block discarded – undo
524 524
             or $log['sub_section'] == 'Media Scan Type' or $log['sub_section'] == 'Media'
525 525
             or $log['sub_section'] == 'Crew'
526 526
             or $log['sub_section'] == 'Dump' or $log['sub_section'] == 'Media Scan' or $log['sub_section'] == 'Scan') {
527
-            $subsection_link = ("../games/games_release_detail.php" . '?game_id=' . $log['section_id']
528
-                . '&release_id=' . $log['sub_section_id']);
527
+            $subsection_link = ("../games/games_release_detail.php".'?game_id='.$log['section_id']
528
+                . '&release_id='.$log['sub_section_id']);
529 529
         }
530 530
     }
531 531
 
@@ -547,10 +547,10 @@  discard block
 block discarded – undo
547 547
 if ($v_counter > 0) {
548 548
     // Build the link
549 549
     if ($action == 'log_search') {
550
-        $v_linkback = ("change_log.php?action=log_search" . '&Date_Year=' . ($Date_Year) . '&Date_Month='
551
-            . ($Date_Month) . '&Date_Day=' . ($Date_Day) . '&v_counter=' . ($v_counter - 25));
550
+        $v_linkback = ("change_log.php?action=log_search".'&Date_Year='.($Date_Year).'&Date_Month='
551
+            . ($Date_Month).'&Date_Day='.($Date_Day).'&v_counter='.($v_counter - 25));
552 552
     } else {
553
-        $v_linkback = ("change_log.php" . '?v_counter=' . ($v_counter - 25));
553
+        $v_linkback = ("change_log.php".'?v_counter='.($v_counter - 25));
554 554
     }
555 555
 }
556 556
 
@@ -558,10 +558,10 @@  discard block
 block discarded – undo
558 558
 if ($v_log > ($v_counter + 25)) {
559 559
     // Build the link
560 560
     if ($action == 'log_search') {
561
-        $v_linknext = ("change_log.php?action=log_search" . '&Date_Year=' . ($Date_Year) . '&Date_Month='
562
-            . ($Date_Month) . '&Date_Day=' . ($Date_Day) . '&v_counter=' . ($v_counter + 25));
561
+        $v_linknext = ("change_log.php?action=log_search".'&Date_Year='.($Date_Year).'&Date_Month='
562
+            . ($Date_Month).'&Date_Day='.($Date_Day).'&v_counter='.($v_counter + 25));
563 563
     } else {
564
-        $v_linknext = ("change_log.php" . '?v_counter=' . ($v_counter + 25));
564
+        $v_linknext = ("change_log.php".'?v_counter='.($v_counter + 25));
565 565
     }
566 566
 }
567 567
 
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
 $smarty->assign("user_id", $_SESSION['user_id']);
574 574
 
575 575
 //Send all smarty variables to the templates
576
-$smarty->display("file:" . $cpanel_template_folder . "administration/change_log.html");
576
+$smarty->display("file:".$cpanel_template_folder."administration/change_log.html");
577 577
 
578 578
 //close the connection
579 579
 mysqli_close($mysqli);
Please login to merge, or discard this patch.
public/php/admin/administration/ajax_comments_search.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,4 +46,4 @@
 block discarded – undo
46 46
 ));
47 47
 
48 48
 //Send all smarty variables to the templates
49
-$smarty->display("file:" . $cpanel_template_folder . "administration/ajax_comments_search.html");
49
+$smarty->display("file:".$cpanel_template_folder."administration/ajax_comments_search.html");
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  *
11 11
  ***************************************************************************/
12 12
 
13
- //load all common functions
13
+    //load all common functions
14 14
 include("../../config/common.php");
15 15
 include("../../config/admin.php");
16 16
 
Please login to merge, or discard this patch.