diff --git a/.htaccess b/.htaccess index 90f262b..2d25e18 100644 --- a/.htaccess +++ b/.htaccess @@ -15,4 +15,6 @@ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Push every request to index.php -RewriteRule . index.php [QSA,L] \ No newline at end of file +RewriteRule . index.php [QSA,L] + +php_value max_file_uploads 50 \ No newline at end of file diff --git a/README.md b/README.md index e8d63bb..645a78c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ It's written in PHP and uses jQuery and plain CSS. It's based on the concept and script of "Tasty TCG" from 2016 but it's almost completely reworked. -Current version: 2.5.0 +Current version: 2.5.1 [Documentation - how to use autoPetiteTCGScript](https://github.com/Shirisu/autoPetiteTCGScript/blob/master/DOCUMENTATION.md) diff --git a/admin/carddeck_add.php b/admin/carddeck_add.php index 2f94dfe..4c83796 100644 --- a/admin/carddeck_add.php +++ b/admin/carddeck_add.php @@ -40,7 +40,7 @@ move_uploaded_file($file['tmp_name'], $card_folder."/".$carddeck_name."/".$carddeck_name."master.".TCG_CARDS_FILE_TYPE); chmod($card_folder."/".$carddeck_name."/".$carddeck_name."master.".TCG_CARDS_FILE_TYPE, 0665); } - for ($i = 1; $i <= TCG_CARDDECK_MAX_CARDS ; $i++) { + for ($i = 1; $i <= TCG_CARDDECK_MAX_CARDS; $i++) { $file = $_FILES['cardFile' . $i]; if (!empty($file['name'])) { move_uploaded_file($file['tmp_name'], $card_folder . "/" . $carddeck_name . "/" . $carddeck_name . sprintf("%'.02d", $i) . "." . TCG_CARDS_FILE_TYPE); @@ -209,7 +209,7 @@