if ((substr($value, 0, 6) == "theme-") && (substr($value, -4) == ".zip"))
{
$name = substr($value, 6, -4);
- $file = PATH."themes/".$name."/theme.php";
+ $file = sprintf("%sthemes/%s/theme.php", PATH, $name);
$ver = trim(substr($response[$idx + 3], 4));
// Load version
$LANG_DUMMY[$k] = $v;
if ($v == "xx:xx") break;
$LANG[] = $v;
- }
+ } // END - foreach
// If language is found stop searching on matching line
foreach($LANG as $search) {
if (substr($search, 0, 3) == (GET_LANGUAGE().":")) { $INFO = substr($search, 3); break; }
- }
+ } // END - foreach
// Add informations to array
$THEMES['infos'][] = $INFO;
- }
- }
- }
+ } // END - if
+ } // END - if
+ } // END - foreach
// Ok, themes are on our server but maybe you have already installed them?
if (sizeof($THEMES['fname']) > 0) {
// Load template
LOAD_TEMPLATE("admin_theme_list");
- }
- else
- {
+ } else {
// All Themes are downloaded and installed
LOAD_TEMPLATE("admin_theme_installed", false, $count);
}
-}
- else
-{
+} else {
// No theme where found
LOAD_TEMPLATE("admin_theme_404");
}
+
//
?>