From 78b2428e8fe2fd74f3c1dd32a1e524ce6d016384 Mon Sep 17 00:00:00 2001 From: tassium Date: Fri, 3 Jan 2003 14:14:31 +0000 Subject: [PATCH] Minor patch allowing admin to disable use of $org_logo on login page. Thanks to O'Shaughnessy Evans for the patch. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4360 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/login.php | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/login.php b/src/login.php index 3d0f0159..d60f77d2 100644 --- a/src/login.php +++ b/src/login.php @@ -71,13 +71,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_numeric($org_logo_width) && $org_logo_width>0) { - $width_and_height = " width=\"$org_logo_width\""; -} -if (isset($org_logo_height) && is_numeric($org_logo_height) && $org_logo_height>0) { - $width_and_height .= " height=\"$org_logo_height\""; +/* If they don't have a logo, don't bother.. */ +if (isset($org_logo) && $org_logo) { + /* Display width and height like good little people */ + $width_and_height = ''; + if (isset($org_logo_width) && is_numeric($org_logo_width) && + $org_logo_width>0) { + $width_and_height = " width=\"$org_logo_width\""; + } + if (isset($org_logo_height) && is_numeric($org_logo_height) && + $org_logo_height>0) { + $width_and_height .= " height=\"$org_logo_height\""; + } } echo "\n" . '
' . "\n" . @@ -85,8 +90,11 @@ html_tag( 'table', html_tag( 'tr', html_tag( 'td', '
'. - '' . sprintf(_(
' . "\n". + ( isset($org_logo) && $org_logo + ? '' .
+                sprintf(_(
' . "\n" + : '' ). ( $hide_sm_attributions ? '' : '' . sprintf (_("SquirrelMail version %s"), $version) . '
' ."\n". ' ' . _("By the SquirrelMail Development Team") . '
' . "\n" ) . -- 2.25.1