]> git.sesse.net Git - pr0n/commitdiff
Move externally served files into their own directory.
authorSteinar H. Gunderson <sesse@debian.org>
Mon, 31 Jul 2006 19:11:59 +0000 (21:11 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Mon, 31 Jul 2006 19:11:59 +0000 (21:11 +0200)
files/close.png [moved from close.png with 100% similarity]
files/faq.html [moved from faq.html with 100% similarity]
files/newevent.html [moved from newevent.html with 100% similarity]
files/next.png [moved from next.png with 100% similarity]
files/pr0n-fullscreen.css [moved from pr0n-fullscreen.css with 100% similarity]
files/pr0n-fullscreen.js [moved from pr0n-fullscreen.js with 100% similarity]
files/pr0n.css [moved from pr0n.css with 100% similarity]
files/previous.png [moved from previous.png with 100% similarity]
files/robots.txt [moved from robots.txt with 100% similarity]
files/skoyen.css [moved from skoyen.css with 100% similarity]
perl/Sesse/pr0n/pr0n.pm

similarity index 100%
rename from close.png
rename to files/close.png
similarity index 100%
rename from faq.html
rename to files/faq.html
similarity index 100%
rename from newevent.html
rename to files/newevent.html
similarity index 100%
rename from next.png
rename to files/next.png
similarity index 100%
rename from pr0n-fullscreen.js
rename to files/pr0n-fullscreen.js
similarity index 100%
rename from pr0n.css
rename to files/pr0n.css
similarity index 100%
rename from previous.png
rename to files/previous.png
similarity index 100%
rename from robots.txt
rename to files/robots.txt
similarity index 100%
rename from skoyen.css
rename to files/skoyen.css
index 1471074560ad6f355ea80fdbb14c2b8d27020d16..c628541c14230129cd7112a22b701dc708c58d91 100644 (file)
@@ -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');