1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
<?php
$title = 'Contribute';
include('header.php');
if (!isset($_GET['submit']))
{
?>
<H1>Contribute</H1>
<P>
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.
</P>
<P>
First, of course, you have to actually write the comic. You can <A HREF="/template.png">download the template here</A>.
There are some rules about how you can layout the comic, though.
<UL>
<LI>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.</LI>
<LI>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).</LI>
<LI>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.</LI>
<LI>The template is a PNG image. The comic you upload must also be a PNG image (as in, the extension is ".png").</LI>
</UL>
</P>
<P>
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).
</P>
<P>
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!
</P>
<H3>Attention!</H3>
<P>
Starla's suddenly lost all hope in her programming (for the time being), so instead of filling out a form, please
<A HREF="http://fourisland.com/fourm/memberlist.php?mode=viewprofile&u=2">contact her</A> with the comic image and
the required details. Thanks!
</P>
<?php
} else {
if ($_POST['title'] != '')
{
if ($_POST['text'] != '')
{
$insimage = "INSERT INTO moderation (title, text, author) VALUES (\"" . mysql_real_escape_string($_POST['title']) . "\",\"" . mysql_real_escape_string($_POST['text']) . "\",\"" . mysql_real_escape_string($_POST['author']) . "\")";
$insimage2 = mysql_query($insimage) or die($insimage);
$id = mysql_insert_id();
if ($id != 0)
{
if (move_uploaded_file($_FILES['comic']['tmp_name'], $_SERVER['DOCUMENT_ROOT'] . '/moderation/' . $id . '.png'))
{
?>
<H1>Contribute</H1>
<P>
You have successfully uploaded a comic! Woo-hoo! Now, Starla will review it and (hopefully) add it to the pending
queue! Good luck!
</P>
<?php
} else {
$delimage = "DELETE FROM moderation WHERE id = " . $id;
$delimage2 = mysql_query($delimage);
?>
<H1>Contribute</H1>
<P>
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.
</P>
<?php
}
}
} else {
?>
<H1>Contribute</H1>
<P>
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.
</P>
<?php
}
} else {
?>
<H1>Contribute</H1>
<P>
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.
</P>
<?php
}
}
include('footer.php');
?>
|