modified: statusnet.tgz Set up tabs in code correctly.

modified:   statusnet/statusnet.php Set up tabs in code correctly.
	modified:   twitter.tgz Set up tabs in code correctly.
	modified:   twitter/twitter.php Set up tabs in code correctly.
	modified:   yourls.tgz Set up tabs in code correctly.
	modified:   yourls/yourls.css Set up tabs in code correctly.
	modified:   yourls/yourls.php Set up tabs in code correctly.
This commit is contained in:
Keith Fernie 2012-02-09 22:08:15 +00:00
parent e8d86324db
commit 772c58ce9a
7 changed files with 56 additions and 56 deletions

View file

@ -407,19 +407,19 @@ function statusnet_post_hook(&$a,&$b) {
$shortlink = "";
require_once('library/slinky.php');
$slinky = new Slinky( $b['plink'] );
$yourls_url = get_config('yourls','url1');
if ($yourls_url) {
$yourls_username = get_config('yourls','username1');
$yourls_password = get_config('yourls', 'password1');
$yourls_url = get_config('yourls','url1');
if ($yourls_url) {
$yourls_username = get_config('yourls','username1');
$yourls_password = get_config('yourls', 'password1');
$yourls_ssl = get_config('yourls', 'ssl1');
$yourls = new Slinky_YourLS();
$yourls->set( 'username', $yourls_username );
$yourls->set( 'password', $yourls_password );
$yourls = new Slinky_YourLS();
$yourls->set( 'username', $yourls_username );
$yourls->set( 'password', $yourls_password );
$yourls->set( 'ssl', $yourls_ssl );
$yourls->set( 'yourls-url', $yourls_url );
$slinky->set_cascade( array( $yourls, new Slinky_UR1ca(), new Slinky_Trim(), new Slinky_IsGd(), new Slinky_TinyURL() ) );
}
else {
$yourls->set( 'yourls-url', $yourls_url );
$slinky->set_cascade( array( $yourls, new Slinky_UR1ca(), new Slinky_Trim(), new Slinky_IsGd(), new Slinky_TinyURL() ) );
}
else {
// setup a cascade of shortening services
// try to get a short link from these services
// in the order ur1.ca, trim, id.gd, tinyurl
@ -429,9 +429,9 @@ function statusnet_post_hook(&$a,&$b) {
// the new message will be shortened such that "... $shortlink"
// will fit into the character limit
$msg = substr($msg, 0, $max_char-strlen($shortlink)-4);
$msg .= '... ' . $shortlink;
$msg .= '... ' . $shortlink;
}
// and now tweet it :-)
// and now tweet it :-)
if(strlen($msg))
$dent->post('statuses/update', array('status' => $msg));
}