Rename and update to server
[EroTweet.git] / confirmation.php
blobe89ae0f36e929758233d21b0c81dbdbe039a57f7
1 <?php
2 require("class/queue-database-construction.php");
3 $construction = new QueueDatabaseConstruction();
4 echo'
5 <html>
6 <head></head>
7 <body>
8 <br/>
9 <a href="http://verniy.ca/erotweet/queue-form">Back to Form</a>
10 <br/><hr/>
12 <div style="margin:10%">
15 if($_GET["errmsg"] == '1'){
16 echo "Multiple Submissions Detected<hr/>";
18 else if($_GET["errmsg"] == '1'){
19 echo "Multiple Submissions Detected<hr/>";
21 else{
22 $do_not_submit = false;
23 for($file = 1 ; $file <= 4 ; $file++){
24 if($_GET["f" . (string)$file] == -1){
25 echo "File: $file was valid.<br/>";
26 continue;//bypass do_not_submit flag
28 else if($_GET["f" . (string)$file] == 4){
29 echo "file $file, Empty<br/>";
30 continue;//bypass do_not_submit flag
32 else if($_GET["f" . (string)$file] == 0){
33 echo "file" . (string)$file ." Over filesize limit-Server<br/>";
35 else if($_GET["f" . (string)$file] == 1){
36 echo "file $file, PHP err " . $files["file" . (string)$file]["error"] . " <br/>";
38 else if($_GET["f" . (string)$file] == 2){
39 echo "file $file, Over size limit-Client<br/>";
41 else if($_GET["f" . (string)$file] == 3){
42 echo "file $file, The uploaded file was only partially uploaded. <br/>";
44 else if($_GET["f" . (string)$file] == 5) {
45 echo "file " . (string)$file .", Duplicate<br/>";
47 else{
48 echo "file $file, Unkown Upload Error " . $files["file" . (string)$file]["error"] . "<br/>";
50 $do_not_submit = true;
52 if($_GET["comment"] == 0){
53 echo "Comment too long[Server]<br/>";
54 $do_not_submit = true;
57 echo "<hr/>";
59 if($do_not_submit) echo "Error in Tweet. Aborting addition to queue.<br/>";
63 $construction->displayTabularDatabase("TweetQueue", true);
66 </div>
67 <a href="http://verniy.ca/erotweet/queue-form">Back to Form</a>
68 </body>
69 </html>
71 <?php