table interface and error checking
[EroTweet.git] / queue-form.php
blob919a0717afc46d5f5da4f9308a61b330a0577742
1 <?php
2 session_start();
3 if($_POST["name"] == "ecorvid" && $_POST["pass"] == "notsecret"){
4 $_SESSION["HentaiQueue"] = "pervert";
5 header("Location: /twitter/");
6 }
7 ?>
9 <html>
10 <head>
11 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
12 <base href="http://verniy.xyz/twitter/" />
13 <title>Submit to @VerniyEro</title>
14 </head>
15 <body style='margin: 2% 5%;'>
16 <h1>Submit to <a href="https://twitter.com/VerniyEro/">@VerniyEro</a></h1>
17 <?php
18 require("class/queue-database-construction.php");
19 $construction = (new QueueDatabaseConstruction());
20 if($_SESSION["HentaiQueue"] != "pervert"){
21 $construction->buildPassForm();
23 else{
24 $construction->buildQueueForm();
25 $construction->displayTabularDatabase("TweetQueue", true);
28 </body>
29 <script src="form-script.js?1"></script>
30 </html>