diff options
author | Tim Starling <tstarling@users.mediawiki.org> | 2004-06-13 04:36:53 +0000 |
---|---|---|
committer | Tim Starling <tstarling@users.mediawiki.org> | 2004-06-13 04:36:53 +0000 |
commit | f48ddd1366ff9a41c7be7e01655e5181f37339a2 (patch) | |
tree | 755a3f52d8b30da840451c8b2dd0553eee0ff2d7 /maintenance/mcc.php | |
parent | aad6ec6c244884e743b04dc9d24e8104f4256ee0 (diff) | |
download | mediawikicore-f48ddd1366ff9a41c7be7e01655e5181f37339a2.tar.gz mediawikicore-f48ddd1366ff9a41c7be7e01655e5181f37339a2.zip |
using new commandLine.inc style, readconsole() moved to install-utils()
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/4059
Diffstat (limited to 'maintenance/mcc.php')
-rwxr-xr-x | maintenance/mcc.php | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/maintenance/mcc.php b/maintenance/mcc.php index f0b68264e8b9..6ebbfc1b35f7 100755 --- a/maintenance/mcc.php +++ b/maintenance/mcc.php @@ -1,10 +1,6 @@ <?php -/*require_once( "../includes/DefaultSettings.php" ); -require_once( "../LocalSettings.php" ); -require_once( "../includes/MemCachedClient.inc.php" );*/ - -require_once( "liveCmdLine.inc" ); +require_once( "commandLine.inc" ); $mcc = new memcached( array('persistant' => true) ); $mcc->set_servers( $wgMemCachedServers ); @@ -68,19 +64,5 @@ do { } } while ( !$quit ); -function readconsole( $prompt = "" ) { - if ( function_exists( "readline" ) ) { - return readline( $prompt ); - } else { - print $prompt; - $fp = fopen( "php://stdin", "r" ); - $resp = trim( fgets( $fp, 1024 ) ); - fclose( $fp ); - return $resp; - } -} - - - ?> |