From: Michael M Slusarz Date: Fri, 14 May 2010 19:16:53 +0000 (-0600) Subject: Remove all sorts of H3-related cruft. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=dcb26893a7b058b05fc02846ca079300819f8ce0;p=horde.git Remove all sorts of H3-related cruft. --- diff --git a/whups/scripts/bugzilla-import.php b/whups/scripts/bugzilla-import.php index 1b31377dd..3d345fc15 100755 --- a/whups/scripts/bugzilla-import.php +++ b/whups/scripts/bugzilla-import.php @@ -16,37 +16,10 @@ $BUGZILLA_DSN = 'mysql://root:password@localhost/bugzilla'; $BUGZILLA_STATES = array('NEW', 'ASSIGNED', 'RESOLVED', 'REOPENED', 'CLOSED'); $BUGZILLA_BUG_TYPE = array('Bug', 'Imported Bugzilla Bug'); $BUGZILLA_PRIORITIES = array('P1', 'P2', 'P3', 'P4', 'P5'); +/* END CONFIGURATION */ - -@define('HORDE_BASE', dirname(__FILE__) . '/../..'); -@define('WHUPS_BASE', dirname(__FILE__) . '/..'); - -/* Do CLI checks and environment setup first. */ -require_once HORDE_BASE . '/lib/core.php'; - -/* Make sure no one runs this from the web. */ -if (!Horde_Cli::runningFromCLI()) { - exit("Must be run from the command line\n"); -} - -/* Load the command line environment. */ -$cli = Horde_Cli::init(); - -/* Load the Whups libraries. */ -require_once HORDE_BASE . '/lib/core.php'; - -$registry = new Horde_Registry(); -$registry->pushApp('whups', false); -$conf = &$GLOBALS['conf']; - -require_once WHUPS_BASE . '/lib/Whups.php'; -require_once WHUPS_BASE . '/lib/Driver.php'; - -$GLOBALS['whups_driver'] = Whups_Driver::factory(); -$GLOBALS['whups_driver']->initialise(); - -/* Load the PEAR DB library. We'll use it to read the Bugzilla database. */ -require_once 'DB.php'; +require_once dirname(__FILE__) . '/../lib/Application.php'; +Horde_Registry::appInit('whups', array('authentication' => 'none', 'cli' => true)); function sectionHeader($text) {