diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-22 13:15:14 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-04-22 13:15:14 +0300 |
| commit | 74f1c04022328280b996dde0b7089e13d96acf70 (patch) | |
| tree | 5488a13587f6a86aa631ecbbb370efb143a9610f /core | |
| parent | a647a6180e6f2b0a3c3aaddc40bc2dcf5f396429 (diff) | |
| download | classroom-74f1c04022328280b996dde0b7089e13d96acf70.tar.gz classroom-74f1c04022328280b996dde0b7089e13d96acf70.tar.bz2 classroom-74f1c04022328280b996dde0b7089e13d96acf70.zip | |
edit lesson: media handling
Diffstat (limited to 'core')
| -rw-r--r-- | core/classes/Request.php | 8 | ||||
| -rw-r--r-- | core/config/anom_settings.php | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/core/classes/Request.php b/core/classes/Request.php index bc322a1..89928f9 100644 --- a/core/classes/Request.php +++ b/core/classes/Request.php @@ -21,9 +21,11 @@ class Request public $AGENT; // Client's User Agent - public $GET = []; + public $GET = []; // $_GET array - public $POST = []; + public $POST = []; // $_POST array + + public $FILES = []; // $_FILES array public $SIGNATURE; // user/client's device signature @@ -48,6 +50,8 @@ class Request // * If (for any reason) you requide $_GET sanitization // enable it later on the method's code + $this->FILES = $_FILES; // TODO: sanitize the files array + // $this->INTERFACE = php_sapi_name(); $this->AGENT = $_SERVER['HTTP_USER_AGENT'] ?? 'unknown'; diff --git a/core/config/anom_settings.php b/core/config/anom_settings.php index f6e7236..50056bf 100644 --- a/core/config/anom_settings.php +++ b/core/config/anom_settings.php @@ -161,6 +161,8 @@ define('CACHE_PRODUCT_TTL', 3600); // 1 hour define('FILECACHE_PATH', APP_ROOT.'/../storage/cache/'); // if CACHE_DRIVER is set to 'FileCache' +define('MEDIA_STORAGE_ROOT', APP_ROOT.'/../storage/uploads/'); // Media files root directory + # define('REDIS_HOST', '127.0.0.1'); // if CACHE_DRIVER is set to 'RedisCache' # define('MEMCAHCED_SERVER', '127.0.0.1'); // if CACHE_DRIVER is set to 'MemCached' |
