initial fork from EroTweet
[Anonymous-Twitter-Board.git] / timed-post.php
blob33fa50a35b968b818e982dd87ff0b20b98453d69
1 <?php //When called, make a request to pull a tweet from an SQL table
2 require("class/queue-database-construction.php");
3 $construction = new QueueDatabaseConstruction(true);
4 //row array
5 $oldest = $construction->retrieveOldestEntry();
6 echo "<br/>" . var_dump($oldest);
7 echo "<hr/>";
9 //ob_start();
10 require("class/twitter-connection.php");
11 //ob_end_clean();
12 $connection = new TwitterConnection();
13 $connection->makeTweet($oldest["Comment"], explode(",", $oldest["ImageLocation"]));
15 echo "<hr/>";
18 $construction->deleteOldestEntry($oldest);
20 echo "Found, Added and Deleted<br/>";