#!/usr/bin/env php getTitle($obj); $obj['msg'] = $type->getBody($obj); unset($obj['template']); unset($obj['alert']); print_r($obj); } else { c_echo(" Usage: -t Is the template ID. -h Is the device ID or hostname -r Is the rule ID -p Is the transport name (optional) -s Is the alert state <0|1|2|3|4> (optional - defaults to current state.) 0 = ok, 1 = alert, 2 = acknowledged, 3 = got worse, 4 = got better -d Debug Example: ./scripts/test-template.php -t 10 -d -h localhost -r 2 -p mail "); exit(1); }