X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Flogin.php;h=e18fd327ac17a5b94aab712996aef4103e64ea48;hb=e9a71964b0904aaf43e44ae9968352f45e977ad0;hp=3bb63e920db6c8092f808d4167f400cd1ae7c1ae;hpb=5250f7e792f62e93e08dfaa65b8645b50d6cb559;p=squirrelmail.git diff --git a/src/login.php b/src/login.php index 3bb63e92..e18fd327 100644 --- a/src/login.php +++ b/src/login.php @@ -29,7 +29,7 @@ require_once(SM_PATH . 'functions/global.php'); * $squirrelmail_language is set by a cookie when the user selects * language and logs out */ -set_up_language($squirrelmail_language, TRUE); +set_up_language($squirrelmail_language, TRUE, TRUE); /** * Find out the base URI to set cookies. @@ -56,14 +56,27 @@ $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'; $password_form_name = 'secretkey'; @@ -85,8 +98,12 @@ if (isset($org_logo) && $org_logo) { } } -echo "\n" . '' . "\n" . -html_tag( 'table', +if(sqgetGlobalVar('mailto', $mailto)) { + $rcptaddress = '' . "\n"; +} else { + $rcptaddress = ''; +} +echo html_tag( 'table', html_tag( 'tr', html_tag( 'td', '
'. @@ -95,14 +112,14 @@ html_tag( 'table', sprintf(_("%s Logo"), $org_name) .'"' . $width_and_height . ' />
' . "\n" : '' ). - ( $hide_sm_attributions ? '' : + ( (isset($hide_sm_attributions) && $hide_sm_attributions) ? '' : '' . sprintf (_("SquirrelMail version %s"), $version) . '
' ."\n". ' ' . _("By the SquirrelMail Development Team") . '
' . "\n" ) . 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" . @@ -122,21 +139,22 @@ html_tag( 'table', html_tag( 'td', '' . "\n" . '' . "\n" . + $rcptaddress . '' . "\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";