@@ -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); |
@@ -192,7 +192,7 @@ |
||
| 192 | 192 | $smarty->assign("user_id", $_SESSION['user_id']); |
| 193 | 193 | |
| 194 | 194 | //Send all smarty variables to the templates |
| 195 | - $smarty->display("file:" . $cpanel_template_folder . "demos/demos_list.html"); |
|
| 195 | + $smarty->display("file:".$cpanel_template_folder."demos/demos_list.html"); |
|
| 196 | 196 | } else { |
| 197 | 197 | $message = "No entries found for your selection"; |
| 198 | 198 | $smarty->assign("message", $message); |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | "Downloads" => array("Crew", "Details", "TOS"), |
| 22 | 22 | "Format" => array("Format"), |
| 23 | 23 | "Game series" => array("Game", "Series"), |
| 24 | - "Games" => array("AKA", "Box back", "Box front", "Comment","Creator", |
|
| 25 | - "Developer", "Fact", "File", "Mag score", "Music","Game", "Publisher", |
|
| 24 | + "Games" => array("AKA", "Box back", "Box front", "Comment", "Creator", |
|
| 25 | + "Developer", "Fact", "File", "Mag score", "Music", "Game", "Publisher", |
|
| 26 | 26 | "Review", "Review comment", "Screenshot", "Similar", "Submission", "Year", |
| 27 | 27 | "Release", "Sound hardware" |
| 28 | 28 | ), |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | $this->id = $id; |
| 70 | 70 | |
| 71 | 71 | // Check if the section is valid |
| 72 | - if (! array_key_exists($section, self::SECTIONS)) { |
|
| 72 | + if (!array_key_exists($section, self::SECTIONS)) { |
|
| 73 | 73 | die("Unknown section '$section'. Only " |
| 74 | 74 | .join(", ", array_keys(self::SECTIONS))." are supported"); |
| 75 | 75 | } |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $this->section_value = $section_value; |
| 79 | 79 | |
| 80 | 80 | // Check is the sub-section is valid for the section |
| 81 | - if (! in_array($sub_section, self::SECTIONS[$section])) { |
|
| 81 | + if (!in_array($sub_section, self::SECTIONS[$section])) { |
|
| 82 | 82 | die("Unknown sub-section '$sub_section'. Only " |
| 83 | 83 | .join(", ", self::SECTIONS[$section])." are supported for $section"); |
| 84 | 84 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $this->user_id = $user_id; |
| 90 | 90 | |
| 91 | 91 | // Check if the action is valid |
| 92 | - if (! in_array($action, self::ACTIONS)) { |
|
| 92 | + if (!in_array($action, self::ACTIONS)) { |
|
| 93 | 93 | die("Unknown action '$action'. Only ".self::ACTIONS." are supported"); |
| 94 | 94 | } |
| 95 | 95 | $this->action = $action; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | // Changes per Section by this user |
| 20 | 20 | //************************************** |
| 21 | 21 | //* Changelog - Games |
| 22 | -$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Games' and user_id = $user_id_contrib") |
|
| 22 | +$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Games' and user_id = $user_id_contrib") |
|
| 23 | 23 | or die("error getting games from change_log"); |
| 24 | 24 | $change_log = $result->num_rows; |
| 25 | 25 | $change_log_bg[0] = "#c2c2c2"; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $change_log_label[0] = "Games"; |
| 28 | 28 | |
| 29 | 29 | //* Changelog - Links |
| 30 | -$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Links' and user_id = $user_id_contrib") |
|
| 30 | +$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Links' and user_id = $user_id_contrib") |
|
| 31 | 31 | or die("error getting Links from change_log"); |
| 32 | 32 | $change_log = $result->num_rows; |
| 33 | 33 | $change_log_bg[1] = "#666666"; |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $change_log_label[1] = "Links"; |
| 36 | 36 | |
| 37 | 37 | //* Changelog - Individuals |
| 38 | -$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Individuals' and user_id = $user_id_contrib") |
|
| 38 | +$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Individuals' and user_id = $user_id_contrib") |
|
| 39 | 39 | or die("error getting Individuals from change_log"); |
| 40 | 40 | $change_log = $result->num_rows; |
| 41 | 41 | $change_log_bg[2] = "#c2c2c2"; |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $change_log_label[2] = "Individuals"; |
| 44 | 44 | |
| 45 | 45 | //* Changelog - News |
| 46 | -$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'News' and user_id = $user_id_contrib") |
|
| 46 | +$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'News' and user_id = $user_id_contrib") |
|
| 47 | 47 | or die("error getting News from change_log"); |
| 48 | 48 | $change_log = $result->num_rows; |
| 49 | 49 | $change_log_bg[3] = "#666666"; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $change_log_label[3] = "News"; |
| 52 | 52 | |
| 53 | 53 | //* Changelog - Crew |
| 54 | -$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Crew' and user_id = $user_id_contrib") |
|
| 54 | +$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Crew' and user_id = $user_id_contrib") |
|
| 55 | 55 | or die("error getting Crew from change_log"); |
| 56 | 56 | $change_log = $result->num_rows; |
| 57 | 57 | $change_log_bg[4] = "#c2c2c2"; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $change_log_label[4] = "Crew"; |
| 60 | 60 | |
| 61 | 61 | //* Changelog - Menu disk |
| 62 | -$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Menu disk' and user_id = $user_id_contrib") |
|
| 62 | +$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Menu disk' and user_id = $user_id_contrib") |
|
| 63 | 63 | or die("error getting Menu disk from change_log"); |
| 64 | 64 | $change_log = $result->num_rows; |
| 65 | 65 | $change_log_bg[5] = "#666666"; |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | $change_log_label[5] = "Menu disk"; |
| 68 | 68 | |
| 69 | 69 | //* Changelog - Downloads |
| 70 | -$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Downloads' and user_id = $user_id_contrib") |
|
| 70 | +$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Downloads' and user_id = $user_id_contrib") |
|
| 71 | 71 | or die("error getting Downloads from change_log"); |
| 72 | 72 | $change_log = $result->num_rows; |
| 73 | 73 | $change_log_bg[6] = "#c2c2c2"; |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | $change_log_label[6] = "Downloads"; |
| 76 | 76 | |
| 77 | 77 | //* Changelog - Articles |
| 78 | -$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Articles' and user_id = $user_id_contrib") |
|
| 78 | +$result = $mysqli->query("SELECT * FROM change_log WHERE section = 'Articles' and user_id = $user_id_contrib") |
|
| 79 | 79 | or die("error getting Articles from change_log"); |
| 80 | 80 | $change_log = $result->num_rows; |
| 81 | 81 | $change_log_bg[7] = "#666666"; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | //(instead of a post with pure HTML) The translation of the 'enter' breaks is different in JS, so in JS I do a |
| 52 | 52 | // conversion to a <br>. However, when we edit a comment, this <br> should not be |
| 53 | 53 | //visible to the user, hence again, now this conversion in php |
| 54 | - $breaks = array("<br />","<br>","<br/>"); |
|
| 54 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
| 55 | 55 | $comment = str_ireplace($breaks, "\r\n", $comment); |
| 56 | 56 | |
| 57 | 57 | $date = date("d/m/y", $query_comment['timestamp']); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | |
| 37 | 37 | $smarty->append( |
| 38 | 38 | 'recent_interviews', |
| 39 | - array( 'individual_name' => $sql_recent_interviews['ind_name'], |
|
| 39 | + array('individual_name' => $sql_recent_interviews['ind_name'], |
|
| 40 | 40 | 'individual_id' => $sql_recent_interviews['ind_id'], |
| 41 | 41 | 'interview_author' => $sql_recent_interviews['userid'], |
| 42 | 42 | 'interview_author_id' => $sql_recent_interviews['user_id'], |