From 9f112c2e1668c286bdbf832f6e2f4451b7d52b44 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 24 Feb 2009 16:39:19 -0500 Subject: Protected pending comics --- .htaccess | 2 ++ comic.php | 31 +++++++++++++++++++++++++++++++ includes/header.php | 4 ++-- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 comic.php diff --git a/.htaccess b/.htaccess index b79eae1..84bfa5b 100644 --- a/.htaccess +++ b/.htaccess @@ -7,5 +7,7 @@ RewriteRule header.php / [R] RewriteRule footer.php / [R] RewriteCond %{REQUEST_FILENAME} !.png RewriteRule images/ / [R] +RewriteCond %{REQUEST_FILENAME} .png +RewriteRule images/comics/(.+).png /comic.php?id=$1 [L] RewriteCond %{REQUEST_FILENAME} .htm RewriteRule (.+).htm /index.php?area=$1 [QSA,L] diff --git a/comic.php b/comic.php new file mode 100644 index 0000000..352060b --- /dev/null +++ b/comic.php @@ -0,0 +1,31 @@ + diff --git a/includes/header.php b/includes/header.php index 0f5b075..a9b93cd 100644 --- a/includes/header.php +++ b/includes/header.php @@ -21,8 +21,8 @@ if (isset($title))