@@ -137,12 +137,12 @@ |
||
137 | 137 | return $distributors; |
138 | 138 | } |
139 | 139 | |
140 | - /** |
|
141 | - * add a distributor to a release |
|
142 | - * |
|
143 | - * @param integer release ID |
|
144 | - * @param integer pub_Dev ID |
|
145 | - */ |
|
140 | + /** |
|
141 | + * add a distributor to a release |
|
142 | + * |
|
143 | + * @param integer release ID |
|
144 | + * @param integer pub_Dev ID |
|
145 | + */ |
|
146 | 146 | public function addDistributorToRelease($release_id, $pub_dev_id) { |
147 | 147 | $stmt = \AL\Db\execute_query( |
148 | 148 | "PubDevDAO: addDistributorToRelease", |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/PubDev/PubDev.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/PubDev/PubDev.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for PubDev |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Article/Article.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Article/Article.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Article |
@@ -232,7 +232,7 @@ |
||
232 | 232 | LEFT JOIN users ON ( website.user_id = users.user_id ) |
233 | 233 | WHERE website.website_imgext <> ' ' and website.inactive = 0 |
234 | 234 | ORDER BY RAND() LIMIT 1". |
235 | - null, null |
|
235 | + null, null |
|
236 | 236 | ); |
237 | 237 | } |
238 | 238 |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Link/Link.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Link/Link.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Links |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Continent/Continent.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Continent/Continent.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Continent |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | return $media_scan_types; |
46 | 46 | } |
47 | 47 | |
48 | - /** |
|
49 | - * add a media scan type to the database |
|
50 | - * |
|
51 | - * @param varchar media_type |
|
52 | - */ |
|
48 | + /** |
|
49 | + * add a media scan type to the database |
|
50 | + * |
|
51 | + * @param varchar media_type |
|
52 | + */ |
|
53 | 53 | public function addMediaScanType($media_scan_type) { |
54 | 54 | $stmt = \AL\Db\execute_query( |
55 | 55 | "MediaScanTypeDAO: addMediaScanType", |
@@ -78,11 +78,11 @@ discard block |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
81 | - * update a media_scan_type |
|
82 | - * |
|
83 | - * @param int media_scan_type_id |
|
84 | - * @param varchar media_scan_type |
|
85 | - */ |
|
81 | + * update a media_scan_type |
|
82 | + * |
|
83 | + * @param int media_scan_type_id |
|
84 | + * @param varchar media_scan_type |
|
85 | + */ |
|
86 | 86 | public function updateMediaScanType($media_scan_type_id, $media_scan_type_name) { |
87 | 87 | $stmt = \AL\Db\execute_query( |
88 | 88 | "MediaScanTypeDAO: updateMediaScanType", |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Dump/MediaScanType.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Dump/MediaScanType.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Media Scan Type |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Location/Location.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Location/Location.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Locations |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/GameRelease.php" ; |
|
6 | -require_once __DIR__."/../Model/Game/Memory.php" ; |
|
7 | -require_once __DIR__."/../Model/PubDev/PubDev.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/GameRelease.php"; |
|
6 | +require_once __DIR__."/../Model/Game/Memory.php"; |
|
7 | +require_once __DIR__."/../Model/PubDev/PubDev.php"; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * DAO for Game Releases |
@@ -79,13 +79,13 @@ discard block |
||
79 | 79 | return $copy_protection_types; |
80 | 80 | } |
81 | 81 | |
82 | - /** |
|
83 | - * Add copy Protection for release |
|
84 | - * |
|
85 | - * @param integer Game Release ID |
|
86 | - * @param integer protection ID |
|
87 | - * $param text note |
|
88 | - */ |
|
82 | + /** |
|
83 | + * Add copy Protection for release |
|
84 | + * |
|
85 | + * @param integer Game Release ID |
|
86 | + * @param integer protection ID |
|
87 | + * $param text note |
|
88 | + */ |
|
89 | 89 | public function addCopyProtectionForRelease($game_release_id, $protection_id, $note) { |
90 | 90 | |
91 | 91 | $stmt = \AL\Db\execute_query( |
@@ -98,12 +98,12 @@ discard block |
||
98 | 98 | $stmt->close(); |
99 | 99 | } |
100 | 100 | |
101 | - /** |
|
102 | - * Delete copy Protection for release |
|
103 | - * |
|
104 | - * @param integer Game Release ID |
|
105 | - * @param integer protection ID |
|
106 | - */ |
|
101 | + /** |
|
102 | + * Delete copy Protection for release |
|
103 | + * |
|
104 | + * @param integer Game Release ID |
|
105 | + * @param integer protection ID |
|
106 | + */ |
|
107 | 107 | public function deleteCopyProtectionForRelease($game_release_id, $protection_id) { |
108 | 108 | $stmt = \AL\Db\execute_query( |
109 | 109 | "copyProtectionDAO: deleteCopyProtectionForRelease", |
@@ -116,11 +116,11 @@ discard block |
||
116 | 116 | $stmt->close(); |
117 | 117 | } |
118 | 118 | |
119 | - /** |
|
120 | - * add a copy protection to the database |
|
121 | - * |
|
122 | - * @param varchar copy_protection |
|
123 | - */ |
|
119 | + /** |
|
120 | + * add a copy protection to the database |
|
121 | + * |
|
122 | + * @param varchar copy_protection |
|
123 | + */ |
|
124 | 124 | public function addCopyProtection($copy_protection) { |
125 | 125 | $stmt = \AL\Db\execute_query( |
126 | 126 | "CopyProtectionDAO: addCopyProtection", |
@@ -149,11 +149,11 @@ discard block |
||
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
152 | - * update a copy_protection |
|
153 | - * |
|
154 | - * @param int copy_protection_id |
|
155 | - * @param varchar copy_protection |
|
156 | - */ |
|
152 | + * update a copy_protection |
|
153 | + * |
|
154 | + * @param int copy_protection_id |
|
155 | + * @param varchar copy_protection |
|
156 | + */ |
|
157 | 157 | public function updateCopyProtection($copy_protection_id, $copy_protection_name) { |
158 | 158 | $stmt = \AL\Db\execute_query( |
159 | 159 | "CopyProtectionDAO: updateCopyProtection", |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/CopyProtection.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/CopyProtection.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Copy Protection |
@@ -224,15 +224,15 @@ discard block |
||
224 | 224 | } else { |
225 | 225 | $where_clause = ""; |
226 | 226 | } |
227 | - if (isset($action) and $action=="autoload") { |
|
228 | - if (strlen($where_clause) >1) { |
|
227 | + if (isset($action) and $action == "autoload") { |
|
228 | + if (strlen($where_clause) > 1) { |
|
229 | 229 | $where_clause .= " AND temp.timestamp < $last_timestamp "; |
230 | 230 | } elseif (strlen($where_clause) == 0) { |
231 | 231 | $where_clause .= " WHERE temp.timestamp < $last_timestamp "; |
232 | 232 | } |
233 | 233 | } |
234 | 234 | |
235 | - if (isset($action) and $action=="search") { |
|
235 | + if (isset($action) and $action == "search") { |
|
236 | 236 | $where_clause .= " WHERE temp.timestamp <= $last_timestamp "; |
237 | 237 | } |
238 | 238 | |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | FROM temp |
257 | 257 | LEFT JOIN comments |
258 | 258 | ON (temp.comments_id = comments.comments_id) |
259 | - ". $where_clause ." |
|
259 | + ". $where_clause." |
|
260 | 260 | ORDER BY temp.timestamp DESC LIMIT 5"; |
261 | 261 | |
262 | 262 | return $query; |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | $oldcomment = RemoveSmillies($oldcomment); |
456 | 456 | $comment = stripslashes($oldcomment); |
457 | 457 | if (isset($action) and $action == 'get_comment_text') { |
458 | - $breaks = array("<br />","<br>","<br/>"); |
|
458 | + $breaks = array("<br />", "<br>", "<br/>"); |
|
459 | 459 | $comment = str_ireplace($breaks, "\r\n", $comment); |
460 | 460 | } |
461 | 461 | |
@@ -482,13 +482,13 @@ discard block |
||
482 | 482 | $comments_id |
483 | 483 | ); |
484 | 484 | |
485 | - if ($comment_type == "game_comment") { |
|
485 | + if ($comment_type == "game_comment") { |
|
486 | 486 | create_log_entry('Games', $comments_id, 'Comment', $comments_id, 'Update', $_SESSION['user_id']); |
487 | - } elseif ($comment_type == "game_review_comment") { |
|
487 | + } elseif ($comment_type == "game_review_comment") { |
|
488 | 488 | create_log_entry('Reviews', $comments_id, 'Comment', $comments_id, 'Update', $_SESSION['user_id']); |
489 | - } elseif ($comment_type == "interview_comment") { |
|
489 | + } elseif ($comment_type == "interview_comment") { |
|
490 | 490 | create_log_entry('Interviews', $comments_id, 'Comment', $comments_id, 'Update', $_SESSION['user_id']); |
491 | - } elseif ($comment_type == "article_comment") { |
|
491 | + } elseif ($comment_type == "article_comment") { |
|
492 | 492 | create_log_entry('Articles', $comments_id, 'Comment', $comments_id, 'Update', $_SESSION['user_id']); |
493 | 493 | } |
494 | 494 | } |