next up previous contents
Next: printer_friendly_main.php Up: 目錄 src Previous: login.php   Contents

printer_friendly_bottom.php

  1. "View Printable Version" 頁尾列印程式。
    [root@mail squirrelmail-1.4.8]# diff -wuN ./src/printer_friendly_bottom.php /var/www/squirrelmail/src/printer_friendly_bottom.php
    --- ./src/printer_friendly_bottom.php	2006-04-15 06:27:08.000000000 +0800
    +++ /var/www/squirrelmail/src/printer_friendly_bottom.php	2012-05-03 08:08:57.000000000 +0800
    
  2. 刪除多餘的空白行及空白。
    @@ -141,6 +141,8 @@
              );
          }
          /* body */
    +	$body = preg_replace("/(\r?\n)\\1+/","\\1",$body); //dywang
    +	$body = preg_replace("/([\s]*<br>\n)+/","<br>\n",$body); //dywang
          echo html_tag( 'tr',
              html_tag( 'td', '<hr noshade size="1" /><br />' . "\n" . $body, 'left', '', 'colspan="2"' )
                         ) . "\n";
    



2016-03-11