Chora::fatal($e);
}
-$title = sprintf(_("Source Annotation of %s (revision %s)"), Text::htmlAllSpaces($where), $rev);
+$title = sprintf(_("Source Annotation of %s (revision %s)"), Horde_Text::htmlAllSpaces($where), $rev);
$extraLink = sprintf('<a href="%s">%s</a> | <a href="%s">%s</a>',
Chora::url('co', $where, array('r' => $rev)), _("View"),
Chora::url('co', $where, array('r' => $rev, 'p' => 1)), _("Download"));
}
$prev = $fl->queryPreviousRevision($rev);
- $line = Text::htmlAllSpaces($line['line']);
+ $line = Horde_Text::htmlAllSpaces($line['line']);
include CHORA_TEMPLATES . '/annotate/line.inc';
}
continue;
}
$url = Chora::url('browsedir', $where . '/' . $currentDir . '/');
- $currDir = Text::htmlAllSpaces($currentDir);
+ $currDir = Horde_Text::htmlAllSpaces($currentDir);
require CHORA_TEMPLATES . '/directory/dir.inc';
}
echo '</tbody>';
$log = $lg->queryLog();
$attic = $currFile->isDeleted();
$fileName = $where . ($attic ? '/' . 'Attic' : '') . '/' . $realname;
- $name = Text::htmlAllSpaces($realname);
+ $name = Horde_Text::htmlAllSpaces($realname);
$url = Chora::url('browsefile', $fileName);
$readableDate = Chora::readableTime($date);
if ($log) {
passthru($conf['paths']['cvsgraph'] . ' ' . $argstr . ' ' . $file);
} else {
// Display the wrapper page for the image.
- $title = sprintf(_("Graph for %s"), Text::htmlAllSpaces($where));
+ $title = sprintf(_("Graph for %s"), Horde_Text::htmlAllSpaces($where));
$extraLink = Chora::getFileViews($where, 'cvsgraph');
require CHORA_TEMPLATES . '/common-header.inc';
$abbrev_r1 = $VC->abbrev($r1);
$abbrev_r2 = $VC->abbrev($r2);
$title = sprintf(_("Diff for %s between version %s and %s"),
- Text::htmlallspaces($where), $abbrev_r1, $abbrev_r2);
+ Horde_Text::htmlallspaces($where), $abbrev_r1, $abbrev_r2);
/* Format log entries. */
$log_messages = array();
$maxCol = max($val, $maxCol);
}
-$title = sprintf(_("Source Branching View for %s"), Text::htmlallspaces($where));
+$title = sprintf(_("Source Branching View for %s"), Horde_Text::htmlallspaces($where));
$extraLink = Chora::getFileViews($where, 'history');
require CHORA_TEMPLATES . '/common-header.inc';
}
$path .= $dir;
if (!empty($dir)) {
- $bar .= '/ <a href="' . self::url('browsedir', $path . ($i == $dir_count && !$GLOBALS['atdir'] ? '' : '/')) . '">'. Text::htmlallspaces($dir) . '</a> ';
+ $bar .= '/ <a href="' . self::url('browsedir', $path . ($i == $dir_count && !$GLOBALS['atdir'] ? '' : '/')) . '">'. Horde_Text::htmlallspaces($dir) . '</a> ';
}
}
$notification->attach('status');
// Horde base libraries.
-require_once 'Horde/Text.php';
require_once 'Horde/Help.php';
// Chora base library.
}
arsort($stats);
-$title = sprintf(_("Statistics for %s"), Text::htmlallspaces($where));
+$title = sprintf(_("Statistics for %s"), Horde_Text::htmlallspaces($where));
Horde::addScriptFile('prototype.js', 'horde', true);
Horde::addScriptFile('tables.js', 'horde', true);
require CHORA_TEMPLATES . '/common-header.inc';
*/
static public function flistSelect($options = array())
{
- require_once 'Horde/Text.php';
-
$imp_folder = IMP_Folder::singleton();
/* Don't filter here - since we are going to parse through every
$val = isset($filter[$mbox['val']]) ? '' : htmlspecialchars($mbox['val']);
$sel = ($mbox['val'] && !empty($options['selected']) && ($mbox['val'] === $options['selected'])) ? ' selected="selected"' : '';
$label = empty($options['abbrev']) ? $mbox['label'] : $mbox['abbrev'];
- $text .= sprintf('<option value="%s"%s>%s</option>%s', $val, $sel, Text::htmlSpaces($label), "\n");
+ $text .= sprintf('<option value="%s"%s>%s</option>%s', $val, $sel, Horde_Text::htmlSpaces($label), "\n");
}
/* Add the list of virtual folders to the list. */
$vfolder_sel = $GLOBALS['imp_search']->searchMboxID();
$text .= '<option value="" disabled="disabled">- - - - - - - - -</option>' . "\n";
foreach ($vfolders as $id => $val) {
- $text .= sprintf('<option value="%s"%s>%s</option>%s', $GLOBALS['imp_search']->createSearchID($id), ($vfolder_sel == $id) ? ' selected="selected"' : '', Text::htmlSpaces($val), "\n");
+ $text .= sprintf('<option value="%s"%s>%s</option>%s', $GLOBALS['imp_search']->createSearchID($id), ($vfolder_sel == $id) ? ' selected="selected"' : '', Horde_Text::htmlSpaces($val), "\n");
}
}
}
foreach ($tasklists as $id => $tasklist) {
$text .= sprintf('<option value="%s">%s</option>%s',
'_tasklist_' . $id,
- Text::htmlSpaces($tasklist->get('name')),
+ Horde_Text::htmlSpaces($tasklist->get('name')),
"\n");
}
}
foreach ($notepads as $id => $notepad) {
$text .= sprintf('<option value="%s">%s</option>%s',
'_notepad_' . $id,
- Text::htmlSpaces($notepad->get('name')),
+ Horde_Text::htmlSpaces($notepad->get('name')),
"\n");
}
}
* Formats the subject header.
*
* @param string $subject The MIME encoded subject header.
- * @param string $htmlspaces Run through Text::htmlSpaces()?
+ * @param string $htmlspaces Run through Horde_Text::htmlSpaces()?
*
* @return string The formatted subject header.
*/
$new_subject = $subject = IMP::filterText(preg_replace("/\s+/", ' ', $subject));
if ($htmlspaces) {
- require_once 'Horde/Text.php';
- $new_subject = Text::htmlSpaces($subject);
+ $new_subject = Horde_Text::htmlSpaces($subject);
if (empty($new_subject)) {
$new_subject = htmlspecialchars($subject);
}
{
$output = '';
- require_once 'Horde/Text.php';
-
/* Split the incoming data by the ',' character. */
foreach (preg_split("/,/", $data) as $entry) {
/* Get the data inside of the brackets. If there is no brackets,
$text .= '<option value="">' . _("Create new folder") . "</option>\n";
}
- require_once 'Horde/Text.php';
-
foreach ($mailboxes as $mbox) {
$sel = ($mbox['val'] && ($mbox['val'] === $value)) ? ' selected="selected"' : '';
$disabled = empty($mbox['val']) ? ' disabled="disabled"' : '';
$label = $mbox['abbrev'];
$text .= sprintf('<option%s value="%s"%s>%s</option>%s',
$disabled, $val, $sel,
- Text::htmlSpaces($label), "\n");
+ Horde_Text::htmlSpaces($label), "\n");
}
$text .= '</select>';
return;
}
- require_once 'Horde/Text.php';
require_once 'Horde/Text/Filter.php';
$createdby = '';