public function LoadThemes()
{
$allthemes = array();
$dirs = GetDirsInDir($this->usersdir . 'theme/');
natcasesort($dirs);
array_unshift($dirs, $this->theme);
$dirs = array_unique($dirs);
foreach ($dirs as $id) {
$app = new App();
if ($app->LoadInfoByXml('theme', $id) == true) {
$allthemes[] = $app;
}
}
return $allthemes;
}