This script assumes that Zabbix is installed in /usr/local/share/zabbix, if it is elsewhere you will have to modify the first few lines.
This works for Zabbix 1.8.3, but not yet for 1.8.5.
You will need to install the file: js.header.php in the zabbix directory.
js-to-php-convert.sh (795 bytes, 447 hits)
js.header.php (577 bytes, 567 hits)