-
Notifications
You must be signed in to change notification settings - Fork 0
/
add.php
executable file
·70 lines (45 loc) · 2.65 KB
/
add.php
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
<table cellspacing="2" cellpadding="0" align="center" border="0" width="99%">
<tr>
<td>
<h1>Add a quote</h1>
<form action="/?add" method="POST">
<?
if (count($_POST) > 0) {
// we can at least assume that the submit button was pressed...
if(check_empty($_POST['quotetext'])) {
// Do NAHFIN'!
// Quote box was empty, we'll ignore they pressed submit.
} else {
// Do IT!
$exist = checkquoteexist($_POST['quotetext']);
if(is_numeric($exist)) {
print "<br /><center><font color=\"red\">The quote has already been entered as <a href=\"/?" . $exist . "\">Quote #" . $exist . "</a></font></center>";
} else {
$newquote = addquote($_POST);
// printf("<br>NQ: %s", $newquote);
if(is_numeric($newquote)) {
print "<br /><center><font color=\"red\">Your quote has been submitted as Quote #" . $newquote . "</font></center><br />";
}
}
}
//print "<font color=red>post exists</font>";
}
?>
<textarea cols="100%" rows="10" name="quotetext"></textarea>
<br /><br />
<input type="submit" name="cmdSubmit" value="Submit">
<p>The usual guidelines apply:<br />
You can submit quotes from any kind of chat medium (IRC, AOL, ICQ, MSN, Yahoo, etc.), provided:</p>
<ul>
<li>They're not inside jokes</li>
<li>As much useless text/crap is stripped from it as possible.</li>
<li>Unless part of the joke, <b>timestamping should be stripped</b></li>
</ul>
Assuming you follow these guidelines, then you'll have a good chance of having your
quote approved.<br />
<br />
<b>Your IP address is never displayed publically</b>
</form>
</td>
</tr>
</table>