@@ -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 |
@@ -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/MediaScan.php" ; |
|
| 6 | -require_once __DIR__."/../Model/Dump/MediaScanType.php" ; |
|
| 4 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 5 | +require_once __DIR__."/../Model/Dump/MediaScan.php"; |
|
| 6 | +require_once __DIR__."/../Model/Dump/MediaScanType.php"; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * DAO for MediaScan |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | $media_scan_id = null; |
| 146 | 146 | if ($stmt->fetch()) { |
| 147 | - $media_scan_id = new \AL\Common\Model\Dump\MediaScan( |
|
| 147 | + $media_scan_id = new \AL\Common\Model\Dump\MediaScan( |
|
| 148 | 148 | $media_scan_id, null, null, null |
| 149 | 149 | ); |
| 150 | 150 | } |
@@ -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/News/News.php" ; |
|
| 6 | -require_once __DIR__."/../Model/User/User.php" ; |
|
| 4 | +require_once __DIR__."/../../lib/Db.php"; |
|
| 5 | +require_once __DIR__."/../Model/News/News.php"; |
|
| 6 | +require_once __DIR__."/../Model/User/User.php"; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * DAO for News |