(GPLv2)
or write to the Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA02110-1301, USA.
********************************************************************************/
if (stristr(htmlentities($_SERVER['PHP_SELF']), "block_templates.php")) {
die("
Error: This file cannot be opened directly!
");
}
global $siteConfig;
unset($filearray);
$filearray = array();
$handle = opendir('templates/');
while (false !== ($file = readdir($handle))) {
if ($file != "." AND $file != ".." AND !eregi("html",$file) AND $file != "Thumbs.db" AND file_exists("templates/$file/home.html")) {
$ttl = ucfirst($file);
$filearray[] = "";
}
}
closedir($handle);
@sort($filearray);
@reset($filearray);
echo "\n";
?>