From ab9a55354830337878b3f2e558890d0ae3d006aa Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Sun, 7 Apr 2013 13:10:07 +0200 Subject: [PATCH] =?UTF-8?q?Rhaaa=20repush=20version=20pr=C3=A9c=C3=A9dente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0.3/index.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/0.3/index.php b/0.3/index.php index 30fe190..8b6feb5 100755 --- a/0.3/index.php +++ b/0.3/index.php @@ -255,7 +255,7 @@ if (isset($_GET['export'])) { $subdirs = glob($directory . "*"); foreach($subdirs as $unit) { - if(is_dir($unit)) { + if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { $unit=substr($unit, 2); $ini = parse_ini_file($unit.'/vvb.ini'); $config = new stdClass; @@ -289,7 +289,7 @@ if (isset($_GET['export_twitter'])) { $response = array(); foreach($subdirs as $unit) { - if(is_dir($unit)) { + if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { $unit=substr($unit, 2); $ini = parse_ini_file($unit.'/vvb.ini'); if( $ini['SITE_TYPE'] == 'twitter' ) { @@ -323,7 +323,7 @@ if (isset($_GET['exportopml'])) // OPML $subdirs = glob($directory . "*"); foreach($subdirs as $unit) { - if(is_dir($unit)) { + if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { $unit=substr($unit, 2); $ini = parse_ini_file($unit.'/vvb.ini'); $config = new stdClass; @@ -395,7 +395,7 @@ if( isset($_GET['updateall']) && ALLOW_FULL_UPDATE) { $directory = "./"; $subdirs = glob($directory . "*"); foreach($subdirs as $unit) { - if(is_dir($unit)) { + if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { if( !file_exists(ROOT_DIR . '/' . $unit . '/.disabled')) { file_get_contents(serverUrl() . substr($_SERVER['PHP_SELF'], 0, -9) . $unit . '/index.php'); } @@ -406,7 +406,7 @@ if( isset($_GET['updateall']) && ALLOW_FULL_UPDATE) { $antibot = generate_antibot(); $form = '

-
+
'; @@ -589,7 +589,7 @@ if( !empty($_POST['generic']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY_L


-
+
'; } @@ -778,7 +778,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY Identica

-
+
@@ -790,7 +790,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY

-
+
@@ -804,7 +804,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY

-
+
@@ -819,7 +819,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY

-
+
@@ -875,7 +875,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY $autoblogs = array(); foreach($subdirs as $unit) { - if(is_dir($unit)) + if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { if( !file_exists(ROOT_DIR . '/' . $unit . '/.disabled')) { $ini = parse_ini_file(ROOT_DIR . '/' . $unit . '/vvb.ini'); @@ -936,3 +936,4 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY +