Don't print out username and password, that's just rude.
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 11 Aug 2004 09:45:17 +0000 (09:45 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 11 Aug 2004 09:45:17 +0000 (09:45 +0000)
Instead print an explanation of the file's purpose.

maintenance/trivialCmdLine.php

index 321e86e..82f23dd 100644 (file)
@@ -1,8 +1,11 @@
 <?php
+
 require_once( "commandLine.inc" );
-print "DB name: $wgDBname\n";
-print "DB user: $wgDBuser\n";
-print "DB password: $wgDBpassword\n";
+# print "DB name: $wgDBname\n";
+# print "DB user: $wgDBuser\n";
+# print "DB password: $wgDBpassword\n";
+
+print "This is an example command-line maintenance script.\n";
 
 $dbr =& wfGetDB( DB_SLAVE );
 $cur = $dbr->tableName( 'cur' );