diff --git a/.gitignore b/.gitignore index 11ccef4..a5f9aa4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ 0.3/.versionlock 0.3/.xsaflock -0.3/rss.xml +0.3/resources/rss.xml .project -0.3/user.css +0.3/resources/user.css +0.3/autoblogs/* +!0.3/autoblogs/autoblog.php diff --git a/0.3/index.php b/0.3/index.php index ed82638..1c5778f 100755 --- a/0.3/index.php +++ b/0.3/index.php @@ -566,7 +566,7 @@ if( !empty($_POST['generic']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_L $error = array_merge( $error, createAutoblog('generic', $sitename, $siteurl, $rssurl, $error)); if( empty($error)) - $success[] = 'Autoblog '. $sitename .' crée avec succès. → afficher l\'autoblog'; + $success[] = 'Autoblog '. $sitename .' crée avec succès. → afficher l\'autoblog'; } else { // checking procedure @@ -844,48 +844,47 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
- - + $value) + if(is_dir($unit)) + { + if( !file_exists(ROOT_DIR . '/' . $unit . '/.disabled')) { + $ini = parse_ini_file(ROOT_DIR . '/' . $unit . '/vvb.ini'); + if($ini) { - $key = strtolower($key); - $config->$key = $value; + $config = new stdClass; + $unit=substr($unit, 2); + foreach ($ini as $key=>$value) + { + $key = strtolower($key); + $config->$key = $value; + } + $autoblogs[$unit] = $config; + unset($ini); } - $autoblogs[$unit] = $config; - unset($ini); } } } - } - uasort($autoblogs, "objectCmp"); - $autoblogs_display = ''; + uasort($autoblogs, "objectCmp"); + $autoblogs_display = ''; - if(!empty($autoblogs)){ - foreach ($autoblogs as $key => $autoblog) { - $opml_link='opml'; - $autoblogs_display .= '