X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fpage_header.php;h=424d420a7f563a3c23ab8e740118363fae10ac86;hb=f8a4ef2dc5fef964738d410ecef9fa4b06ba9650;hp=df2ca0d0accc475f4f087c3157f7f80750d46a18;hpb=c8ae30d6634a42106a94b0376081070c88506596;p=squirrelmail.git
diff --git a/functions/page_header.php b/functions/page_header.php
index df2ca0d0..424d420a 100644
--- a/functions/page_header.php
+++ b/functions/page_header.php
@@ -273,7 +273,22 @@ function displayPageHeader($color, $mailbox, $xtra='', $session=false) {
var marked_row = new Array;
-/**
+/*
+ * (un)Checks checkbox for the row that the current table cell is in
+ * when it gets clicked.
+ *
+ * @param string the name of the checkbox that should be (un)checked
+ */
+function row_click(chkboxName) {
+ chkbox = document.getElementById(chkboxName);
+ if (chkbox) {
+ chkbox.checked = (chkbox.checked ? false : true);
+ }
+}
+
+
+
+/*
* Sets/unsets the pointer and marker in browse mode
*
* @param object the table row
@@ -529,9 +544,12 @@ EOS;
if (!$hide_sm_attributions)
{
echo html_tag( 'td', '', 'right' ) ."\n";
- if (!isset($provider_uri)) $provider_uri= 'http://www.squirrelmail.org/';
- if (!isset($provider_name)) $provider_name= 'SquirrelMail';
- echo ''.$provider_name.'';
+ if (empty($provider_uri)) {
+ echo 'SquirrelMail';
+ } else {
+ if (empty($provider_name)) $provider_name= 'SquirrelMail';
+ echo ''.$provider_name.'';
+ }
echo "\n";
}
echo " \n".