diff --git a/0.3/index.php b/0.3/index.php index afa1252..1e811e0 100755 --- a/0.3/index.php +++ b/0.3/index.php @@ -353,10 +353,9 @@ if (isset($_GET['sitemap'])) echo ''.'http' . (!empty($_SERVER['HTTPS']) ? 's' : '')."://{$_SERVER['HTTP_HOST']}".str_replace('?sitemap', '', $_SERVER['REQUEST_URI'])."\n"; echo ''.date('c', time())."\n"; echo 'daily'; - $directory = "./"; - $subdirs = glob($directory . "*"); + $subdirs = glob(AUTOBLOGS_FOLDER . "*"); foreach($subdirs as $unit) { - if(is_dir($unit) && strpos($unit.'/', DOC_FOLDER) === FALSE) { + if(is_dir($unit)) { $unit=substr($unit, 2); $proto=(!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS'])=='on')?"https://":"http://"; echo ''.$proto.$_SERVER['SERVER_NAME'].substr($_SERVER['PHP_SELF'], 0, -9)."$unit/"."\n";