diff options
Diffstat (limited to 'contribute.php')
-rw-r--r-- | contribute.php | 117 |
1 files changed, 0 insertions, 117 deletions
diff --git a/contribute.php b/contribute.php deleted file mode 100644 index d580a7a..0000000 --- a/contribute.php +++ /dev/null | |||
@@ -1,117 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | $title = 'Contribute'; | ||
4 | include('header.php'); | ||
5 | |||
6 | if (!isset($_GET['submit'])) | ||
7 | { | ||
8 | |||
9 | ?> | ||
10 | <H1>Contribute</H1> | ||
11 | |||
12 | <P> | ||
13 | Aha, contributing! Starla admits that she isn't the only person on Earth. If you wish to contribute a comic to | ||
14 | Pillowcase, you can. But you have to follow the procedure below. | ||
15 | </P> | ||
16 | |||
17 | <P> | ||
18 | First, of course, you have to actually write the comic. You can <A HREF="/template.png">download the template here</A>. | ||
19 | There are some rules about how you can layout the comic, though. | ||
20 | |||
21 | <UL> | ||
22 | <LI>You are allowed to move around the pillowcase. You are also allowed to make him face the other way, make | ||
23 | him look weird, add special effects, but you cannot change the base pillowcase.</LI> | ||
24 | |||
25 | <LI>You are allowed to make multi-panelled comics. However, they cannot be more than two panels wide. You can | ||
26 | make it how ever many panels you want in height, but the width cannot exceed two panels. This applies only to | ||
27 | regularly sized panels (see below rule).</LI> | ||
28 | |||
29 | <LI>You are allowed to resize the base panel to make it bigger (making it smaller wouldn't make much sense), | ||
30 | but if you do so, it cannot exceed a width of 500 pixels. Also, if you enlarge the base panel and you wish to | ||
31 | make a multi-panelled comic (see above rule), the comic cannot grow horizontally (you can't add any panels to | ||
32 | the width), only vertically.</LI> | ||
33 | |||
34 | <LI>The template is a PNG image. The comic you upload must also be a PNG image (as in, the extension is ".png").</LI> | ||
35 | </UL> | ||
36 | </P> | ||
37 | |||
38 | <P> | ||
39 | Second, come up with a title and some alt text (a.k.a. the addendum that appears when you hover over the comic with | ||
40 | your mouse). | ||
41 | </P> | ||
42 | |||
43 | <P> | ||
44 | Finally, fill out the form below. Upload your comic in the appropriate field. If you wish to be credited for your | ||
45 | comic, fill out the Author field as well. Submit the form and your comic will be added to the moderation list where | ||
46 | Starla will review it and (hopefully!) put it on the pending list! | ||
47 | </P> | ||
48 | |||
49 | <H3>Attention!</H3> | ||
50 | |||
51 | <P> | ||
52 | Starla's suddenly lost all hope in her programming (for the time being), so instead of filling out a form, please | ||
53 | <A HREF="http://fourisland.com/fourm/memberlist.php?mode=viewprofile&u=2">contact her</A> with the comic image and | ||
54 | the required details. Thanks! | ||
55 | </P> | ||
56 | <?php | ||
57 | |||
58 | } else { | ||
59 | if ($_POST['title'] != '') | ||
60 | { | ||
61 | if ($_POST['text'] != '') | ||
62 | { | ||
63 | $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']) . "\")"; | ||
64 | $insimage2 = mysql_query($insimage) or die($insimage); | ||
65 | |||
66 | $id = mysql_insert_id(); | ||
67 | if ($id != 0) | ||
68 | { | ||
69 | if (move_uploaded_file($_FILES['comic']['tmp_name'], $_SERVER['DOCUMENT_ROOT'] . '/moderation/' . $id . '.png')) | ||
70 | { | ||
71 | ?> | ||
72 | <H1>Contribute</H1> | ||
73 | |||
74 | <P> | ||
75 | You have successfully uploaded a comic! Woo-hoo! Now, Starla will review it and (hopefully) add it to the pending | ||
76 | queue! Good luck! | ||
77 | </P> | ||
78 | <?php | ||
79 | } else { | ||
80 | $delimage = "DELETE FROM moderation WHERE id = " . $id; | ||
81 | $delimage2 = mysql_query($delimage); | ||
82 | |||
83 | ?> | ||
84 | <H1>Contribute</H1> | ||
85 | |||
86 | <P> | ||
87 | Uh oh, due to some unknown reason (are you sure you uploaded an image?), the comic upload failed! That's not good. | ||
88 | Please go back to the form and ensure you filled it in correctly. | ||
89 | </P> | ||
90 | <?php | ||
91 | } | ||
92 | } | ||
93 | } else { | ||
94 | ?> | ||
95 | <H1>Contribute</H1> | ||
96 | |||
97 | <P> | ||
98 | Uh oh, you neglected to add an "alt text" description to your comic upload! That's a required field, so you have to | ||
99 | go back and try filling in the form again. | ||
100 | </P> | ||
101 | <?php | ||
102 | } | ||
103 | } else { | ||
104 | ?> | ||
105 | <H1>Contribute</H1> | ||
106 | |||
107 | <P> | ||
108 | 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 | ||
109 | filling in the form again. | ||
110 | </P> | ||
111 | <?php | ||
112 | } | ||
113 | } | ||
114 | |||
115 | include('footer.php'); | ||
116 | |||
117 | ?> | ||