From 05159d0a1daf9312b978b9cbe1a2d63cca145e85 Mon Sep 17 00:00:00 2001 From: ECHibiki Date: Sat, 8 Feb 2020 06:55:30 -0500 Subject: [PATCH] Add files via upload --- add-to-queue.php | 16 ++++++---------- confirmation.php | 10 +++------- queue-form.php | 23 ++++++++++++++--------- 3 files changed, 23 insertions(+), 26 deletions(-) diff --git a/add-to-queue.php b/add-to-queue.php index ffd840f..6ebda39 100644 --- a/add-to-queue.php +++ b/add-to-queue.php @@ -1,12 +1,9 @@ getPostDetails("SubmissionHalt", "VerificationID", $_COOKIE['submission_id']); + $halt_check = $construction->getPostDetails("SubmissionHalt", "IPAddress", $_SERVER['HTTP_X_REAL_IP']); if(sizeof($halt_check) == 0){ - $construction->addToTable("SubmissionHalt", array("VerificationID"=>$_COOKIE['submission_id'])); + $construction->addToTable("SubmissionHalt", array("IPAddress"=>$_SERVER['HTTP_X_REAL_IP'])); $comment = $construction->checkCommentValid($_POST["comment"]); $file_string = $construction->uploadAndVerify($_FILES); @@ -19,20 +16,19 @@ if( $construction->comment_error == 0) $do_not_submit = true; if($do_not_submit) { - header("location: /erotweet/confirmation?" . "comment=" . $construction->comment_error + header("location: /twitter/confirmation.php?" . "comment=" . $construction->comment_error . "&f1=".$construction->die_state[0] ."&f2=". $construction->die_state[1] ."&f3=". $construction->die_state[2] ."&f4=".$construction->die_state[3]); } - else $construction->addToTable("TweetQueue", ["ImageLocation" => $file_string, "Comment"=>$comment]); - header("location: /erotweet/confirmation?" . "comment=" . $construction->comment_error + else $construction->addToTable("TweetQueue.php", ["ImageLocation" => $file_string, "Comment"=>$comment]); + header("location: /twitter/confirmation?" . "comment=" . $construction->comment_error . "&f1=".$construction->die_state[0] ."&f2=". $construction->die_state[1] ."&f3=". $construction->die_state[2] ."&f4=".$construction->die_state[3]); } else - header("location: /erotweet/confirmation?errmsg=1"); - } + header("location: /twitter/confirmation?errmsg=1"); ?> \ No newline at end of file diff --git a/confirmation.php b/confirmation.php index f7526c7..e89ae0f 100644 --- a/confirmation.php +++ b/confirmation.php @@ -1,13 +1,12 @@
- Back to Form + Back to Form

@@ -58,17 +57,14 @@ echo "
"; if($do_not_submit) echo "Error in Tweet. Aborting addition to queue.
"; - } } - else{ - echo "Error Submitting. Cookies not enabled"; - } + $construction->displayTabularDatabase("TweetQueue", true); ?>
-Back to Form +Back to Form diff --git a/queue-form.php b/queue-form.php index 1135cec..cc251bc 100644 --- a/queue-form.php +++ b/queue-form.php @@ -1,28 +1,33 @@ deletePost("SubmissionHalt", "VerificationID", $_COOKIE["submission_id"]); + $construction->deletePost("SubmissionHalt", "IPAddress", $_SERVER['HTTP_X_REAL_IP']); session_start(); - setcookie("submission_id", rand(0,1000000)); - if($_POST["name"] == "ecorvid" && $_POST["pass"] == "notsecret"){ - $_SESSION["HentaiQueue"] = "pervert"; + if($_POST["name"] == "ecorvid" && $_POST["pass"] == "unsafepassword"){ + $_SESSION["twitterboard"] = "sessionid"; header("Location: "); } echo ' - - - Submit to @VerniyEro + + TweetQueue -

Submit to @VerniyEro

+

Project submits tweets to a specified twitter account at a specified time

'; - if($_SESSION["HentaiQueue"] != "pervert"){ + +// echo "

Password verification disabled

"; + // $construction->buildQueueForm(); + // $construction->displayTabularDatabase("TweetQueue", true); +echo "
"; +// $construction->buildPassForm(); + + if($_SESSION["twitterboard"] != "sessionid"){ $construction->buildPassForm(); } else{ -- 2.11.4.GIT