| 1 |
<?php |
<?php |
| 2 |
// $Id: twitter.inc,v 1.3.2.9 2009/06/15 21:56:30 eaton Exp $ |
// $Id: twitter.inc,v 1.3.2.10 2009/06/20 16:29:14 eaton Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 134 |
$headers = array('Authorization' => 'Basic '. base64_encode($screen_name .':'. $password), |
$headers = array('Authorization' => 'Basic '. base64_encode($screen_name .':'. $password), |
| 135 |
'Content-type' => 'application/x-www-form-urlencoded'); |
'Content-type' => 'application/x-www-form-urlencoded'); |
| 136 |
$data = 'status='. urlencode($text); |
$data = 'status='. urlencode($text); |
| 137 |
if (!empty($source)) { |
if (!empty($source) && variable_get('twitter_set_source', TRUE)) { |
| 138 |
$data .= "&source=". urlencode($source); |
$data .= "&source=". urlencode($source); |
| 139 |
} |
} |
| 140 |
|
|