$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$reqvars = $misc->getRequestVars('ftscfg');
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url('fulltext.php',
$reqvars,
$reqvars = $misc->getRequestVars('ftscfg');
$attrs = array(
- 'text' => noEscape(field('name')),
+ 'text' => field('name'),
'icon' => $what,
'toolTip'=> field('comment'),
'action' => url('fulltext.php',
return new UrlDecorator($base, $vars);
}
-function noEscape($value) {
- if (is_a($value, 'Decorator')) {
- $value->esc = false;
- return $value;
- }
- return new Decorator($value, false);
-}
-
function replace($str, $params) {
return new replaceDecorator($str, $params);
}
function value(&$var, &$fields, $esc = null) {
if (is_a($var, 'Decorator')) {
$val = $var->value($fields);
- if (!$var->esc) $esc = null;
} else {
$val =& $var;
}
+
if (is_string($val)) {
switch($esc) {
case 'xml':
class Decorator
{
- var $esc = true;
-
- function Decorator($value, $esc = true) {
+ function Decorator($value) {
$this->v = $value;
- $this->esc = $esc;
}
function value($fields) {
$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$items = $misc->adjustTabsForTree($tabs);
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$reqvars = $misc->getRequestVars('schema');
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'),
$reqvars,
$groups = $misc->getServersGroups();
- function escape($fields) {
- global $lang;
- if ($fields['id'] === 'all') {
- return $lang['strallservers'];
- }
- else return value(field('desc'), $fields, 'xml');
- }
-
$attrs = array(
- 'text' => noEscape(callback('escape')),
+ 'text' => field('desc'),
'icon' => 'Servers',
'action' => url('servers.php',
array(
$reqvars = $misc->getRequestVars('table');
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(
field('url'),
$reqvars = $misc->getRequestVars('view');
$attrs = array(
- 'text' => noEscape(field('title')),
+ 'text' => field('title'),
'icon' => field('icon'),
'action' => url(field('url'), $reqvars, field('urlvars'), array('view' => $_REQUEST['view'])),
'branch' => ifempty(