From c28a61a317c2901efec251748d619370355393dd Mon Sep 17 00:00:00 2001 From: Jessica Pixel Date: Mon, 17 Nov 2014 01:41:57 -0500 Subject: [PATCH] Create Post to Twitter.php --- General/Post to Twitter.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 General/Post to Twitter.php diff --git a/General/Post to Twitter.php b/General/Post to Twitter.php new file mode 100644 index 0000000..3087329 --- /dev/null +++ b/General/Post to Twitter.php @@ -0,0 +1,26 @@ +setToken("xxxxx", "xxxxx"); + +$message = $_GET['message']; +$password = $_GET['password']; + +$thePassword = 'xxxxx'; + +if ( $password != $thePassword ) +{ + die('Wrong password'); +} + +$params = array( + 'status' => $message +); +$reply = $cb->statuses_update($params); + +echo "Posted to Twitter: " . $message; +?>