Location: PHPKode > scripts > Dornbase > scripts/site_themes.php
<?php
//get list of available site themes
$themes = array();
$dir = SITE_FOLDER."css/themes_new/";
if(is_dir($dir)) {
    if ($dh = opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
			if(is_dir($dir.$file) && $file!='.' && $file!='..')
				$themes[] = $file;
        }
        closedir($dh);
    }
	sort($themes);
}

foreach($themes as $theme) {
	echo "<option value='$theme'>$theme</option>\n";
}
?>
Return current item: Dornbase