Created
July 2, 2010 15:06
-
-
Save kanreisa/461472 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include('./init.php'); | |
if(!$_SESSION['user']) exit('login.'); | |
/* tweet text */ | |
$A[] = 'ブブ'; | |
$A[] = 'ブー'; | |
$A[] = 'ブォォオ'; | |
$A[] = 'ブォ'; | |
$A[] = 'ヴ-'; | |
$A[] = 'ビー'; | |
$A[] = 'う゛ぁ'; | |
$A[] = 'ぶ'; | |
//7(8) | |
$B[] = 'ゥ'; | |
$B[] = 'ォ'; | |
$B[] = 'ォおォ'; | |
$B[] = 'ブォ'; | |
$B[] = '-ーー'; | |
$B[] = '~う゛ー'; | |
$B[] = 'ぁぁぉおう゛ぁ'; | |
$B[] = 'う゛ぇえ'; | |
$tweet = $A[rand(0,7)].$A[rand(0,7)].$B[rand(0,7)].$B[rand(0,7)].$A[rand(0,7)]; | |
/* OAuth */ | |
$to = new TwitterOAuth($consumer_key, $consumer_secret, $_SESSION['oauth_access_token'], $_SESSION['oauth_access_token_secret']); | |
/* POST Vuvuzela. */ | |
$content = $to->OAuthRequest('https://twitter.com/statuses/update.xml', | |
array('status' => $tweet.' #worldcup'), 'POST'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment