From: Steinar H. Gunderson Date: Mon, 31 Jul 2006 19:11:59 +0000 (+0200) Subject: Move externally served files into their own directory. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=3f3629cdf0838f8ee48af115918101de21c4d99c;p=pr0n Move externally served files into their own directory. --- diff --git a/close.png b/files/close.png similarity index 100% rename from close.png rename to files/close.png diff --git a/faq.html b/files/faq.html similarity index 100% rename from faq.html rename to files/faq.html diff --git a/newevent.html b/files/newevent.html similarity index 100% rename from newevent.html rename to files/newevent.html diff --git a/next.png b/files/next.png similarity index 100% rename from next.png rename to files/next.png diff --git a/pr0n-fullscreen.css b/files/pr0n-fullscreen.css similarity index 100% rename from pr0n-fullscreen.css rename to files/pr0n-fullscreen.css diff --git a/pr0n-fullscreen.js b/files/pr0n-fullscreen.js similarity index 100% rename from pr0n-fullscreen.js rename to files/pr0n-fullscreen.js diff --git a/pr0n.css b/files/pr0n.css similarity index 100% rename from pr0n.css rename to files/pr0n.css diff --git a/previous.png b/files/previous.png similarity index 100% rename from previous.png rename to files/previous.png diff --git a/robots.txt b/files/robots.txt similarity index 100% rename from robots.txt rename to files/robots.txt diff --git a/skoyen.css b/files/skoyen.css similarity index 100% rename from skoyen.css rename to files/skoyen.css diff --git a/perl/Sesse/pr0n/pr0n.pm b/perl/Sesse/pr0n/pr0n.pm index 1471074..c628541 100644 --- a/perl/Sesse/pr0n/pr0n.pm +++ b/perl/Sesse/pr0n/pr0n.pm @@ -30,7 +30,7 @@ sub handler { $uri =~ m#^/usage/([a-zA-Z0-9_.]+)$#) { $uri =~ s#^/##; $r->content_type(Sesse::pr0n::Common::get_mimetype_from_filename($uri)); - $r->sendfile(Sesse::pr0n::Common::get_base($r) . $uri); + $r->sendfile(Sesse::pr0n::Common::get_base($r) . 'files/' . $uri); return Apache2::Const::OK; } elsif ($uri eq '/newevent.html') { $r->content_type('text/html; charset=utf-8');