From dfb94cac1f0a29875ba1a785929da68287a630d4 Mon Sep 17 00:00:00 2001 From: cigamit Date: Sun, 29 Jun 2003 21:41:06 +0000 Subject: [PATCH] Remove the hard coded colors, and use the default theme and css file (set in conf.pl) for the login screen. Makes customization of the login screen alot easier. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5177 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 3 ++- src/login.php | 17 ++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 191bb0ba..2765e938 100644 --- a/ChangeLog +++ b/ChangeLog @@ -42,7 +42,8 @@ Version 1.5.0 -- CVS - Modified conf.pl: default to force usernames lowercase for servers which are case-insensitive - Applied bugfixes from stable to htmlfilter code. - - Fix bug #722933 where resuming a draft message would lose the reference headers. + - Fix bug #722933 where resuming a draft message would lose the reference headers + - Removed hard coded colors from login.php and made it use the default theme and css file ************************************** *** SquirrelMail Stable Series 1.4 *** diff --git a/src/login.php b/src/login.php index 4c4c41c3..6603edea 100644 --- a/src/login.php +++ b/src/login.php @@ -69,10 +69,13 @@ $header = "\n"; -$custom_css = 'none'; + +if (@file_exists($theme[$theme_default]['PATH'])) + @include ($theme[$theme_default]['PATH']); + displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE ); -echo '' . +echo "" . "\n" . '
' . "\n"; $username_form_name = 'login_username'; @@ -116,7 +119,7 @@ echo html_tag( 'table', html_tag( 'tr', html_tag( 'td', '' . sprintf (_("%s Login"), $org_name) . "\n", - 'center', '#DCDCDC' ) + 'center', $color[0] ) ) . html_tag( 'tr', html_tag( 'td', "\n" . @@ -140,18 +143,18 @@ echo html_tag( 'table', '' . "\n", 'left', '', 'width="*"' ) ) , - 'center', '#ffffff', 'border="0" width="100%"' ) , - 'left', '#FFFFFF' ) + 'center', $color[4], 'border="0" width="100%"' ) , + 'left', $color[4] ) ) . html_tag( 'tr', html_tag( 'td', '
', 'left' ) ), - '', '#ffffff', 'border="0" width="350"' ) . '', + '', $color[4], 'border="0" width="350"' ) . '', 'center' ) ) , -'', '#ffffff', 'border="0" cellspacing="0" cellpadding="0" width="100%"' ); +'', $color[4], 'border="0" cellspacing="0" cellpadding="0" width="100%"' ); do_hook('login_form'); echo '
' . "\n"; -- 2.25.1