if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("theme")) {
- addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), "theme");
+} elseif (!EXT_IS_ACTIVE('theme')) {
+ addFatalMessage(__FILE__, __LINE__, getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'theme');
return;
}
// Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
// Switch to testing mode
-$GLOBALS['theme_mode'] = "test";
+$GLOBALS['theme_mode'] = 'test';
// Import selected theme if not present
if (REQUEST_ISSET_POST(('theme'))) {
}
// Output message
- LOAD_TEMPLATE("admin_settings_saved", false, $msg);
+ LOAD_TEMPLATE('admin_settings_saved', false, $msg);
} // END - if
// Initialize array
array_pk_sort($THEMES, array("theme_name"));
// Generate output lines for the template
-$OUT = ""; $SW = 2;
+$OUT = ''; $SW = 2;
foreach ($THEMES['theme_unix'] as $key => $unix) {
// Already installed is default
$FOUND = "<div class=\"admin_note\">{--ADMIN_THEME_ALREADY_INSTALLED--}</div>";
if (empty($OUT)) {
// No themes found???
- $OUT .= LOAD_TEMPLATE("admin_theme_import_none", true, LOAD_TEMPLATE("admin_settings_saved", true, getMessage('ADMIN_NO_THEMES_FOUND')));
+ $OUT .= LOAD_TEMPLATE("admin_theme_import_none", true, LOAD_TEMPLATE('admin_settings_saved', true, getMessage('ADMIN_NO_THEMES_FOUND')));
} // END - if
// Set the generated list