@@ -48,7 +48,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -32,7 +32,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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); |
@@ -151,7 +151,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -117,7 +117,7 @@ |
||
| 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); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | LEFT JOIN users ON (demo_submitinfo.user_id = users.user_id) |
| 40 | 40 | WHERE demo_done = '1' |
| 41 | 41 | ORDER BY demo_submitinfo.demo_submitinfo_id |
| 42 | - DESC LIMIT " . $v_counter . ", 25"); |
|
| 42 | + DESC LIMIT " . $v_counter.", 25"); |
|
| 43 | 43 | |
| 44 | 44 | //check the number of comments |
| 45 | 45 | $query_number = $mysqli->query("SELECT * FROM demo_submitinfo |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | LEFT JOIN users ON (demo_submitinfo.user_id = users.user_id) |
| 54 | 54 | WHERE demo_done <> '1' |
| 55 | 55 | ORDER BY demo_submitinfo.demo_submitinfo_id |
| 56 | - DESC LIMIT " . $v_counter . ", 25"); |
|
| 56 | + DESC LIMIT " . $v_counter.", 25"); |
|
| 57 | 57 | |
| 58 | 58 | //check the number of comments |
| 59 | 59 | $query_number = $mysqli->query("SELECT * FROM demo_submitinfo |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | // Retrive userstats from database |
| 83 | - $query_user = $mysqli->query("SELECT * |
|
| 83 | + $query_user = $mysqli->query("SELECT * |
|
| 84 | 84 | FROM demo_user_comments |
| 85 | 85 | LEFT JOIN comments ON ( demo_user_comments.comments_id = comments.comments_id ) |
| 86 | 86 | WHERE user_id = '$query_submission[user_id]'"); |
@@ -149,4 +149,4 @@ discard block |
||
| 149 | 149 | )); |
| 150 | 150 | |
| 151 | 151 | //Send all smarty variables to the templates |
| 152 | -$smarty->display("file:" . $cpanel_template_folder . "demos/submission_demos.html"); |
|
| 152 | +$smarty->display("file:".$cpanel_template_folder."demos/submission_demos.html"); |
|
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | $smarty->assign('nr_of_entries', $i); |
| 99 | 99 | |
| 100 | 100 | //Send all smarty variables to the templates |
| 101 | - $smarty->display("file:" . $cpanel_template_folder . "demos/demos_music_list.html"); |
|
| 101 | + $smarty->display("file:".$cpanel_template_folder."demos/demos_music_list.html"); |
|
| 102 | 102 | |
| 103 | 103 | //close the connection |
| 104 | 104 | mysqli_close($mysqli); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | // Obtain the contentlist of the zip file. |
| 38 | 38 | if (($list = $zip->listContent()) == 0) { |
| 39 | - die("Error : " . $zip->errorInfo(true)); |
|
| 39 | + die("Error : ".$zip->errorInfo(true)); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | // Get the filename from the returned array |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $archive = new PclZip("$tempfilename"); |
| 75 | 75 | |
| 76 | 76 | if ($archive->extract(PCLZIP_OPT_PATH, "$demo_file_temp_path") == 0) { |
| 77 | - die("Error : " . $archive->errorInfo(true)); |
|
| 77 | + die("Error : ".$archive->errorInfo(true)); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | // rename diskimage to increment number |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $archive = new PclZip("$demo_file_path$demodownrow[0].zip"); |
| 86 | 86 | $v_list = $archive->create("$demo_file_temp_path$demodownrow[0].$ext", PCLZIP_OPT_REMOVE_ALL_PATH); |
| 87 | 87 | if ($v_list == 0) { |
| 88 | - die("Error : " . $archive->errorInfo(true)); |
|
| 88 | + die("Error : ".$archive->errorInfo(true)); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | // Time to do the safeties, here we do a md5 file hash that we later enter into the database, this will be used |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $smarty->assign("user_id", $_SESSION['user_id']); |
| 56 | 56 | |
| 57 | 57 | //Send all smarty variables to the templates |
| 58 | -$smarty->display("file:" . $cpanel_template_folder . "demos/demos_screenshot_add.html"); |
|
| 58 | +$smarty->display("file:".$cpanel_template_folder."demos/demos_screenshot_add.html"); |
|
| 59 | 59 | |
| 60 | 60 | //close the connection |
| 61 | 61 | mysqli_close($mysqli); |
@@ -274,7 +274,7 @@ |
||
| 274 | 274 | $smarty->assign('demo_detail_tpl', '1'); |
| 275 | 275 | |
| 276 | 276 | //Send all smarty variables to the templates |
| 277 | -$smarty->display("file:" . $cpanel_template_folder . "index.html"); |
|
| 277 | +$smarty->display("file:".$cpanel_template_folder."index.html"); |
|
| 278 | 278 | |
| 279 | 279 | //close the connection |
| 280 | 280 | mysqli_close($mysqli); |