\n\n"; echo "\n"; echo "\t$blogTitle\n"; echo "\t$blogSubTitle\n"; echo "\t\n"; echo "\t\n"; echo "\ttag:{$_SERVER['SERVER_NAME']}," . date("Y-m-d") . ":$blogRoot\n"; echo "\t" . date(DATE_ATOM) . "\n\n"; $ls = explode("\n", `ls -1t {$blogPosts}/`); foreach($ls as $file) { if (preg_match('/^\./', $file)) continue; if ($file === "") continue; $plusfile = preg_replace('/ /', '+', $file); $dashfile = preg_replace('/ /', '-', $file); $stat = stat("{$blogPosts}$file"); $time = $stat['mtime']; $date = date(DATE_ATOM, $time); $post = file_get_contents("{$blogPosts}$file"); $post = preg_replace('/\r?\n/', "
\n", $post); echo "\t\n"; echo "\t\t$file\n"; echo "\t\t\n"; echo "\t\ttag:{$_SERVER['SERVER_NAME']}," . date("Y-m-d", $time) . ":{$blogRoot}{$dashfile}\n"; echo "\t\t$date\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\n"; echo "\t\t\t$rssAuthorName\n"; if (isset($rssAuthorEmail)) echo "\t\t\t$rssAuthorEmail\n"; echo "\t\t\n"; echo "\t\n"; } echo "
"; ?>