diff --git a/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php b/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php index a13c32b90..ee7dd23ca 100644 --- a/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php +++ b/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php @@ -81,6 +81,6 @@ function S_tra($param) { global $uiBrowser; - echo $uiBrowser->tra($param[0], $param[1], $param[2], $param[3], $param[4], $param[5], $param[6], $param[7], $param[8], $param[9]); + echo tra($param[0], $param[1], $param[2], $param[3], $param[4], $param[5], $param[6], $param[7], $param[8], $param[9]); } ?> \ No newline at end of file diff --git a/livesupport/modules/htmlUI/var/conf.php b/livesupport/modules/htmlUI/var/conf.php index a9c18d3cc..7bdaac493 100644 --- a/livesupport/modules/htmlUI/var/conf.php +++ b/livesupport/modules/htmlUI/var/conf.php @@ -23,7 +23,7 @@ Author : $Author: sebastian $ - Version : $Revision: 1.9 $ + Version : $Revision: 1.10 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/htmlUI/var/Attic/conf.php,v $ ------------------------------------------------------------------------------*/ @@ -124,5 +124,8 @@ define('UI_SEARCH_MAX_ROWS', 8); define('UI_SEARCH_MIN_ROWS', 2); define('UI_REGEX_URL', '/^(ht|f)tps?:\/\/[^ ]+$/'); define('UI_SCRATCHPAD_KEY', 'djBagContents'); +define('UI_SCRATCHPAD_MAXLENGTH_KEY', 'djBagMaxlength'); #define('UI_SCRATCHPAD_REGEX', '/^[0-9a-f]{16}:[0-9]{4}-[0-9]{2}-[0-9]{2}$/'); +define('UI_SCRATCHPAD_SESSNAME', 'SP'); +define('UI_STATIONINFO_SESSNAME', 'SInfo'); ?> \ No newline at end of file diff --git a/livesupport/modules/htmlUI/var/html/Smarty/libs/plugins/outputfilter.localizer.php b/livesupport/modules/htmlUI/var/html/Smarty/libs/plugins/outputfilter.localizer.php new file mode 100755 index 000000000..97f1ec610 --- /dev/null +++ b/livesupport/modules/htmlUI/var/html/Smarty/libs/plugins/outputfilter.localizer.php @@ -0,0 +1,29 @@ +load_filter('post','localizer'); + * from application. + * Author: Media Development Loan Fund + * ------------------------------------------------------------- + */ + function smarty_outputfiler_localizer_tra($matches) + { + foreach ($matches as $match) { + $key = substr($match, 2, strpos(substr($match, 2), '#')); + } + } + + function smarty_outputfilter_localizer($compiled, &$smarty) + { + $pattern = '/##.*##/U'; + return preg_replace_callback($pattern, 'smarty_outputfiler_localizer_tra', $compiled); + } +?> diff --git a/livesupport/modules/htmlUI/var/html/templates/ScratchPad.tpl b/livesupport/modules/htmlUI/var/html/templates/ScratchPad.tpl new file mode 100755 index 000000000..44569601f --- /dev/null +++ b/livesupport/modules/htmlUI/var/html/templates/ScratchPad.tpl @@ -0,0 +1,72 @@ +{*Smarty template*} + +