diff options
author | Malf Furious <m@lfurio.us> | 2016-03-29 23:08:50 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-03-29 23:08:50 -0400 |
commit | 0cb67e77888e715173649ee275ae2b8c43bdf4dd (patch) | |
tree | 7a419fa550ac15741a0ef2248737b2afbf40b796 /app | |
parent | ffe9b42c0094be391522ae40af6b34428afd0b8d (diff) | |
download | scrott-0cb67e77888e715173649ee275ae2b8c43bdf4dd.tar.gz scrott-0cb67e77888e715173649ee275ae2b8c43bdf4dd.zip |
Add start of file.php script
This script is a proxy for downloading file from the public web file tree which Scrott want to enforce access-control over.
Diffstat (limited to 'app')
-rw-r--r-- | app/file.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/app/file.php b/app/file.php new file mode 100644 index 0000000..445bd6b --- /dev/null +++ b/app/file.php @@ -0,0 +1,20 @@ +<?php + +require_once "class/framework.class.php"; + +/* + * Proxy script for fetching resources from the /assets directory + * This script enforces access-control on HTTP objects such as images and flat files + * which are supplied by users. + * + * Example request: + * yourdomain.com/scrott/file.php?d=/img/heads&f=a4bf903a + */ +class Resource extends Framework +{ +} + +$res = new Resource(); +$res->handle($_REQUEST['d'], $_REQUEST['f']); + +?> |