From dcb26893a7b058b05fc02846ca079300819f8ce0 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 14 May 2010 13:16:53 -0600 Subject: [PATCH] Remove all sorts of H3-related cruft. --- whups/scripts/bugzilla-import.php | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) 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) { -- 2.11.0