3 * simple entry point to initiate a background download
7 * -sid {$session_id} -usk {$upload_session_key}
10 global $optionsWithArgs;
11 $optionsWithArgs = Array('sid', 'usk');
13 //act like a "normal user"
14 $wgUseNormalUser = true;
16 require_once( 'commandLine.inc' );
18 if(!isset($options['sid']) ||
!isset($options['usk'])){
20 simple entry point to initiate a background download
22 Usage: http_session_download.php [options]
24 --sid the session id (required)
25 --usk the upload session key (also required)
30 wfProfileIn('http_session_download.php');
33 Http
::doSessionIdDownload( $options['sid'], $options['usk'] );
36 // Execute any deferred updates
39 // Log what the user did, for book-keeping purposes.
42 // Shut down the database before exit
43 wfGetLBFactory()->shutdown();
45 wfProfileOut('http_session_download.php');