Rename and update to server
[EroTweet.git] / queue-form.php
blobcc251bce2a96b7d6550e4da05f00966af6a111a0
1 <?php
2 require("class/queue-database-construction.php");
3 $construction = (new QueueDatabaseConstruction());
4 $construction->deletePost("SubmissionHalt", "IPAddress", $_SERVER['HTTP_X_REAL_IP']);
6 session_start();
7 if($_POST["name"] == "ecorvid" && $_POST["pass"] == "unsafepassword"){
8 $_SESSION["twitterboard"] = "sessionid";
9 header("Location: ");
12 echo '
13 <html>
14 <head>
15 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
16 <base href="http://verniy.ca/twitter/" />
17 <title>TweetQueue</title>
18 </head>
19 <body style="margin: 2% 5%;">
20 <h4>Project submits tweets to a specified twitter account at a specified time</a></h4>
24 // echo "<H2>Password verification disabled</H2>";
25 // $construction->buildQueueForm();
26 // $construction->displayTabularDatabase("TweetQueue", true);
27 echo "<hr/>";
28 // $construction->buildPassForm();
30 if($_SESSION["twitterboard"] != "sessionid"){
31 $construction->buildPassForm();
33 else{
34 $construction->buildQueueForm();
35 $construction->displayTabularDatabase("TweetQueue", true);
38 </body>
39 <script src="form-script.js?2"></script>
40 </html>