From 222b01f5169f1c7e69762e0e8904c24f78f71882 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 28 Jul 2010 11:52:48 +0200 Subject: update to MediaWiki 1.16.0 --- maintenance/httpSessionDownload.php | 57 +++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 maintenance/httpSessionDownload.php (limited to 'maintenance/httpSessionDownload.php') diff --git a/maintenance/httpSessionDownload.php b/maintenance/httpSessionDownload.php new file mode 100644 index 00000000..cab6e872 --- /dev/null +++ b/maintenance/httpSessionDownload.php @@ -0,0 +1,57 @@ +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 ); -- cgit v1.2.3-54-g00ecf