diff --git a/config.php.example b/config.php.example
index 84d6fa9..1493324 100644
--- a/config.php.example
+++ b/config.php.example
@@ -29,6 +29,7 @@
/**
* More about TwitterBridge : https://github.com/mitsukarenai/twitterbridge
+ * replace FALSE with the twitterbridge request URL (example: 'http://www.suumitsu.eu/twitter/?u=' )
**/
// define( 'API_TWITTER', FALSE );
diff --git a/index.php b/index.php
index 03b1bc4..ae4a066 100755
--- a/index.php
+++ b/index.php
@@ -519,6 +519,9 @@ if( !empty($_POST['socialinstance']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLO
$sitetype = 'twitter';
$siteurl = 'http://twitter.com/'. $socialaccount;
$rssurl = API_TWITTER.$socialaccount;
+ // check
+ $twitterbridge = get_headers($rssurl, 1);
+ if ($twitterbridge['0'] == 'HTTP/1.1 403 Forbidden') { $error[] = "La twitterbridge a refusé ce nom d'utilisateur:
\n
".htmlentities($twitterbridge['X-twitterbridge']).''; } } else $error[] = 'Vous devez définir une API Twitter -> RSS dans votre fichier de configuration (see TwitterBridge).'; @@ -555,14 +558,9 @@ if( !empty($_POST['socialinstance']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLO if( empty($error) ) { try { - // TwitterBridge user will be allowed after Autoblog creation - // TODO: Twitter user does not exist ? - // TODO: get remote like http://wwz.suumitsu.eu/twitter/whitelist.json, decode, check if is in array, return error or continue - if($sitetype != 'twitter') { $headers = get_headers($rssurl, 1); if (strpos($headers[0], '200') === FALSE) throw new Exception('Flux inaccessible (compte inexistant ?)'); - } createAutoblog($sitetype, ucfirst($socialinstance) .' - '. $socialaccount, $siteurl, $rssurl); $success[] = ' @@ -788,7 +786,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY