Pasword
[EroTweet.git] / add-to-queue.php
blob007641c9c749687a6a0d19d41a498651ceb47001
1 <html>
2 <head></head>
3 <body>
4 <br/>
5 <a href="http://verniy.xyz/twitter/queue-form">Back to Form</a>
6 <br/><hr/>
8 <div style="margin:10%">
10 <?php
11 require("class/queue-database-construction.php");
13 $construction = new QueueDatabaseConstruction(true);
15 $comment = $construction->checkCommentValid($_POST["comment"]);
17 $file_string = $construction->uploadAndVerify($_FILES);
19 echo "<hr/>";
21 $do_not_submit = false;
22 for($file = 0 ; $file < 4 ; $file++) if($construction->die_state[$file] == true) $do_not_submit = true;
23 if($comment_error) $do_not_submit = true;
25 if($do_not_submit) echo "Error in Tweet. Aborting addition to queue.<br/>";
26 else $construction->addToDatabase($file_string, $comment);
28 $construction->displayTabularDatabase();
32 </div>
33 <a href="http://verniy.xyz/twitter/queue-form">Back to Form</a>
34 </body>
35 </html>