projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow main theme in login screen.
[squirrelmail.git]
/
functions
/
page_header.php
diff --git
a/functions/page_header.php
b/functions/page_header.php
index 26e8f61ceed698176d46685b922b71a3d13fa46b..60c8ec7ab044960cf26798be4266211ec486b569 100644
(file)
--- a/
functions/page_header.php
+++ b/
functions/page_header.php
@@
-14,20
+14,24
@@
// Always set up the language before calling these functions
function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
// Always set up the language before calling these functions
function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
- global $theme_css;
-
- echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">' .
- "\n\n<HTML>\n<HEAD>\n";
-
+ global $theme_css, $custom_css;
+
+ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">' .
+ "\n\n<HTML>\n<HEAD>\n";
+
+ if ( !isset( $custom_css ) || $custom_css == 'none' ) {
if ($theme_css != '') {
echo "<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"$theme_css\">\n";
}
if ($theme_css != '') {
echo "<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"$theme_css\">\n";
}
-
- if( $do_hook ) {
- do_hook ("generic_header");
- }
-
- echo "<title>$title</title>$xtra</head>\n\n";
+ } else {
+ echo "<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"../themes/css/$custom_css\">\n";
+ }
+
+ if( $do_hook ) {
+ do_hook ("generic_header");
+ }
+
+ echo "<title>$title</title>$xtra</head>\n\n";
}
function displayInternalLink($path, $text, $target='') {
}
function displayInternalLink($path, $text, $target='') {