X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Flogin.php;h=2ca0a49c820976d10eed417d1588143ef72111cb;hb=de19cd7342abc1fb96dce8403128152b7708ec58;hp=12efa9f266df71381296f63166aeafa24b51bb49;hpb=98f2ee76f9c96a06d758cecca6c6fc2b45591074;p=squirrelmail.git diff --git a/src/login.php b/src/login.php index 12efa9f2..2ca0a49c 100644 --- a/src/login.php +++ b/src/login.php @@ -28,7 +28,7 @@ if (isset($emailaddress)) { $name = urldecode($a[0]); $val = urldecode($a[1]); global $$name; - $$naame = $val; + $$name = $val; } } @@ -39,13 +39,13 @@ if (isset($emailaddress)) { $key = strtolower($k); $value = urlencode($v); if ($key == 'cc') { - $rcptaddress .= '&send_to_cc=' . $value; + $rcptaddress .= '&send_to_cc=' . $value; } else if ($key == 'bcc') { - $rcptaddress .= '&send_to_bcc=' . $value; + $rcptaddress .= '&send_to_bcc=' . $value; } else if ($key == 'subject') { - $rcptaddress .= '&subject=' . $value; + $rcptaddress .= '&subject=' . $value; } else if ($key == 'body') { - $rcptaddress .= '&body=' . $value; + $rcptaddress .= '&body=' . $value; } } @@ -93,6 +93,7 @@ $header = "\n"; +$custom_css = 'none'; displayHtmlHeader( "$org_name - " . _("Login"), $header, FALSE ); /* Set the title of this page. */ @@ -105,8 +106,18 @@ do_hook('login_top'); $loginname_value = (isset($loginname) ? htmlspecialchars($loginname) : ''); +/* Display width and height like good little people */ +$width_and_height = ""; +if (isset($org_logo_width) && is_int($org_logo_width) && $org_logo_width>0) { + $width_and_height = " WIDTH=\"$org_logo_width\""; +} +if (isset($org_logo_height) && is_int($org_logo_height) && $org_logo_height>0) { + $width_and_height .= " HEIGHT=\"$org_logo_height\""; +} + echo "
". - "
\n". + " \""
\n". ( $hide_sm_attributions ? '' : '' . sprintf (_("SquirrelMail version %s"), $version) . "
\n". ' ' . _("By the SquirrelMail Development Team") . "
\n" ) . @@ -148,4 +159,4 @@ echo "\n"; do_hook('login_bottom'); echo "\n". "\n"; -?> \ No newline at end of file +?>