added support for upload and image change codes so you can control who can upload or use options on pictures

This commit is contained in:
Christian Haschek
2015-11-01 19:14:57 +01:00
parent a6aa8feb39
commit 8fe8c14b00
4 changed files with 72 additions and 7 deletions

View File

@@ -1,5 +1,17 @@
<?php
//if set to a string, this string must be provided before upload.
//you can set multiple codes by;separating;them;with;semicolons
//if set to false, everybody can upload
//for API uploads, the GET Variable 'upload_code' must be provided
define('UPLOAD_CODE', false);
//if set to a string, this string must be provided in the URL to use any options (filters, resizes, etc..)
//you can set multiple codes by;separating;them;with;semicolons
//if set to false, everybody can use options on all images
//if image change code is not provided but the requested image (with options) already exists, it will render to the user just fine
define('IMAGE_CHANGE_CODE', false);
// shall we log all uploaders IP addresses?
define('LOG_UPLOADER', true);