#!/usr/bin/env php * @category Horde * @license http://www.horde.org/licenses/lgpl LGPL-2 * @package Horde */ $baseFile = __DIR__ . '/../lib/Application.php'; if (file_exists($baseFile)) { require_once $baseFile; } else { require_once 'PEAR/Config.php'; require_once PEAR_Config::singleton() ->get('horde_dir', null, 'pear.horde.org') . '/lib/Application.php'; } Horde_Registry::appInit('horde', array('cli' => true, 'user_admin' => true)); $alarm = $injector->getInstance('Horde_Alarm'); $alarm->notify(null, true, false, array('notify', 'desktop')); foreach ($alarm->getErrors() as $id => $error) { if (!is_int($id)) { list($id) = explode("\0", $id); $cli->message(sprintf(_("Error with alarm \"%s\""), $id), 'cli.error'); } $cli->message($error, 'cli.error'); }