added new config option and fixed fencepost error when counting resized images

This commit is contained in:
Christian Haschek
2015-10-31 15:22:46 +01:00
parent 2472d188aa
commit 031c5de9e1
3 changed files with 12 additions and 5 deletions

View File

@@ -4,8 +4,12 @@ session_start();
// shall we log all uploaders IP addresses?
define('LOG_UPLOADER', true);
//how many resizes may one image have?
define('MAX_RESIZED_IMAGES',50);
//how many resizes may one image have? set it to -1 for infinite resizes
define('MAX_RESIZED_IMAGES',4);
//when the user requests a resize. Can the resized image be bigger than the original?
define('ALLOW_BLOATING', false);
//don't change stuff beyond this point
define('DOMAINPATH',(isset($_SERVER['HTTPS'])?'https':'http').'://'.$_SERVER['HTTP_HOST'].'/');