@@ -41,4 +41,4 @@ |
||
41 | 41 | )); |
42 | 42 | |
43 | 43 | //Send all smarty variables to the templates |
44 | -$smarty->display("file:" . $cpanel_template_folder . "magazine/magazine_review_list.html"); |
|
44 | +$smarty->display("file:".$cpanel_template_folder."magazine/magazine_review_list.html"); |
@@ -31,4 +31,4 @@ |
||
31 | 31 | } |
32 | 32 | |
33 | 33 | //Send all smarty variables to the templates |
34 | -$smarty->display("file:" . $cpanel_template_folder . "magazine/magazine_manage.html"); |
|
34 | +$smarty->display("file:".$cpanel_template_folder."magazine/magazine_manage.html"); |
@@ -43,4 +43,4 @@ |
||
43 | 43 | )); |
44 | 44 | |
45 | 45 | //Send all smarty variables to the templates |
46 | -$smarty->display("file:" . $cpanel_template_folder . "magazine/magazine_setscore.html"); |
|
46 | +$smarty->display("file:".$cpanel_template_folder."magazine/magazine_setscore.html"); |
@@ -50,4 +50,4 @@ |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | //Send all smarty variables to the templates |
53 | -$smarty->display("file:" . $cpanel_template_folder . "magazine/magazine_edit.html"); |
|
53 | +$smarty->display("file:".$cpanel_template_folder."magazine/magazine_edit.html"); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | include("../../config/admin.php"); |
26 | 26 | |
27 | 27 | if (empty($catpick)) { |
28 | - $catpick=1; |
|
28 | + $catpick = 1; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | $SQL = "SELECT website_category_id, website_category_name FROM website_category ORDER BY website_category_name"; |
@@ -35,16 +35,16 @@ discard block |
||
35 | 35 | |
36 | 36 | mysqli_data_seek($linkcategorysql, 0) or die("what happend?"); |
37 | 37 | while (list($category_id, $category_name) = $linkcategorysql->fetch_array(MYSQLI_BOTH)) { |
38 | - if ($category_id==$website_category_id) { |
|
39 | - $selected="SELECTED"; |
|
38 | + if ($category_id == $website_category_id) { |
|
39 | + $selected = "SELECTED"; |
|
40 | 40 | } else { |
41 | - $selected=""; |
|
41 | + $selected = ""; |
|
42 | 42 | } |
43 | 43 | |
44 | - if ($catpick==$category_id) { |
|
45 | - $selected="SELECTED"; |
|
44 | + if ($catpick == $category_id) { |
|
45 | + $selected = "SELECTED"; |
|
46 | 46 | } else { |
47 | - $selected=""; |
|
47 | + $selected = ""; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | $smarty->append('category', array( |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | if (isset($catpick)) { |
57 | - $website_category_id=$catpick; |
|
57 | + $website_category_id = $catpick; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | $LINKSQL = $mysqli->query("SELECT * FROM website |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | WHERE website.website_id='$website_id'") |
31 | 31 | or die("Error while querying the links database"); |
32 | 32 | |
33 | -$rowlink= $LINKSQL->fetch_array(MYSQLI_BOTH); |
|
33 | +$rowlink = $LINKSQL->fetch_array(MYSQLI_BOTH); |
|
34 | 34 | |
35 | 35 | $website_image = $website_image_path; |
36 | 36 | $website_image .= $rowlink['website_id']; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $smarty->assign('nr_of_cats', $nr_of_cats); |
68 | 68 | |
69 | 69 | // Do the category selector |
70 | -$RESULT=$mysqli->query("SELECT * FROM website_category ORDER BY website_category_name"); |
|
70 | +$RESULT = $mysqli->query("SELECT * FROM website_category ORDER BY website_category_name"); |
|
71 | 71 | |
72 | 72 | while ($rowlinkcat = $RESULT->fetch_array(MYSQLI_BOTH)) { |
73 | 73 | $smarty->append('category', array( |
@@ -72,4 +72,4 @@ |
||
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"); |
@@ -34,7 +34,7 @@ |
||
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); |
@@ -25,7 +25,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | //************************************************************************* |