X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Flogin.php;h=6603edea9b485a8b48ed708c91fe321ff4fd365d;hb=dfb94cac1f0a29875ba1a785929da68287a630d4;hp=d60f77d282b79b3f2dca0fa4198235cd14b5bd25;hpb=78b2428e8fe2fd74f3c1dd32a1e524ce6d016384;p=squirrelmail.git diff --git a/src/login.php b/src/login.php index d60f77d2..6603edea 100644 --- a/src/login.php +++ b/src/login.php @@ -43,7 +43,7 @@ $base_uri = sqm_baseuri(); * In case the last session was not terminated properly, make sure * we get a new one. */ - + sqsession_destroy(); header('Pragma: no-cache'); @@ -56,20 +56,33 @@ $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'; do_hook('login_top'); -$loginname_value = (isset($loginname) ? htmlspecialchars($loginname) : ''); +$loginname_value = (sqGetGlobalVar('loginname', $loginname) ? htmlspecialchars($loginname) : ''); /* If they don't have a logo, don't bother.. */ if (isset($org_logo) && $org_logo) { @@ -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,24 +139,24 @@ 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%"' ) . -'
' . "\n"; - +'', $color[4], 'border="0" cellspacing="0" cellpadding="0" width="100%"' ); do_hook('login_form'); +echo '' . "\n"; do_hook('login_bottom'); echo "\n".