From 84469c668d4cee0ba15c1d84917c2e3d07ecb5be Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 7 Apr 2013 12:15:52 +0200 Subject: [PATCH] Fixes #5 and stop browsing docs folder for autoblogs --- 0.3/index.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/0.3/index.php b/0.3/index.php index 4c911a5..aa2715e 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; @@ -392,7 +392,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'); } @@ -403,7 +403,7 @@ if( isset($_GET['updateall']) && ALLOW_FULL_UPDATE) { $antibot = generate_antibot(); $form = '

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


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

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

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

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

-
+
@@ -872,7 +872,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');