"._TEMA."
";
$path = "temi/";
$handle=opendir($path);
while ($file = readdir($handle)) {
if ( (preg_match('/^([_0-9a-zA-Z]+)([_0-9a-zA-Z]{3})$/',$file)) ) {
$tlist .= "$file ";
}
}
closedir($handle);
$tlist = explode(" ", $tlist);
sort($tlist);
for ($i=0; $i < sizeof($tlist); $i++) {
if(($tlist[$i]!="") && ($tlist[$i]!="language")) {
if ($tema == $tlist[$i]) {
$sel = "selected";
} else {
$sel = "";
}
$files=ucfirst($tlist[$i]);
$content .= "- $files
";
}
}
$content .="
";
echo $content;
?>