Passed
Push — master ( d2c0dc...0fcf70 )
by Nicolas
04:54
created
public/php/admin/links/link_addnew.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,4 +72,4 @@
 block discarded – undo
72 72
 }
73 73
 
74 74
 //Send all smarty variables to the templates
75
-$smarty->display("file:" . $cpanel_template_folder . "links/link_addnew.html");
75
+$smarty->display("file:".$cpanel_template_folder."links/link_addnew.html");
Please login to merge, or discard this patch.
public/php/admin/articles/article_type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 $smarty->assign("user_id", $_SESSION['user_id']);
35 35
 
36 36
 //Send all smarty variables to the templates
37
-$smarty->display("file:" . $cpanel_template_folder . "articles/article_type.html");
37
+$smarty->display("file:".$cpanel_template_folder."articles/article_type.html");
38 38
 
39 39
 //close the connection
40 40
 mysqli_free_result($result_menus_type);
Please login to merge, or discard this patch.
public/php/admin/articles/db_articles.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
 //If we are uploading new screenshots
27 27
 if (isset($action2) and $action2 == 'add_screens') {
28
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
28
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
29 29
         //Here we'll be looping on each of the inputs on the page that are filled in with an image!
30 30
         $image = $_FILES['image'];
31 31
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                     // this also creates an autoinc number for us.
55 55
 
56 56
                     $sdbquery = $mysqli->query("INSERT INTO screenshot_main (imgext) VALUES ('$ext')")
57
-                        or die('Error: ' . mysqli_error($mysqli));
57
+                        or die('Error: '.mysqli_error($mysqli));
58 58
 
59 59
                     //select the newly entered screenshot_id from the main table
60 60
                     $screenshot_id = $mysqli->insert_id;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     $smarty->assign('article_id', $article_id);
131 131
 
132 132
     //Send to smarty for return value
133
-    $smarty->display("file:" . $cpanel_template_folder . "articles/ajax_article_add_screenshots.html");
133
+    $smarty->display("file:".$cpanel_template_folder."articles/ajax_article_add_screenshots.html");
134 134
 }
135 135
 
136 136
 //*************************************************************************
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
 //If the delete comment has been triggered
188 188
 if (isset($action) and $action == 'delete_screenshot_comment') {
189
-    if ($_SESSION['permission']==1 or $_SESSION['permission']=='1') {
189
+    if ($_SESSION['permission'] == 1 or $_SESSION['permission'] == '1') {
190 190
         $sql_articleshot = $mysqli->query("SELECT * FROM screenshot_article
191 191
                               WHERE article_id = $article_id
192 192
                         AND screenshot_id = $screenshot_id") or die("Database error - selecting screenshots article");
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     $smarty->assign('article_id', $article_id);
269 269
 
270 270
     //Send to smarty for return value
271
-    $smarty->display("file:" . $cpanel_template_folder . "articles/ajax_article_add_screenshots.html");
271
+    $smarty->display("file:".$cpanel_template_folder."articles/ajax_article_add_screenshots.html");
272 272
 }
273 273
 
274 274
 //*************************************************************************
Please login to merge, or discard this patch.
public/php/admin/articles/article_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 . "articles/article_type_edit.html");
53
+    $smarty->display("file:".$cpanel_template_folder."articles/article_type_edit.html");
54 54
 }
55 55
 
56 56
 //close the connection
Please login to merge, or discard this patch.
public/php/admin/articles/articles_edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
 $smarty->assign("user_id", $_SESSION['user_id']);
112 112
 
113 113
 //Send all smarty variables to the templates
114
-$smarty->display("file:" . $cpanel_template_folder . "articles/articles_edit.html");
114
+$smarty->display("file:".$cpanel_template_folder."articles/articles_edit.html");
115 115
 
116 116
 //close the connection
117 117
 mysqli_close($mysqli);
Please login to merge, or discard this patch.
public/php/admin/articles/articles_main.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     LEFT JOIN article_text on (article_main.article_id = article_text.article_id)
49 49
     LEFT JOIN article_type on (article_main.article_type_id = article_type.article_type_id)
50 50
     LEFT JOIN users on ( article_main.user_id = users.user_id )
51
-    ORDER BY article_text.article_date DESC LIMIT  " . $v_counter . ", 5")
51
+    ORDER BY article_text.article_date DESC LIMIT  " . $v_counter.", 5")
52 52
     or die("Couldn't query database for articles");
53 53
 
54 54
 while ($article = $sql_articles->fetch_array(MYSQLI_BOTH)) {
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
 //Check if back arrow is needed
78 78
 if ($v_counter > 0) {
79 79
     // Build the link
80
-    $v_linkback = ('?v_counter=' . ($v_counter - 5));
80
+    $v_linkback = ('?v_counter='.($v_counter - 5));
81 81
 }
82 82
 
83 83
 //Check if we need to place a next arrow
84 84
 if ($v_rows > ($v_counter + 5)) {
85 85
     //Build the link
86
-    $v_linknext = ('?v_counter=' . ($v_counter + 5));
86
+    $v_linknext = ('?v_counter='.($v_counter + 5));
87 87
 }
88 88
 
89 89
 if (empty($c_counter)) {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 $smarty->assign("user_id", $_SESSION['user_id']);
107 107
 
108 108
 //Send all smarty variables to the templates
109
-$smarty->display("file:" . $cpanel_template_folder . "articles/articles_main.html");
109
+$smarty->display("file:".$cpanel_template_folder."articles/articles_main.html");
110 110
 
111 111
 //close the connection
112 112
 mysqli_close($mysqli);
Please login to merge, or discard this patch.
public/php/admin/demos/demos_music_detail.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     $fp = fopen($filename, "rb");
33 33
 
34 34
     header("Content-Type: $sql_music[mime_type]");
35
-    header("Content-Length: " . filesize($filename));
35
+    header("Content-Length: ".filesize($filename));
36 36
 
37 37
     if ($sql_music[imgext] == 'mod') {
38 38
         header('Content-Disposition: attachment; filename="music.mod"');
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     LEFT JOIN music_types ON (music.music_id = music_types.music_id)
93 93
     LEFT JOIN music_types_main ON (music_types.music_types_main_id = music_types_main.music_types_main_id)
94 94
     WHERE demo_music.demo_id='$demo_id'");
95
-$i         = 0;
95
+$i = 0;
96 96
 while ($MUSIC = $sql_music->fetch_array(MYSQLI_BOTH)) {
97 97
     $i++;
98 98
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 $smarty->assign("user_id", $_SESSION['user_id']);
137 137
 
138 138
 //Send all smarty variables to the templates
139
-$smarty->display("file:" . $cpanel_template_folder . "demos/demos_music_detail.html");
139
+$smarty->display("file:".$cpanel_template_folder."demos/demos_music_detail.html");
140 140
 
141 141
 //close the connection
142 142
 mysqli_close($mysqli);
Please login to merge, or discard this patch.
public/php/admin/demos/demos_detail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 //let's get the crew for this demo
152 152
 $sql_crew = $mysqli->query("SELECT * FROM crew
153 153
     LEFT JOIN crew_demo_prod ON ( crew.crew_id = crew_demo_prod.crew_id )
154
-    WHERE crew_demo_prod.demo_id = '$demo_id' ORDER BY crew_name ASC")or die("Couldn't query publishers");
154
+    WHERE crew_demo_prod.demo_id = '$demo_id' ORDER BY crew_name ASC") or die("Couldn't query publishers");
155 155
 
156 156
 while ($crew = $sql_crew->fetch_array(MYSQLI_BOTH)) {
157 157
     $url_crew_name = rawurlencode($crew['crew_name']);
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 $smarty->assign("user_id", $_SESSION['user_id']);
211 211
 
212 212
 //Send all smarty variables to the templates
213
-$smarty->display("file:" . $cpanel_template_folder . "demos/demos_detail.html");
213
+$smarty->display("file:".$cpanel_template_folder."demos/demos_detail.html");
214 214
 
215 215
 //close the connection
216 216
 mysqli_close($mysqli);
Please login to merge, or discard this patch.
public/php/admin/demos/demos_upload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 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 . "demos/demos_upload.html");
120
+$smarty->display("file:".$cpanel_template_folder."demos/demos_upload.html");
121 121
 
122 122
 //close the connection
123 123
 mysqli_close($mysqli);
Please login to merge, or discard this patch.