Add a new and very hip fullscreen interface; not exposed to the users just yet,
[pr0n] / perl / Sesse / pr0n / pr0n.pm
index 5bd49286e0b83bddb4dba8f9fa396399fed26508..487a01a1398827cfb86e1e49ecf567c962ff00df 100644 (file)
@@ -22,6 +22,10 @@ sub handler {
                 $uri eq '/skoyen.css' ||
                 $uri eq '/blah.png' ||
                 $uri eq '/faq.html' ||
+                $uri eq '/pr0n-fullscreen.css' ||
+                $uri eq '/pr0n-fullscreen.js' ||
+                $uri eq '/previous.png' ||
+                $uri eq '/next.png' ||
                 $uri =~ m#^/usage/([a-zA-Z0-9_.]+)$#) {
                $uri =~ s#^/##;
                $r->content_type(Sesse::pr0n::Common::get_mimetype_from_filename($uri));
@@ -44,7 +48,7 @@ sub handler {
                return Sesse::pr0n::NewEvent::handler($r);
        } elsif ($uri =~ m#^/[a-zA-Z0-9-]+/?$#) {
                return Sesse::pr0n::Index::handler($r);
-       } elsif ($uri =~ m#^/[a-zA-Z0-9-]+/(\d+x\d+/)?(nobox/)?[a-zA-Z0-9._-]+$#) {
+       } elsif ($uri =~ m#^/[a-zA-Z0-9-]+/(\d+x\d+/|original)?(nobox/)?[a-zA-Z0-9._-]+$#) {
                return Sesse::pr0n::Image::handler($r);
        }