/usr/share/horde/nag/templates/javascript_defs.php is in php-horde-nag 4.2.17-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?php
/* Variables used in core javascript files. */
$code['conf'] = array(
'URI_AJAX' => (string)$GLOBALS['registry']->getServiceLink('ajax', 'nag'),
'date_format' => Horde_Core_Script_Package_Datejs::translateFormat(
$GLOBALS['prefs']->getValue('date_format_mini')
),
'tasklist_info_url' => (string)Horde::url('tasklists/info.php'),
'time_format' => $GLOBALS['prefs']->getValue('twentyFour') ? 'HH:mm' : 'hh:mm tt',
);
/* Gettext strings used in core javascript files. */
$code['text'] = array(
'close' => _("Close"),
);
$GLOBALS['page_output']->addInlineJsVars(array(
'var Nag' => $code
), array('top' => true));
|