summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2016-03-31 21:15:17 -0400
committerMalf Furious <m@lfurio.us>2016-03-31 21:15:17 -0400
commitb701b45ae6e293c4d1bb89f068bf20b00a9ac53b (patch)
tree9e199fff93fa214069bdf11cf8d0b8c4868ff9d9 /app
parent0cb67e77888e715173649ee275ae2b8c43bdf4dd (diff)
downloadscrott-b701b45ae6e293c4d1bb89f068bf20b00a9ac53b.tar.gz
scrott-b701b45ae6e293c4d1bb89f068bf20b00a9ac53b.zip
Add handle() function to file.php
Grab the request and decide how to process it based on the directory the resource resides in
Diffstat (limited to 'app')
-rw-r--r--app/file.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/file.php b/app/file.php
index 445bd6b..17044f3 100644
--- a/app/file.php
+++ b/app/file.php
@@ -12,6 +12,19 @@ require_once "class/framework.class.php";
*/
class Resource extends Framework
{
+ /*
+ * Get request and figure out what type it is
+ */
+ function handle($dir, $file)
+ {
+ if (basename($file) != $file || $file == "")
+ return;
+
+ switch ($dir)
+ {
+ case "img/heads": $this->heads($file); break;
+ }
+ }
}
$res = new Resource();