git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3282
7612ce4b-ef26-0410-bec9-
ea0150e637f0
- Enable people with file_uploads = off to still send mail. Patch from Seth
E. Randall.
- Moved the generic_header hook back to page_header.php. bug #554278
- Enable people with file_uploads = off to still send mail. Patch from Seth
E. Randall.
- Moved the generic_header hook back to page_header.php. bug #554278
+ - Make default theme work. Bug #557313, thanks Tyler Bannister.
+
Version 1.2.7 -- CVS
--------------------
Version 1.2.7 -- CVS
--------------------
# strings
print CF "\$theme_css = '$theme_css';\n";
# strings
print CF "\$theme_css = '$theme_css';\n";
+ print CF "\$theme_default = $theme_default;\n";
+
for ( $count = 0 ; $count <= $#theme_name ; $count++ ) {
print CF "\$theme[$count]['PATH'] = '$theme_path[$count]';\n";
print CF "\$theme[$count]['NAME'] = '$theme_name[$count]';\n";
for ( $count = 0 ; $count <= $#theme_name ; $count++ ) {
print CF "\$theme[$count]['PATH'] = '$theme_path[$count]';\n";
print CF "\$theme[$count]['NAME'] = '$theme_name[$count]';\n";
* To add a new theme to the options that users can choose from, just
* add a new number to the array at the bottom, and follow the pattern.
*/
* To add a new theme to the options that users can choose from, just
* add a new number to the array at the bottom, and follow the pattern.
*/
-/**
- * The first one HAS to be here, and is your system's default
- * theme. It can be any theme you want.
- */
$theme[0]['PATH'] = '../themes/default_theme.php';
$theme[0]['NAME'] = 'Default';
$theme[0]['PATH'] = '../themes/default_theme.php';
$theme[0]['NAME'] = 'Default';
case 'KST':
$gmt = '+0900';
break;
case 'KST':
$gmt = '+0900';
break;
}
if (substr($gmt, 0, 1) == '-') {
}
if (substr($gmt, 0, 1) == '-') {
if (isset($chosen_theme) && $found_theme && (file_exists($chosen_theme))) {
@include_once($chosen_theme);
} else {
if (isset($chosen_theme) && $found_theme && (file_exists($chosen_theme))) {
@include_once($chosen_theme);
} else {
- if (isset($theme) && isset($theme[0]) && file_exists($theme[0]['PATH'])) {
- @include_once($theme[0]['PATH']);
+ if (isset($theme) && isset($theme[$theme_default]) && file_exists($theme[$theme_default]['PATH'])) {
+ @include_once($theme[$theme_default]['PATH']);
} else {
/**
* This theme as a failsafe if no themes were found. It makes
} else {
/**
* This theme as a failsafe if no themes were found. It makes