X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-theme_import.php;h=fd9fd24cc4fd821efa19c1041f741f225793d908;hp=c56245e4ee4f731c51e71212d86dce776f3f9864;hb=bfbf712685680761babfd9ea059a224a4aa244bf;hpb=56156f6c4392510cdbe0eb4f2ccefc23b43e2672 diff --git a/inc/modules/admin/what-theme_import.php b/inc/modules/admin/what-theme_import.php index c56245e4ee..fd9fd24cc4 100644 --- a/inc/modules/admin/what-theme_import.php +++ b/inc/modules/admin/what-theme_import.php @@ -54,7 +54,7 @@ if (!empty($_POST['theme'])) { $file = sprintf("%stheme/%s/theme.php", PATH, SQL_ESCAPE($_POST['theme'])); if (FILE_READABLE($file)) { // Load the theme header file - include($file); + require($file); // Register it ith the exchange SQL_QUERY_ESC("INSERT INTO `"._MYSQL_PREFIX."_themes` (`theme_path`, `theme_active`, `theme_ver`, `theme_name`) @@ -99,7 +99,7 @@ while ($dir = readdir($handle)) { // Test it... if (($dir != ".") && ($dir != "..") && (FILE_READABLE($theme))) { // Found a valid directory so let's load it's theme.php file - include($theme); + require($theme); // Add found theme to array $THEMES['theme_unix'][] = $dir; @@ -133,20 +133,20 @@ foreach ($THEMES['theme_unix'] as $key => $unix) { } // Add row - $OUT .= " - ".$unix." - ".$THEMES['theme_name'][$key]." - + $OUT .= " + ".$unix." + ".$THEMES['theme_name'][$key]." + ".$THEMES['theme_author'][$key]." - - + + ".$THEMES['theme_url'][$key]." - - v".$THEMES['theme_ver'][$key]." - + + v".$THEMES['theme_ver'][$key]." + ".$FOUND." - -\n"; + +\n"; // Switch color $SW = 3 - $SW; @@ -154,11 +154,11 @@ foreach ($THEMES['theme_unix'] as $key => $unix) { if (empty($OUT)) { // No themes found??? - $OUT .= " - + $OUT .= " + ".LOAD_TEMPLATE("admin_settings_saved", true, ADMIN_NO_THEMES_FOUND)." - -\n"; + +\n"; } // END - if define('__THEME_LIST', $OUT);