mDescription = "Simple entry point to initiate a background download"; $this->addOption( 'sid', 'Session ID', true, true ); $this->addOption( 'usk', 'Upload session key', true, true ); } public function execute() { wfProfileIn(__METHOD__); //run the download: Http::doSessionIdDownload( $this->getOption('sid'), $this->getOption('usk') ); // close up shop: // Execute any deferred updates wfDoUpdates(); // Log what the user did, for book-keeping purposes. wfLogProfilingData(); // Shut down the database before exit wfGetLBFactory()->shutdown(); wfProfileOut(__METHOD__); } } $maintClass = "HttpSessionDownload"; require_once( DO_MAINTENANCE );