diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/about.php | 21 | ||||
-rw-r--r-- | pages/archive.php | 14 | ||||
-rwxr-xr-x | pages/comic.php | 131 | ||||
-rw-r--r-- | pages/contribute.php | 51 |
4 files changed, 217 insertions, 0 deletions
diff --git a/pages/about.php b/pages/about.php new file mode 100644 index 0000000..c85544f --- /dev/null +++ b/pages/about.php | |||
@@ -0,0 +1,21 @@ | |||
1 | <H1>About</H1> | ||
2 | |||
3 | <P> | ||
4 | Pillowcase is a <A HREF="http://fourisland.com/">Four Island</A> project, majorly operated by Starla Insigna, though | ||
5 | it is possible that other people may have contributed to it (see <A HREF="/contribute.php">contributing</A>). | ||
6 | </P> | ||
7 | |||
8 | <P> | ||
9 | Pillowcase is a webcomic about.... you guessed it, a Pillowcase. While ordinarily this may seem drab and boring, some | ||
10 | people can be <DEL>insane</DEL> very imaginative. This comic updates daily with a new short edition of the | ||
11 | Pillowcase's latest act of insanity. | ||
12 | </P> | ||
13 | |||
14 | <P> | ||
15 | Pillowcase was originally a fake news story on another Four Island project, | ||
16 | <A HREF="http://false.fourisland.com/">True Falsities</A> (<A HREF="http://false.fourisland.com/2009/02/bluemonkeys-saga/">the story</A>). | ||
17 | It was a short story about how Bluemonkey (a Four Island regular), after going a bit insane, started a webcomic | ||
18 | called "Pillowcase". The story was written by Starla, so she is not stealing anyone's ideas. Anyway, after writing the | ||
19 | story and providing the first 11 Pillowcase comics with it, Starla went a little Pillowcase-insane and turned it | ||
20 | into a real webcomic. | ||
21 | </P> | ||
diff --git a/pages/archive.php b/pages/archive.php new file mode 100644 index 0000000..c1cd8ab --- /dev/null +++ b/pages/archive.php | |||
@@ -0,0 +1,14 @@ | |||
1 | <H1>Archive</H1> | ||
2 | |||
3 | <UL ID="archive"> | ||
4 | <?php | ||
5 | |||
6 | $getcomics = "SELECT * FROM comics WHERE status = \"publish\" ORDER BY comic_id ASC"; | ||
7 | $getcomics2 = mysql_query($getcomics); | ||
8 | while ($getcomics3 = mysql_fetch_array($getcomics2)) | ||
9 | { | ||
10 | ?> <LI><A HREF="/comic<?php echo($getcomics3['comic_id']); ?>.htm"><?php echo($getcomics3['title']); ?></A></LI> | ||
11 | <?php | ||
12 | } | ||
13 | |||
14 | ?> </UL> | ||
diff --git a/pages/comic.php b/pages/comic.php new file mode 100755 index 0000000..0edd91c --- /dev/null +++ b/pages/comic.php | |||
@@ -0,0 +1,131 @@ | |||
1 | <?php | ||
2 | |||
3 | if (isset($_GET['id'])) | ||
4 | { | ||
5 | $getcomic = "SELECT * FROM comics WHERE comic_id = " . $_GET['id'] . " AND status = \"publish\""; | ||
6 | } else { | ||
7 | $getcomic = "SELECT * FROM comics WHERE status = \"publish\" ORDER BY comic_id DESC LIMIT 0,1"; | ||
8 | } | ||
9 | $getcomic2 = mysql_query($getcomic); | ||
10 | $getcomic3 = mysql_fetch_array($getcomic2); | ||
11 | |||
12 | $date = strtotime(get_meta($getcomic3['id'], 'pubDate')); | ||
13 | |||
14 | ?> | ||
15 | <DIV CLASS="post"> | ||
16 | <DIV CLASS="date" TITLE="<?php echo(date('F jS Y g:i a', $date)); ?>"> | ||
17 | <?php echo(date('M', $date)); ?><BR> | ||
18 | <?php echo(date('j', $date)); ?><BR> | ||
19 | <?php echo(date('Y', $date)); ?> | ||
20 | |||
21 | </DIV> | ||
22 | |||
23 | <DIV CLASS="title"> | ||
24 | <H2><?php echo($getcomic3['title']); ?></H2> | ||
25 | <?php | ||
26 | |||
27 | if (has_meta($getcomic3['id'], 'author')) | ||
28 | { | ||
29 | ?> | ||
30 | <CENTER><SMALL>Guest comic by <?php echo(get_meta($getcomic3['id'], 'author')); ?></SMALL></CENTER> | ||
31 | <?php | ||
32 | } | ||
33 | |||
34 | ?> | ||
35 | </DIV> | ||
36 | </DIV> | ||
37 | |||
38 | <DIV CLASS="image"> | ||
39 | <?php | ||
40 | |||
41 | if (has_meta($getcomic3['id'], 'link')) | ||
42 | { | ||
43 | ?> | ||
44 | <A HREF="<?php echo(get_meta($getcomic3['id'], 'link')); ?>"> | ||
45 | <?php | ||
46 | } | ||
47 | ?> | ||
48 | <IMG SRC="/images/comics/<?php echo($getcomic3['filename']); ?>" ALT="<?php echo(htmlentities($getcomic3['text'])); ?>" TITLE="<?php echo(htmlentities($getcomic3['text'])); ?>"> | ||
49 | <?php | ||
50 | |||
51 | if (has_meta($getcomic3['id'], 'link')) | ||
52 | { | ||
53 | ?> | ||
54 | </A> | ||
55 | <?php | ||
56 | } | ||
57 | ?> | ||
58 | </DIV> | ||
59 | |||
60 | <DIV CLASS="cleardiv"></DIV> | ||
61 | |||
62 | <UL CLASS="navbar"> | ||
63 | <?php | ||
64 | |||
65 | $id = $getcomic3['comic_id']; | ||
66 | |||
67 | $cntcomics = "SELECT COUNT(*) FROM comics WHERE status = \"publish\""; | ||
68 | $cntcomics2 = mysql_query($cntcomics); | ||
69 | $cntcomics3 = mysql_fetch_array($cntcomics2); | ||
70 | $all = $cntcomics3['COUNT(*)']; | ||
71 | |||
72 | if ($id > 2) | ||
73 | { | ||
74 | ?> <LI><A HREF="/comic1.htm">First</a></LI> | ||
75 | <?php | ||
76 | } | ||
77 | |||
78 | if ($id > 1) | ||
79 | { | ||
80 | ?> <LI><A HREF="/comic<?php echo($id-1); ?>.htm">Back</A></LI> | ||
81 | <?php | ||
82 | } | ||
83 | |||
84 | if ($id < $all) | ||
85 | { | ||
86 | if ($id != ($all-1)) | ||
87 | { | ||
88 | ?> <LI><A HREF="/comic<?php echo($id+1); ?>.htm">Next</A></LI> | ||
89 | <?php | ||
90 | ?> <LI><A HREF="/">Today</A></LI> | ||
91 | <?php | ||
92 | } else { | ||
93 | ?> <LI><A HREF="/">Next</A></LI> | ||
94 | <?php | ||
95 | } | ||
96 | } | ||
97 | |||
98 | $cntpending = "SELECT COUNT(*) FROM comics WHERE status = \"pending\""; | ||
99 | $cntpending2 = mysql_query($cntpending); | ||
100 | $cntpending3 = mysql_fetch_array($cntpending2); | ||
101 | $numpending = $cntpending3['COUNT(*)']; | ||
102 | |||
103 | ?> | ||
104 | </UL> | ||
105 | |||
106 | <DIV CLASS="cleardiv"></DIV> | ||
107 | |||
108 | <P> | ||
109 | pillowcase - the result of an obsession with cute, plush objects that talk nonsense | ||
110 | </P> | ||
111 | |||
112 | <P> | ||
113 | because we luv <A HREF="http://xkcd.com">xkcd</A>, make sure you look for the alt text | ||
114 | </P> | ||
115 | |||
116 | <P> | ||
117 | <?php if ($numpending == 1): ?> | ||
118 | there is 1 comic in the pending queue, which means that if Starla wants to be lazy and can't be bothered to update, she can relax for 1 more day before she starts getting angry emails | ||
119 | <?php elseif ($numpending == 0): ?> | ||
120 | oh dear, there aren't any comics in the pending queue, which means that if Starla doesn't hurry up, there may not be a comic tomorrow | ||
121 | <?php elseif ($numpending > 100): ?> | ||
122 | OMG! There are <?php echo($numpending); ?> comics in the pending queue! Starla, you relax as long as you want! | ||
123 | <?php else: ?> | ||
124 | there are <?php echo($numpending); ?> comics in the pending queue, which means that if Starla wants to be lazy and can't be bothered to update, she can relax for <?php echo($numpending); ?> days before she starts getting angry emails | ||
125 | <?php endif; ?> | ||
126 | </P> | ||
127 | <?php | ||
128 | |||
129 | $title = $getcomic3['title']; | ||
130 | |||
131 | ?> | ||
diff --git a/pages/contribute.php b/pages/contribute.php new file mode 100644 index 0000000..eb99e08 --- /dev/null +++ b/pages/contribute.php | |||
@@ -0,0 +1,51 @@ | |||
1 | <?php | ||
2 | |||
3 | $title = 'Contribute'; | ||
4 | |||
5 | ?> | ||
6 | <H1>Contribute</H1> | ||
7 | |||
8 | <P> | ||
9 | Aha, contributing! Starla admits that she isn't the only person on Earth. If you wish to contribute a comic to | ||
10 | Pillowcase, you can. But you have to follow the procedure below. | ||
11 | </P> | ||
12 | |||
13 | <P> | ||
14 | First, of course, you have to actually write the comic. You can <A HREF="/images/template.png">download the template | ||
15 | here</A>. There are some rules about how you can layout the comic, though. | ||
16 | |||
17 | <UL> | ||
18 | <LI>You are allowed to move around the pillowcase. You are also allowed to make him face the other way, make | ||
19 | him look weird, add special effects, but you cannot change the base pillowcase.</LI> | ||
20 | |||
21 | <LI>You are allowed to make multi-panelled comics. However, they cannot be more than two panels wide. You can | ||
22 | make it how ever many panels you want in height, but the width cannot exceed two panels. This applies only to | ||
23 | regularly sized panels (see below rule).</LI> | ||
24 | |||
25 | <LI>You are allowed to resize the base panel to make it bigger (making it smaller wouldn't make much sense), | ||
26 | but if you do so, it cannot exceed a width of 500 pixels. Also, if you enlarge the base panel and you wish to | ||
27 | make a multi-panelled comic (see above rule), the comic cannot grow horizontally (you can't add any panels to | ||
28 | the width), only vertically.</LI> | ||
29 | |||
30 | <LI>The template is a PNG image. The comic you upload must also be a PNG image (as in, the extension is ".png").</LI> | ||
31 | </UL> | ||
32 | </P> | ||
33 | |||
34 | <P> | ||
35 | Second, come up with a title and some alt text (a.k.a. the addendum that appears when you hover over the comic with | ||
36 | your mouse). | ||
37 | </P> | ||
38 | |||
39 | <P> | ||
40 | Finally, fill out the form below. Upload your comic in the appropriate field. If you wish to be credited for your | ||
41 | comic, fill out the Author field as well. Submit the form and your comic will be added to the moderation list where | ||
42 | Starla will review it and (hopefully!) put it on the pending list! | ||
43 | </P> | ||
44 | |||
45 | <H3>Attention!</H3> | ||
46 | |||
47 | <P> | ||
48 | Starla's suddenly lost all hope in her programming (for the time being), so instead of filling out a form, please | ||
49 | <A HREF="http://fourisland.com/fourm/memberlist.php?mode=viewprofile&u=2">contact her</A> with the comic image and | ||
50 | the required details. Thanks! | ||
51 | </P> | ||