vérifier existance de vvb.ini avant ouverture
This commit is contained in:
parent
02b74c3bf2
commit
fd9f5db323
1 changed files with 2 additions and 0 deletions
|
@ -852,6 +852,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
|
|||
if(is_dir($unit))
|
||||
{
|
||||
if( !file_exists(ROOT_DIR . '/' . $unit . '/.disabled')) {
|
||||
if( file_exists(ROOT_DIR . '/' . $unit . '/vvb.ini')) {
|
||||
$ini = parse_ini_file(ROOT_DIR . '/' . $unit . '/vvb.ini');
|
||||
if($ini)
|
||||
{
|
||||
|
@ -865,6 +866,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY
|
|||
$autoblogs[$unit] = $config;
|
||||
unset($ini);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue