diff --git a/0.3/index.php b/0.3/index.php index dd5954b..1db99b7 100755 --- a/0.3/index.php +++ b/0.3/index.php @@ -276,7 +276,7 @@ if(!empty($_GET['via_button']) && $_GET['number'] === '17' && ALLOW_NEW_AUTOBLOG '; } else { - $form .= '

URL du flux RSS incorrect.
Fermer la fenêtre.

'; + $form .= '

URL du flux RSS incorrecte.
Fermer la fenêtre.

'; } } } @@ -330,7 +330,7 @@ if(!empty($_POST['socialaccount']) && !empty($_POST['socialinstance']) && ALLOW_ /** * ADD BY GENERIC LINK **/ -if( !empty($_POST['generic']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_LINK) { +if( !empty($_POST['generic']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_LINKS) { if(empty($_POST['rssurl'])) {$error[] = "Veuillez entrer l'adresse du flux.";} if(empty($_POST['number'])) @@ -348,23 +348,26 @@ if( !empty($_POST['generic']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_L $error = createAutoblog('generic', $sitename, $siteurl, $rssurl, $error); if( empty($error)) - $success[] = 'autoblog crée avec succès.afficher l\'autoblog'; + $success[] = 'Autoblog '. $sitename .' crée avec succès.afficher l\'autoblog'; } else { // checking procedure $rssurl = DetectRedirect($rssurl); $datafeed = file_get_contents($rssurl); + if( $datafeed === false ) { + $error[] = 'URL "'. $rssurl .'" inaccessible.'; + } $sitetype = 'generic'; $siteurl = get_link_from_datafeed($datafeed); $sitename = get_title_from_datafeed($datafeed); - $form = 'Merci de vérifier les informations suivantes, corrigez si nécessaire.
-
-
-
-
-
-
'; + $form = 'Merci de vérifier les informations suivantes, corrigez si nécessaire.
+
+
+
+
+
+
'; } }