From 20291f2f40f6023d299a4b10def6f90163b0a4b2 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sun, 27 Sep 2009 23:40:19 -0600 Subject: [PATCH] Tweak ZIP display a bit --- framework/Mime/lib/Horde/Mime/Viewer/Zip.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/framework/Mime/lib/Horde/Mime/Viewer/Zip.php b/framework/Mime/lib/Horde/Mime/Viewer/Zip.php index 8064878f3..3d036653d 100644 --- a/framework/Mime/lib/Horde/Mime/Viewer/Zip.php +++ b/framework/Mime/lib/Horde/Mime/Viewer/Zip.php @@ -89,7 +89,7 @@ class Horde_Mime_Viewer_Zip extends Horde_Mime_Viewer_Driver } $text = '' . htmlspecialchars(sprintf(_("Contents of \"%s\""), $name)) . ":\n" . - '
' . + '
' . Horde_Text_Filter::filter( _("Archive Name") . ': ' . $name . "\n" . _("Archive File Size") . ': ' . strlen($contents) . @@ -101,12 +101,11 @@ class Horde_Mime_Viewer_Zip extends Horde_Mime_Viewer_Driver Horde_String::pad(_("Size"), 10, ' ', STR_PAD_LEFT) . Horde_String::pad(_("Modified Date"), 19, ' ', STR_PAD_LEFT) . Horde_String::pad(_("Method"), 10, ' ', STR_PAD_LEFT) . - Horde_String::pad(_("CRC"), 10, ' ', STR_PAD_LEFT) . Horde_String::pad(_("Ratio"), 10, ' ', STR_PAD_LEFT) . "\n", 'space2html', array('charset' => Horde_Nls::getCharset(), 'encode' => true, 'encode_all' => true) - ) . str_repeat('-', 69 + $maxlen) . "\n"; + ) . str_repeat('-', 59 + $maxlen) . "\n"; foreach ($zipInfo as $key => $val) { $ratio = (empty($val['size'])) @@ -118,7 +117,6 @@ class Horde_Mime_Viewer_Zip extends Horde_Mime_Viewer_Driver $val['size'] = Horde_String::pad($val['size'], 10, ' ', STR_PAD_LEFT); $val['date'] = Horde_String::pad(strftime("%d-%b-%Y %H:%M", $val['date']), 19, ' ', STR_PAD_LEFT); $val['method'] = Horde_String::pad($val['method'], 10, ' ', STR_PAD_LEFT); - $val['crc'] = Horde_String::pad($val['crc'], 10, ' ', STR_PAD_LEFT); $val['ratio'] = Horde_String::pad(sprintf("%1.1f%%", $ratio), 10, ' ', STR_PAD_LEFT); reset($val); @@ -131,13 +129,13 @@ class Horde_Mime_Viewer_Zip extends Horde_Mime_Viewer_Driver } $text .= $val['name'] . $val['attr'] . $val['size'] . - $val['date'] . $val['method'] . $val['crc'] . $val['ratio'] . + $val['date'] . $val['method'] . $val['ratio'] . "\n"; } return array( $this->_mimepart->getMimeId() => array( - 'data' => nl2br($text . str_repeat('-', 69 + $maxlen) . "\n
"), + 'data' => nl2br($text . str_repeat('-', 59 + $maxlen) . "\n
"), 'status' => array(), 'type' => 'text/html; charset=' . Horde_Nls::getCharset() ) -- 2.11.0