From: Ben Klang Date: Wed, 26 May 2010 18:45:56 +0000 (-0400) Subject: Hermes: update purge script X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=95fd1b79555f5452befe7c75719a99d36b45d831;p=horde.git Hermes: update purge script --- diff --git a/hermes/scripts/purge.php b/hermes/scripts/purge.php index b9011db2b..81680ba0e 100755 --- a/hermes/scripts/purge.php +++ b/hermes/scripts/purge.php @@ -1,9 +1,7 @@ #!/usr/bin/php */ -@define('HERMES_BASE', dirname(__FILE__) . '/..'); -@define('HORDE_BASE', dirname(__FILE__) . '/../..'); -require_once HORDE_BASE . '/lib/core.php'; - -// Registry -$registry = Horde_Registry::singleton(); -$registry->pushApp('hermes', false); - -// Hermes base libraries. -require_once HERMES_BASE . '/lib/Hermes.php'; -$hermes = &Hermes::getDriver(); +require_once dirname(__FILE__) . '/lib/Application.php'; +$hermes = Horde_Registry::appInit('hermes'); printf(_("Deleting data that was exported/billed more than %s days ago.\n"), $conf['time']['days_to_keep']); -$hermes->purge(); +$hermes->driver->purge();