From b701b45ae6e293c4d1bb89f068bf20b00a9ac53b Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Thu, 31 Mar 2016 21:15:17 -0400 Subject: Add handle() function to file.php Grab the request and decide how to process it based on the directory the resource resides in --- app/file.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/file.php') 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(); -- cgit v1.2.3