Now only list files named *.theme

This commit is contained in:
sgbeal 2000-08-19 22:56:14 +00:00
parent d3dc289015
commit ca5af4b7fc

View File

@ -31,7 +31,8 @@
$dh = opendir($phpgw_info["server"]["server_root"] . "/themes");
while ($file = readdir($dh)) {
if ($file != "." && $file != ".." && $file != "CVS") {
# if ($file != "." && $file != ".." && $file != "CVS") {
if ( eregi( "\.theme$", $file ) ) {
$installed_themes[] = substr($file,0,strpos($file,"."));
}
}
@ -48,4 +49,6 @@
. $installed_themes[$i]) . "\">" . $installed_themes[$i] . "</a>\n";
}
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
?>