0.1.1 is the latest stable release. If you wanted to display it, you'd have a bit of work cut out for you.
You could edit your skins/default/templates/login.html or skins/default/templates/mail.html and add this to it:
Then go into program/includes/rcube_template.inc and find the method "xml_command" around line 442. Inside the switch in the xml_command method look for this:
// return variable
case 'var':
$var = explode(':', $attrib['name']);
$name = $var[1];
$value = '';
switch ($var[0])
{
case 'env':
$value = $this->env[$name];
break;
case 'config':
$value = $this->config[$name];
if (is_array($value) && $value[$_SESSION['imap_host']])
$value = $value[$_SESSION['imap_host']];
break;
case 'request':
$value = get_input_value($name, RCUBE_INPUT_GPC);
break;
case 'session':
$value = $_SESSION[$name];
break;
}
if (is_array($value))
$value = join(", ", $value);
return Q($value);
Now, after "case 'session':" add this:
case 'defined':
$value = constant($name);
break;
So it should look like:
// return variable
case 'var':
$var = explode(':', $attrib['name']);
$name = $var[1];
$value = '';
switch ($var[0])
{
case 'env':
$value = $this->env[$name];
break;
case 'config':
$value = $this->config[$name];
if (is_array($value) && $value[$_SESSION['imap_host']])
$value = $value[$_SESSION['imap_host']];
break;
case 'request':
$value = get_input_value($name, RCUBE_INPUT_GPC);
break;
case 'session':
$value = $_SESSION[$name];
break;
case 'defined':
$value = constant($name);
break;
}
if (is_array($value))
$value = join(", ", $value);
return Q($value);
Works as expected.
Powered by RoundCube Webmail v.
Just wanted to toss in an update. You can actually just use:
instead of doing the above edits. But either would work.
Version.