@@ -47,7 +47,7 @@ |
||
47 | 47 | $pos_end = strpos($review_text, '[/frontpage]'); |
48 | 48 | $nr_char = $pos_end - $pos_start; |
49 | 49 | |
50 | - $review_text = substr($review_text, $pos_start, $nr_char); |
|
50 | + $review_text = substr($review_text, $pos_start, $nr_char); |
|
51 | 51 | |
52 | 52 | //$review_text = str_replace("[i][b]Comments[/b][/i]", "",$review_text); |
53 | 53 | //$review_text = str_replace("[i][b]Intro[/b][/i]", "",$review_text); |
@@ -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/Game.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/Game.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Games |
@@ -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/Language/Language.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Language/Language.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for ports |
@@ -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/Database/Change.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Database/Change.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for DB Change |
@@ -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/Individual/IndividualRole.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Individual/IndividualRole.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Individual Roles |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Dump/Dump.php" ; |
|
6 | -require_once __DIR__."/../Model/User/User.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Dump/Dump.php"; |
|
6 | +require_once __DIR__."/../Model/User/User.php"; |
|
7 | 7 | require_once __DIR__."/../../vendor/autoload.php"; |
8 | 8 | |
9 | 9 | /** |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | // Obtain the contentlist of the zip file. |
66 | 66 | if (($list = $zip->listContent()) == 0) { |
67 | - die("Error : " . $zip->errorInfo(true)); |
|
67 | + die("Error : ".$zip->errorInfo(true)); |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | // Get the filename from the returned array |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $ext = strtolower($ext[1]); |
81 | 81 | |
82 | 82 | // check if the extention is valid. |
83 | - if ($ext == "stx" || $ext == "msa" || $ext == "st" || $file_ext == "scp") { // pretty isn't it? ;) |
|
83 | + if ($ext == "stx" || $ext == "msa" || $ext == "st" || $file_ext == "scp") { // pretty isn't it? ;) |
|
84 | 84 | } else { |
85 | 85 | exit("Try uploading a diskimage type that is allowed, like stx or msa not $ext"); |
86 | 86 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $archive = new \PclZip("$tempfilename"); |
111 | 111 | |
112 | 112 | if ($archive->extract(PCLZIP_OPT_PATH, "$game_file_temp_path") == 0) { |
113 | - die("Error : " . $archive->errorInfo(true)); |
|
113 | + die("Error : ".$archive->errorInfo(true)); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | // rename diskimage to increment number |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $v_list = $archive->create("$game_file_temp_path$new_dump_id.$file_ext", PCLZIP_OPT_REMOVE_ALL_PATH); |
129 | 129 | } |
130 | 130 | if ($v_list == 0) { |
131 | - die("Error : " . $archive->errorInfo(true)); |
|
131 | + die("Error : ".$archive->errorInfo(true)); |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | // Time to do the safeties, here we do a sha512 file hash that we later enter into |
@@ -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/GameGenre.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/GameGenre.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for game genres |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace AL\Common\DAO; |
3 | 3 | |
4 | -require_once __DIR__."/../../lib/Db.php" ; |
|
5 | -require_once __DIR__."/../Model/Game/GameReleaseAka.php" ; |
|
6 | -require_once __DIR__."/../Model/Language/Language.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/GameReleaseAka.php"; |
|
6 | +require_once __DIR__."/../Model/Language/Language.php"; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * DAO for Game Releases AKAs |
@@ -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/Tos.php" ; |
|
4 | +require_once __DIR__."/../../lib/Db.php"; |
|
5 | +require_once __DIR__."/../Model/Game/Tos.php"; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * DAO for Tos versions |