$err = array())
{
require_once 'Horde/Identity.php';
- require_once 'Horde/Text.php';
/* Set up some variables we use later. */
$identity = &Identity::singleton();
}
$fileCount = count($rarData);
- require_once 'Horde/Text.php';
-
$name = $this->_mimepart->getName(true);
if (empty($name)) {
$name = _("unnamed");
$text = '<strong>' . htmlspecialchars(sprintf(_("Contents of \"%s\""), $name)) . ':</strong>' . "\n" .
'<table><tr><td align="left"><tt><span class="fixed">' .
- Text::htmlAllSpaces(_("Archive Name") . ': ' . $name) . "\n" .
- Text::htmlAllSpaces(_("Archive File Size") . ': ' . strlen($contents) . ' bytes') . "\n" .
- Text::htmlAllSpaces(sprintf(ngettext("File Count: %d file", "File Count: %d files", $fileCount), $fileCount)) .
+ Horde_Text::htmlAllSpaces(_("Archive Name") . ': ' . $name) . "\n" .
+ Horde_Text::htmlAllSpaces(_("Archive File Size") . ': ' . strlen($contents) . ' bytes') . "\n" .
+ Horde_Text::htmlAllSpaces(sprintf(ngettext("File Count: %d file", "File Count: %d files", $fileCount), $fileCount)) .
"\n\n" .
- Text::htmlAllSpaces(
+ Horde_Text::htmlAllSpaces(
Horde_String::pad(_("File Name"), 50, ' ', STR_PAD_RIGHT) .
Horde_String::pad(_("Attributes"), 10, ' ', STR_PAD_LEFT) .
Horde_String::pad(_("Size"), 10, ' ', STR_PAD_LEFT) .
? 0
: 100 * ($val['csize'] / $val['size']);
- $text .= Text::htmlAllSpaces(
+ $text .= Horde_Text::htmlAllSpaces(
Horde_String::pad($val['name'], 50, ' ', STR_PAD_RIGHT) .
Horde_String::pad($val['attr'], 10, ' ', STR_PAD_LEFT) .
Horde_String::pad($val['size'], 10, ' ', STR_PAD_LEFT) .
}
$fileCount = count($tarData);
- require_once 'Horde/Text.php';
-
$name = $this->_mimepart->getName(true);
if (empty($name)) {
$name = _("unnamed");
$text = '<strong>' . htmlspecialchars(sprintf(_("Contents of \"%s\""), $name)) . ':</strong>' . "\n" .
'<table><tr><td align="left"><tt><span class="fixed">' .
- Text::htmlAllSpaces(_("Archive Name") . ': ' . $name) . "\n" .
- Text::htmlAllSpaces(_("Archive File Size") . ': ' . strlen($contents) . ' bytes') . "\n" .
- Text::htmlAllSpaces(sprintf(ngettext("File Count: %d file", "File Count: %d files", $fileCount), $fileCount)) .
+ Horde_Text::htmlAllSpaces(_("Archive Name") . ': ' . $name) . "\n" .
+ Horde_Text::htmlAllSpaces(_("Archive File Size") . ': ' . strlen($contents) . ' bytes') . "\n" .
+ Horde_Text::htmlAllSpaces(sprintf(ngettext("File Count: %d file", "File Count: %d files", $fileCount), $fileCount)) .
"\n\n" .
- Text::htmlAllSpaces(
+ Horde_Text::htmlAllSpaces(
str_pad(_("File Name"), 62, ' ', STR_PAD_RIGHT) .
str_pad(_("Attributes"), 15, ' ', STR_PAD_LEFT) .
str_pad(_("Size"), 10, ' ', STR_PAD_LEFT) .
str_repeat('-', 106) . "\n";
foreach ($tarData as $val) {
- $text .= Text::htmlAllSpaces(
+ $text .= Horde_Text::htmlAllSpaces(
str_pad($val['name'], 62, ' ', STR_PAD_RIGHT) .
str_pad($val['attr'], 15, ' ', STR_PAD_LEFT) .
str_pad($val['size'], 10, ' ', STR_PAD_LEFT) .
}
$maxlen = empty($max_array) ? 0 : max($max_array);
- require_once 'Horde/Text.php';
-
$name = $this->_mimepart->getName(true);
if (empty($name)) {
$name = _("unnamed");
$text = '<strong>' . htmlspecialchars(sprintf(_("Contents of \"%s\""), $name)) . ':</strong>' . "\n" .
'<table><tr><td align="left"><tt><span class="fixed">' .
- Text::htmlAllSpaces(
+ Horde_Text::htmlAllSpaces(
_("Archive Name") . ': ' . $name . "\n" .
_("Archive File Size") . ': ' . strlen($contents) .
' bytes' . "\n" .