Obsolete, use commandLine.inc
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 7 Apr 2006 04:25:36 +0000 (04:25 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 7 Apr 2006 04:25:36 +0000 (04:25 +0000)
maintenance/liveCmdLine.inc [deleted file]

diff --git a/maintenance/liveCmdLine.inc b/maintenance/liveCmdLine.inc
deleted file mode 100644 (file)
index f50dce6..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-<?php
-/**
- * This is a drop-in replacement for commandLine.inc, for use only on
- * the Wikimedia wikis.
- * Call your command-line script with the language name and site name,
- * e.g. php convertLinks.php aa wikipedia
- *
- * @todo document
- * @package MediaWiki
- * @subpackage Maintenance
- */
-
-/** */
-if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
-       print "This script must be run from the command line\n";
-       exit();
-}
-
-$wgCommandLineMode = true;
-$self = array_shift( $argv );
-# Turn off output buffering if it's on
-@ob_end_flush();
-
-if ( isset( $argv[0] ) ) {
-       $lang = array_shift( $argv );
-} else {
-       $lang = "aa";
-}
-if ( isset( $argv[0] ) ) {
-       $site = array_shift( $argv );
-} else {
-       $site = "wikipedia";
-}
-
-# This is for the IRC scripts, which now run as the apache user
-if ( $_ENV['USER'] != "apache" ) {
-       $wgDBadminuser = "wikiadmin";
-       $wgDBadminpassword = trim(`wikiadmin_pass`);
-}
-
-$sep = PATH_SEPARATOR;
-putenv( "wikilang=$lang");
-$newpath = "/home/wikipedia/common/php-new$sep";
-
-$DP = "../includes";
-#ini_set( "include_path", "$newpath$sep$include_path" );
-ini_set( "include_path", "/home/wikipedia/common/php-new:/home/wikipedia/common/php-new/includes" );
-
-require_once( "/home/wikipedia/common/php-new/CommonSettings.php" );
-
-define("MEDIAWIKI",true);
-require_once( "Setup.php" );
-require_once( "../install-utils.inc" );
-$wgTitle = Title::newFromText( "Command line script" );
-$wgCommandLineMode = true;
-set_time_limit(0);
-?>