summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorMalf Furious <m@lfurio.us>2019-03-21 22:48:20 -0400
committerMalf Furious <m@lfurio.us>2019-03-21 22:48:20 -0400
commit080611eb878166b93b9ac334a17826fca44ffdf9 (patch)
tree7667d7463febd3869b831f4c7586776b81bc7edc /app
parente8fed693e9568e2e71d6a9de61309cd9b895b602 (diff)
downloadscrott-080611eb878166b93b9ac334a17826fca44ffdf9.tar.gz
scrott-080611eb878166b93b9ac334a17826fca44ffdf9.zip
Update df.php to serve thumbnails
df.php will now serve bg image thumbnails when d=thumbs. Normal access requirements stand. Signed-off-by: Malf Furious <m@lfurio.us>
Diffstat (limited to 'app')
-rw-r--r--app/df.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/df.php b/app/df.php
index 97cd055..80aec5a 100644
--- a/app/df.php
+++ b/app/df.php
@@ -96,6 +96,10 @@ function main(string $dir, string $guid) : void
serveResource("dynmic/bgs/" . $guid);
break;
+ case "thumbs":
+ serveResource("dynmic/thumbs/" . $guid);
+ break;
+
case "attach":
$mesg = new mesg($guid);
serveResource("dynmic/attach/" . $guid, $mesg->attachment);