@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | require "../../config/admin.php"; |
19 | 19 | |
20 | 20 | if (isset($action)) { |
21 | - if ($action=='delete_comment') { |
|
21 | + if ($action == 'delete_comment') { |
|
22 | 22 | create_log_entry('Games', $comment_id, 'Comment', $comment_id, 'Delete', $_SESSION['user_id']); |
23 | 23 | |
24 | 24 | $sql = $mysqli->query("DELETE FROM game_user_comments WHERE comment_id = '$comment_id'") |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | LEFT JOIN comments ON ( game_user_comments.comment_id = comments.comments_id ) |
66 | 66 | LEFT JOIN users ON ( comments.user_id = users.user_id ) |
67 | 67 | LEFT JOIN game ON ( game_user_comments.game_id = game.game_id ) |
68 | - " . $where_clause . " |
|
69 | - ORDER BY comments.timestamp DESC LIMIT " . $v_counter . ", 5"; |
|
68 | + " . $where_clause." |
|
69 | + ORDER BY comments.timestamp DESC LIMIT " . $v_counter.", 5"; |
|
70 | 70 | |
71 | 71 | $sql_comment = $mysqli->query($sql_build); |
72 | 72 | |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | //(instead of a post with pure HTML) The translation of the 'enter' breaks is different in JS, so in JS I do |
145 | 145 | // a conversion to a <br>. However, when we edit a comment, this <br> should not be |
146 | 146 | //visible to the user, hence again, now this conversion in php |
147 | - $breaks = array("<br />","<br>","<br/>"); |
|
147 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
148 | 148 | $comment = str_ireplace($breaks, "\r\n", $comment); |
149 | 149 | |
150 | 150 | if ($query_comment['join_date'] == "") { |
@@ -193,13 +193,13 @@ discard block |
||
193 | 193 | //Check if back arrow is needed |
194 | 194 | if ($v_counter > 0) { |
195 | 195 | // Build the link |
196 | - $v_linkback = ('?v_counter=' . ($v_counter - 5 . $users_comments)); |
|
196 | + $v_linkback = ('?v_counter='.($v_counter - 5.$users_comments)); |
|
197 | 197 | } |
198 | 198 | |
199 | 199 | //Check if we need to place a next arrow |
200 | 200 | if ($v_rows > ($v_counter + 15)) { |
201 | 201 | //Build the link |
202 | - $v_linknext = ('?v_counter=' . ($v_counter + 5 . $users_comments)); |
|
202 | + $v_linknext = ('?v_counter='.($v_counter + 5.$users_comments)); |
|
203 | 203 | } |
204 | 204 | |
205 | 205 | if (empty($c_counter)) { |
@@ -224,5 +224,5 @@ discard block |
||
224 | 224 | ); |
225 | 225 | |
226 | 226 | $smarty->assign('smarty_action', 'delete_comment'); |
227 | - $smarty->display("file:" . $mainsite_template_folder. "games/ajax_games_comment_main.html"); |
|
227 | + $smarty->display("file:".$mainsite_template_folder."games/ajax_games_comment_main.html"); |
|
228 | 228 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | LEFT JOIN users on (review_main.user_id = users.user_id) |
51 | 51 | LEFT JOIN game on (review_game.game_id = game.game_id) |
52 | 52 | WHERE review_main.review_edit = '0' |
53 | - ORDER BY review_main.review_date DESC LIMIT " . $v_counter . ", 5" |
|
53 | + ORDER BY review_main.review_date DESC LIMIT " . $v_counter.", 5" |
|
54 | 54 | ) or die("couldn't get the reviews - search all"); |
55 | 55 | |
56 | 56 | // count number of interviews |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | LEFT JOIN users on (review_main.user_id = users.user_id) |
75 | 75 | LEFT JOIN game on (review_game.game_id = game.game_id) |
76 | 76 | WHERE review_main.review_edit = '0' AND review_main.user_id = '$author_id' |
77 | - ORDER BY review_main.review_date DESC LIMIT " . $v_counter . ", 5" |
|
77 | + ORDER BY review_main.review_date DESC LIMIT ".$v_counter.", 5" |
|
78 | 78 | ) or die("couldn't get the reviews - search"); |
79 | 79 | |
80 | 80 | // count number of interviews |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | LEFT JOIN users on (review_main.user_id = users.user_id) |
105 | 105 | LEFT JOIN game on (review_game.game_id = game.game_id) |
106 | 106 | WHERE review_main.review_edit = '0' |
107 | - ORDER BY review_main.review_date DESC LIMIT " . $v_counter . ", 5" |
|
107 | + ORDER BY review_main.review_date DESC LIMIT " . $v_counter.", 5" |
|
108 | 108 | ) or die("couldn't get the reviews"); |
109 | 109 | |
110 | 110 | // count number of interviews |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $pos_end = strpos($review_text, '[/frontpage]'); |
122 | 122 | $nr_char = $pos_end - $pos_start; |
123 | 123 | |
124 | - $review_text = substr($review_text, $pos_start, $nr_char); |
|
124 | + $review_text = substr($review_text, $pos_start, $nr_char); |
|
125 | 125 | |
126 | 126 | //$review_text = str_replace("[i][b]Comments[/b][/i]", "",$review_text); |
127 | 127 | //$review_text = str_replace("[i][b]Intro[/b][/i]", "",$review_text); |
@@ -189,10 +189,10 @@ discard block |
||
189 | 189 | //Check if back arrow is needed |
190 | 190 | if ($v_counter > 0) { |
191 | 191 | // Build the link |
192 | - $v_linkback = ('?v_counter=' . ($v_counter - 5)); |
|
192 | + $v_linkback = ('?v_counter='.($v_counter - 5)); |
|
193 | 193 | if (isset($action) and $action == 'search') { |
194 | 194 | if ($author_id != '-') { |
195 | - $v_linkback .= '&author_id=' . $author_id . '&action=search'; |
|
195 | + $v_linkback .= '&author_id='.$author_id.'&action=search'; |
|
196 | 196 | } |
197 | 197 | } |
198 | 198 | } |
@@ -200,10 +200,10 @@ discard block |
||
200 | 200 | //Check if we need to place a next arrow |
201 | 201 | if ($v_rows > ($v_counter + 5)) { |
202 | 202 | //Build the link |
203 | - $v_linknext = ('?v_counter=' . ($v_counter + 5)); |
|
203 | + $v_linknext = ('?v_counter='.($v_counter + 5)); |
|
204 | 204 | if (isset($action) and $action == 'search') { |
205 | 205 | if ($author_id != '-') { |
206 | - $v_linknext .= '&author_id=' . $author_id . '&action=search'; |
|
206 | + $v_linknext .= '&author_id='.$author_id.'&action=search'; |
|
207 | 207 | } |
208 | 208 | } |
209 | 209 | } |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | ); |
229 | 229 | |
230 | 230 | //Send all smarty variables to the templates |
231 | -$smarty->display("file:" . $mainsite_template_folder . "games/games_reviews_main.html"); |
|
231 | +$smarty->display("file:".$mainsite_template_folder."games/games_reviews_main.html"); |
|
232 | 232 | |
233 | 233 | //close the connection |
234 | 234 | mysqli_close($mysqli); |
@@ -17,14 +17,14 @@ discard block |
||
17 | 17 | require "../../config/admin.php"; |
18 | 18 | |
19 | 19 | if (isset($action)) { |
20 | - if ($action=='delete_comment') { |
|
20 | + if ($action == 'delete_comment') { |
|
21 | 21 | create_log_entry('Reviews', $comment_id, 'Comment', $comment_id, 'Delete', $_SESSION['user_id']); |
22 | 22 | |
23 | 23 | $sql = $mysqli->query("DELETE FROM review_user_comments WHERE comment_id = '$comment_id'") |
24 | 24 | or die("couldn't delete game_comment quote"); |
25 | 25 | $sql = $mysqli->query("DELETE FROM comments WHERE comments_id = '$comment_id'") |
26 | 26 | or die("couldn't delete comment quote"); |
27 | - } elseif ($action=="save_comment") { |
|
27 | + } elseif ($action == "save_comment") { |
|
28 | 28 | //$data = $_POST['data']; |
29 | 29 | $data = $mysqli->real_escape_string($data); |
30 | 30 | |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | //(instead of a post with pure HTML) The translation of the 'enter' breaks is different in JS, so in JS I do |
76 | 76 | //a conversion to a <br>. However, when we edit a comment, this <br> should not be |
77 | 77 | //visible to the user, hence again, now this conversion in php |
78 | - $breaks = array("<br />","<br>","<br/>"); |
|
78 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
79 | 79 | $comment = str_ireplace($breaks, "\r\n", $comment); |
80 | 80 | |
81 | 81 | $date = date("d/m/y", $query_comment['timestamp']); |
@@ -102,5 +102,5 @@ discard block |
||
102 | 102 | $smarty->assign('review_id', $review_id); |
103 | 103 | |
104 | 104 | //Send all smarty variables to the templates |
105 | - $smarty->display("file:" . $mainsite_template_folder . "games/ajax_games_reviews_detail_comments.html"); |
|
105 | + $smarty->display("file:".$mainsite_template_folder."games/ajax_games_reviews_detail_comments.html"); |
|
106 | 106 | } |
@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | require "../../config/admin.php"; |
19 | 19 | |
20 | 20 | if (isset($action)) { |
21 | - if ($action=='delete_comment') { |
|
21 | + if ($action == 'delete_comment') { |
|
22 | 22 | create_log_entry('Games', $comment_id, 'Comment', $comment_id, 'Delete', $_SESSION['user_id']); |
23 | 23 | |
24 | 24 | $sql = $mysqli->query("DELETE FROM game_user_comments WHERE comment_id = '$comment_id'") |
25 | 25 | or die("couldn't delete game_comment quote"); |
26 | 26 | $sql = $mysqli->query("DELETE FROM comments WHERE comments_id = '$comment_id'") |
27 | 27 | or die("couldn't delete comment quote"); |
28 | - } elseif ($action=="save_comment") { |
|
28 | + } elseif ($action == "save_comment") { |
|
29 | 29 | //$data = $_POST['data']; |
30 | 30 | $data = $mysqli->real_escape_string($data); |
31 | 31 | |
@@ -33,15 +33,15 @@ discard block |
||
33 | 33 | or die("couldn't update comments table"); |
34 | 34 | |
35 | 35 | create_log_entry('Games', $comment_id, 'Comment', $comment_id, 'Update', $_SESSION['user_id']); |
36 | - } elseif ($action=="submit_info") { |
|
36 | + } elseif ($action == "submit_info") { |
|
37 | 37 | if (isset($subtype) and $subtype == 'medium') { |
38 | - if ($textfield_medium == '' or $textfield_medium == 'Game info') { |
|
38 | + if ($textfield_medium == '' or $textfield_medium == 'Game info') { |
|
39 | 39 | $_SESSION['edit_message'] = "Please add some info in the game info field"; |
40 | 40 | header("Location: ../games/games_detail.php?game_id=$game_id"); |
41 | 41 | die(); |
42 | 42 | } else { |
43 | 43 | $timestamp = time(); |
44 | - $maxsize = 10000000; //10mb |
|
44 | + $maxsize = 10000000; //10mb |
|
45 | 45 | $mysqli->query( |
46 | 46 | "INSERT INTO game_submitinfo (game_id, user_id, timestamp, submit_text, game_done ) " |
47 | 47 | ."VALUES ('$game_id', '$_SESSION[user_id]', '$timestamp', '$textfield_medium', '2')" |
@@ -122,13 +122,13 @@ discard block |
||
122 | 122 | die(); |
123 | 123 | } |
124 | 124 | } else { |
125 | - if ($textfield == '' or $textfield == 'Game info') { |
|
125 | + if ($textfield == '' or $textfield == 'Game info') { |
|
126 | 126 | $_SESSION['edit_message'] = "Please add some info in the game info field"; |
127 | 127 | header("Location: ../games/games_detail.php?game_id=$game_id"); |
128 | 128 | die(); |
129 | 129 | } else { |
130 | 130 | $timestamp = time(); |
131 | - $maxsize = 10000000; //10mb |
|
131 | + $maxsize = 10000000; //10mb |
|
132 | 132 | $mysqli->query( |
133 | 133 | "INSERT INTO game_submitinfo (game_id, user_id, timestamp, submit_text, game_done ) " |
134 | 134 | ."VALUES ('$game_id', '$_SESSION[user_id]', '$timestamp', '$textfield', '2')" |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | |
148 | 148 | $ext = ""; |
149 | 149 | $type_image = $image['type'][$key]; |
150 | - $size_image = $image['size'][$key]; |
|
150 | + $size_image = $image['size'][$key]; |
|
151 | 151 | |
152 | 152 | // set extension |
153 | 153 | if ($type_image == 'image/png') { |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | //(instead of a post with pure HTML) The translation of the 'enter' breaks is different in JS, so in JS I do |
258 | 258 | //a conversion to a <br>. However, when we edit a comment, this <br> should not be |
259 | 259 | //visible to the user, hence again, now this conversion in php |
260 | - $breaks = array("<br />","<br>","<br/>"); |
|
260 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
261 | 261 | $comment = str_ireplace($breaks, "\r\n", $comment); |
262 | 262 | |
263 | 263 | $date = date("F j, Y", $query_comment['timestamp']); |
@@ -289,5 +289,5 @@ discard block |
||
289 | 289 | $smarty->assign('user_avatar_path', $user_avatar_path); |
290 | 290 | |
291 | 291 | //Send all smarty variables to the templates |
292 | - $smarty->display("file:" . $mainsite_template_folder . "games/ajax_games_main_detail_comments.html"); |
|
292 | + $smarty->display("file:".$mainsite_template_folder."games/ajax_games_main_detail_comments.html"); |
|
293 | 293 | } |
@@ -114,7 +114,7 @@ |
||
114 | 114 | $smarty->assign("game_id", $game_id); |
115 | 115 | |
116 | 116 | //Send all smarty variables to the templates |
117 | -$smarty->display("file:" . $mainsite_template_folder . "games/games_reviews_add.html"); |
|
117 | +$smarty->display("file:".$mainsite_template_folder."games/games_reviews_add.html"); |
|
118 | 118 | |
119 | 119 | //close the connection |
120 | 120 | mysqli_close($mysqli); |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | if ($game_genres) { |
94 | 94 | for ($i = 0; $i < count($game_genres); $i++) { |
95 | 95 | $desc .= strtolower($game_genres[$i]->getName()); |
96 | - if ($i+1 < count($game_genres)) { |
|
96 | + if ($i + 1 < count($game_genres)) { |
|
97 | 97 | $desc .= ", "; |
98 | 98 | } |
99 | 99 | } |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | if ($v_ind_image != 'none') { |
373 | 373 | $smarty->append( |
374 | 374 | 'interviews', |
375 | - array( 'ind_id' => $game_individual['id'], |
|
375 | + array('ind_id' => $game_individual['id'], |
|
376 | 376 | 'ind_name' => $game_individual['ind_name'], |
377 | 377 | 'ind_img' => $v_ind_image, |
378 | 378 | 'int_id' => $interview['interview_id'], |
@@ -555,7 +555,7 @@ discard block |
||
555 | 555 | // if no boxscans are attached |
556 | 556 | $smarty->assign('numberscans', $imagenum_rows); |
557 | 557 | |
558 | -$front=0; |
|
558 | +$front = 0; |
|
559 | 559 | |
560 | 560 | $game_boxscans_count = 0; |
561 | 561 | |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | ."WHERE game_boxscan_cross=$rowimage[game_boxscan_id]" |
582 | 582 | ) |
583 | 583 | or die("Database error - selecting gamebox scan"); |
584 | - $couplerow = $couple->fetch_row(); |
|
584 | + $couplerow = $couple->fetch_row(); |
|
585 | 585 | |
586 | 586 | $back_image_filename = "$game_boxscan_save_path$rowimage[game_boxscan_id].$rowimage[imgext]"; |
587 | 587 | $back_image_pop_filename = "$game_boxscan_path$rowimage[game_boxscan_id].$rowimage[imgext]"; |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | |
603 | 603 | // Get box scans for all release |
604 | 604 | // This is temporary until we revamp the games/relase details page |
605 | -$nr_of_release_scans=0; |
|
605 | +$nr_of_release_scans = 0; |
|
606 | 606 | |
607 | 607 | $smarty->assign('release_scans', []); |
608 | 608 | foreach ($releases as $release) { |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | //(instead of a post with pure HTML) The translation of the 'enter' breaks is different in JS, so in JS I do |
648 | 648 | //a conversion to a <br>. However, when we edit a comment, this <br> should not be |
649 | 649 | //visible to the user, hence again, now this conversion in php |
650 | - $breaks = array("<br />","<br>","<br/>"); |
|
650 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
651 | 651 | $comment = str_ireplace($breaks, "\r\n", $comment); |
652 | 652 | |
653 | 653 | $date = date("d/m/y", $query_comment['timestamp']); |
@@ -699,7 +699,7 @@ discard block |
||
699 | 699 | $pos_end = strpos($review_text, '[/frontpage]'); |
700 | 700 | $nr_char = $pos_end - $pos_start; |
701 | 701 | |
702 | - $review_text = substr($review_text, $pos_start, $nr_char); |
|
702 | + $review_text = substr($review_text, $pos_start, $nr_char); |
|
703 | 703 | $review_text = nl2br($review_text); |
704 | 704 | $review_text = InsertALCode($review_text); // disabled this as it wrecked the design. |
705 | 705 | $review_text = trim($review_text); |
@@ -875,9 +875,9 @@ discard block |
||
875 | 875 | |
876 | 876 | //Send all smarty variables to the templates |
877 | 877 | if (isset($use_new_layout)) { |
878 | - $smarty->display("file:" . $mainsite_template_folder . "games/games_detail.new.html"); |
|
878 | + $smarty->display("file:".$mainsite_template_folder."games/games_detail.new.html"); |
|
879 | 879 | } else { |
880 | - $smarty->display("file:" . $mainsite_template_folder . "games/games_detail.html"); |
|
880 | + $smarty->display("file:".$mainsite_template_folder."games/games_detail.html"); |
|
881 | 881 | } |
882 | 882 | |
883 | 883 | //close the connection |
@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | LEFT JOIN comments ON ( game_user_comments.comment_id = comments.comments_id ) |
57 | 57 | LEFT JOIN users ON ( comments.user_id = users.user_id ) |
58 | 58 | LEFT JOIN game ON ( game_user_comments.game_id = game.game_id ) |
59 | - " . $where_clause . " |
|
60 | - ORDER BY comments.timestamp DESC LIMIT " . $v_counter . ", 5"; |
|
59 | + " . $where_clause." |
|
60 | + ORDER BY comments.timestamp DESC LIMIT " . $v_counter.", 5"; |
|
61 | 61 | |
62 | 62 | $sql_comment = $mysqli->query($sql_build); |
63 | 63 | |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | //(instead of a post with pure HTML) The translation of the 'enter' breaks is different in JS, so in JS I do |
136 | 136 | //a conversion to a <br>. However, when we edit a comment, this <br> should not be |
137 | 137 | //visible to the user, hence again, now this conversion in php |
138 | - $breaks = array("<br />","<br>","<br/>"); |
|
138 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
139 | 139 | $comment = str_ireplace($breaks, "\r\n", $comment); |
140 | 140 | |
141 | 141 | if ($query_comment['join_date'] == "") { |
@@ -184,13 +184,13 @@ discard block |
||
184 | 184 | //Check if back arrow is needed |
185 | 185 | if ($v_counter > 0) { |
186 | 186 | // Build the link |
187 | - $v_linkback = ('?v_counter=' . ($v_counter - 5 . $users_comments)); |
|
187 | + $v_linkback = ('?v_counter='.($v_counter - 5.$users_comments)); |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | //Check if we need to place a next arrow |
191 | 191 | if ($v_rows > ($v_counter + 5)) { |
192 | 192 | //Build the link |
193 | - $v_linknext = ('?v_counter=' . ($v_counter + 5 . $users_comments)); |
|
193 | + $v_linknext = ('?v_counter='.($v_counter + 5.$users_comments)); |
|
194 | 194 | } |
195 | 195 | |
196 | 196 | if (empty($c_counter)) { |
@@ -215,4 +215,4 @@ discard block |
||
215 | 215 | ); |
216 | 216 | |
217 | 217 | //Send all smarty variables to the templates |
218 | -$smarty->display("file:" . $mainsite_template_folder . "games/games_comment_main.html"); |
|
218 | +$smarty->display("file:".$mainsite_template_folder."games/games_comment_main.html"); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $desc[] = "in ".join( |
61 | 61 | ", ", |
62 | 62 | array_map( |
63 | - function ($location) { |
|
63 | + function($location) { |
|
64 | 64 | return $location->getName(); |
65 | 65 | }, |
66 | 66 | $release_locations |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | if (count($dumps) > 0) { |
81 | - $items[] = count($dumps). " downloads"; |
|
81 | + $items[] = count($dumps)." downloads"; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | $description = join(" ", $desc); |
@@ -135,4 +135,4 @@ discard block |
||
135 | 135 | $dumps |
136 | 136 | )); |
137 | 137 | |
138 | -$smarty->display("file:" . $mainsite_template_folder. "games/games_release_main.html"); |
|
138 | +$smarty->display("file:".$mainsite_template_folder."games/games_release_main.html"); |
@@ -577,7 +577,7 @@ discard block |
||
577 | 577 | ) |
578 | 578 | or die("Database error - selecting screenshots"); |
579 | 579 | |
580 | - while ($screenshot_result = $sql_screenshots->fetch_array(MYSQLI_BOTH)) { |
|
580 | + while ($screenshot_result = $sql_screenshots->fetch_array(MYSQLI_BOTH)) { |
|
581 | 581 | //Ready screenshots path and filename |
582 | 582 | $screenshot_image = $game_boxscan_path; |
583 | 583 | $screenshot_image .= $screenshot_result['game_boxscan_id']; |
@@ -596,7 +596,7 @@ discard block |
||
596 | 596 | ORDER BY RAND() LIMIT 1" |
597 | 597 | ) or die("Database error - selecting screenshots"); |
598 | 598 | |
599 | - while ($screenshot_result = $sql_screenshots->fetch_array(MYSQLI_BOTH)) { |
|
599 | + while ($screenshot_result = $sql_screenshots->fetch_array(MYSQLI_BOTH)) { |
|
600 | 600 | //Ready screenshots path and filename |
601 | 601 | $screenshot_image = $game_screenshot_path; |
602 | 602 | $screenshot_image .= $screenshot_result['screenshot_id']; |
@@ -651,19 +651,19 @@ discard block |
||
651 | 651 | header("Location: ../games/games_detail.php?game_id=$game_id_1_result"); |
652 | 652 | } |
653 | 653 | |
654 | - $rest4 = $i%4; |
|
654 | + $rest4 = $i % 4; |
|
655 | 655 | $smarty->assign("rest4", $rest4); |
656 | 656 | |
657 | - $rest3 = $i%3; |
|
657 | + $rest3 = $i % 3; |
|
658 | 658 | $smarty->assign("rest3", $rest3); |
659 | 659 | |
660 | - $rest2 = $i%2; |
|
660 | + $rest2 = $i % 2; |
|
661 | 661 | $smarty->assign("rest2", $rest2); |
662 | 662 | |
663 | 663 | $smarty->assign("query_time", $time_elapsed_secs); |
664 | 664 | |
665 | 665 | //Send all smarty variables to the templates |
666 | - $smarty->display("file:" . $mainsite_template_folder . "games/games_main_list.html"); |
|
666 | + $smarty->display("file:".$mainsite_template_folder."games/games_main_list.html"); |
|
667 | 667 | } |
668 | 668 | } else { |
669 | 669 | $edit_message = "No entries found for your selection"; |