From eee98526c48b9154cd9e9bc8bc3e07769e6a39ea Mon Sep 17 00:00:00 2001
From: Star Rauchenberger
Date: Sun, 22 Feb 2009 13:15:37 -0500
Subject: Rewrote Pillowcase
NOTE: There is a new database schema now, so the database from the testing server has to be copied over to the production server, otherwise this code
will fail.
---
.hgignore | 3 +-
.htaccess | 7 +--
about.php | 31 ------------
admin/.htaccess | 4 --
admin/add.php | 30 -----------
admin/index.php | 27 ----------
admin/login.php | 30 -----------
admin/logout.php | 7 ---
admin/main.php | 8 ---
admin/manage.php | 15 ------
admin/remove.php | 10 ----
admin/update.php | 5 --
archive.php | 23 ---------
contribute.php | 117 -------------------------------------------
db.php | 8 ---
footer.php | 14 ------
header.php | 49 ------------------
images/comics/empty | 0
images/template.png | Bin 0 -> 1196 bytes
images/title.png | Bin 0 -> 7599 bytes
includes/db.php | 8 +++
includes/footer.php | 14 ++++++
includes/functions.php | 35 +++++++++++++
includes/header.php | 52 ++++++++++++++++++++
index.php | 119 ++++----------------------------------------
pages/about.php | 21 ++++++++
pages/archive.php | 14 ++++++
pages/comic.php | 131 +++++++++++++++++++++++++++++++++++++++++++++++++
pages/contribute.php | 51 +++++++++++++++++++
style.css | 6 ++-
template.png | Bin 1196 -> 0 bytes
title.png | Bin 7599 -> 0 bytes
32 files changed, 346 insertions(+), 493 deletions(-)
delete mode 100644 about.php
delete mode 100755 admin/.htaccess
delete mode 100644 admin/add.php
delete mode 100755 admin/index.php
delete mode 100644 admin/login.php
delete mode 100644 admin/logout.php
delete mode 100644 admin/main.php
delete mode 100644 admin/manage.php
delete mode 100644 admin/remove.php
delete mode 100644 admin/update.php
delete mode 100644 archive.php
delete mode 100644 contribute.php
delete mode 100755 db.php
delete mode 100644 footer.php
delete mode 100644 header.php
create mode 100644 images/comics/empty
create mode 100644 images/template.png
create mode 100644 images/title.png
create mode 100755 includes/db.php
create mode 100644 includes/footer.php
create mode 100644 includes/functions.php
create mode 100644 includes/header.php
mode change 100755 => 100644 index.php
create mode 100644 pages/about.php
create mode 100644 pages/archive.php
create mode 100755 pages/comic.php
create mode 100644 pages/contribute.php
delete mode 100644 template.png
delete mode 100644 title.png
diff --git a/.hgignore b/.hgignore
index 378539b..2db41f3 100644
--- a/.hgignore
+++ b/.hgignore
@@ -1,2 +1 @@
-images/
-moderation/
+images/.*\.png
diff --git a/.htaccess b/.htaccess
index b09d5dc..b79eae1 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,10 +1,11 @@
RewriteEngine On
-RewriteRule comic([0-9]+).htm /index.php?id=$1 [QSA,L]
-RewriteRule scripts/ / [R]
+RewriteRule comic([0-9]+).htm /index.php?area=comic&id=$1 [QSA,L]
+RewriteRule pages/ / [R]
+RewriteRule includes/ / [R]
RewriteRule config.php / [R]
RewriteRule header.php / [R]
RewriteRule footer.php / [R]
RewriteCond %{REQUEST_FILENAME} !.png
RewriteRule images/ / [R]
RewriteCond %{REQUEST_FILENAME} .htm
-RewriteRule (.+).htm $1.php [QSA]
+RewriteRule (.+).htm /index.php?area=$1 [QSA,L]
diff --git a/about.php b/about.php
deleted file mode 100644
index 83b284a..0000000
--- a/about.php
+++ /dev/null
@@ -1,31 +0,0 @@
-
- About
-
-
- Pillowcase is a Four Island project, majorly operated by Starla Insigna, though
- it is possible that other people may have contributed to it (see contributing).
-
-
-
- Pillowcase is a webcomic about.... you guessed it, a Pillowcase. While ordinarily this may seem drab and boring, some
- people can be insane very imaginative. This comic updates daily with a new short edition of the
- Pillowcase's latest act of insanity.
-
-
-
- Pillowcase was originally a fake news story on another Four Island project,
- True Falsities (the story).
- It was a short story about how Bluemonkey (a Four Island regular), after going a bit insane, started a webcomic
- called "Pillowcase". The story was written by Starla, so she is not stealing anyone's ideas. Anyway, after writing the
- story and providing the first 11 Pillowcase comics with it, Starla went a little Pillowcase-insane and turned it
- into a real webcomic.
-
-
diff --git a/admin/.htaccess b/admin/.htaccess
deleted file mode 100755
index d590e40..0000000
--- a/admin/.htaccess
+++ /dev/null
@@ -1,4 +0,0 @@
-RewriteEngine On
-RewriteCond %{REQUEST_FILENAME} !index.php
-RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule (.*).php /admin/index.php?file=$1 [QSA,L]
diff --git a/admin/add.php b/admin/add.php
deleted file mode 100644
index 96a9219..0000000
--- a/admin/add.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-Added comic !
diff --git a/admin/index.php b/admin/index.php
deleted file mode 100755
index 3a5f6be..0000000
--- a/admin/index.php
+++ /dev/null
@@ -1,27 +0,0 @@
-
diff --git a/admin/login.php b/admin/login.php
deleted file mode 100644
index f938664..0000000
--- a/admin/login.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-Incorrect login
diff --git a/admin/logout.php b/admin/logout.php
deleted file mode 100644
index 639e045..0000000
--- a/admin/logout.php
+++ /dev/null
@@ -1,7 +0,0 @@
-
diff --git a/admin/main.php b/admin/main.php
deleted file mode 100644
index aa01262..0000000
--- a/admin/main.php
+++ /dev/null
@@ -1,8 +0,0 @@
-Admin Panel
-
-
diff --git a/admin/manage.php b/admin/manage.php
deleted file mode 100644
index 2485520..0000000
--- a/admin/manage.php
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-Back to Admin
diff --git a/admin/remove.php b/admin/remove.php
deleted file mode 100644
index 824fdee..0000000
--- a/admin/remove.php
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-Removed comic !
diff --git a/admin/update.php b/admin/update.php
deleted file mode 100644
index c84c2c4..0000000
--- a/admin/update.php
+++ /dev/null
@@ -1,5 +0,0 @@
-
diff --git a/archive.php b/archive.php
deleted file mode 100644
index 02fffbf..0000000
--- a/archive.php
+++ /dev/null
@@ -1,23 +0,0 @@
- Archive
-
-
-
diff --git a/contribute.php b/contribute.php
deleted file mode 100644
index d580a7a..0000000
--- a/contribute.php
+++ /dev/null
@@ -1,117 +0,0 @@
-
- Contribute
-
-
- Aha, contributing! Starla admits that she isn't the only person on Earth. If you wish to contribute a comic to
- Pillowcase, you can. But you have to follow the procedure below.
-
-
-
- First, of course, you have to actually write the comic. You can download the template here.
- There are some rules about how you can layout the comic, though.
-
-
- - You are allowed to move around the pillowcase. You are also allowed to make him face the other way, make
- him look weird, add special effects, but you cannot change the base pillowcase.
-
- - You are allowed to make multi-panelled comics. However, they cannot be more than two panels wide. You can
- make it how ever many panels you want in height, but the width cannot exceed two panels. This applies only to
- regularly sized panels (see below rule).
-
- - You are allowed to resize the base panel to make it bigger (making it smaller wouldn't make much sense),
- but if you do so, it cannot exceed a width of 500 pixels. Also, if you enlarge the base panel and you wish to
- make a multi-panelled comic (see above rule), the comic cannot grow horizontally (you can't add any panels to
- the width), only vertically.
-
- - The template is a PNG image. The comic you upload must also be a PNG image (as in, the extension is ".png").
-
-
-
-
- Second, come up with a title and some alt text (a.k.a. the addendum that appears when you hover over the comic with
- your mouse).
-
-
-
- Finally, fill out the form below. Upload your comic in the appropriate field. If you wish to be credited for your
- comic, fill out the Author field as well. Submit the form and your comic will be added to the moderation list where
- Starla will review it and (hopefully!) put it on the pending list!
-
-
- Attention!
-
-
- Starla's suddenly lost all hope in her programming (for the time being), so instead of filling out a form, please
- contact her with the comic image and
- the required details. Thanks!
-
-
- Contribute
-
-
- You have successfully uploaded a comic! Woo-hoo! Now, Starla will review it and (hopefully) add it to the pending
- queue! Good luck!
-
-
- Contribute
-
-
- Uh oh, due to some unknown reason (are you sure you uploaded an image?), the comic upload failed! That's not good.
- Please go back to the form and ensure you filled it in correctly.
-
-
- Contribute
-
-
- Uh oh, you neglected to add an "alt text" description to your comic upload! That's a required field, so you have to
- go back and try filling in the form again.
-
-
- Contribute
-
-
- Uh oh, you neglected to add an title to your comic upload! That's a required field, so you have to go back and try
- filling in the form again.
-
-
diff --git a/db.php b/db.php
deleted file mode 100755
index a763283..0000000
--- a/db.php
+++ /dev/null
@@ -1,8 +0,0 @@
-
diff --git a/footer.php b/footer.php
deleted file mode 100644
index da2d072..0000000
--- a/footer.php
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-