14 lines
358 B
PHP
14 lines
358 B
PHP
<?php
|
|
#
|
|
# Print SQL to insert namespace names into database.
|
|
# This source code is in the public domain.
|
|
|
|
require_once( "commandLine.inc" );
|
|
|
|
for ($i = -2; $i < 16; ++$i) {
|
|
$nsname = wfStrencode( $wgLang->getNsText( $i ) );
|
|
$dbname = wfStrencode( $wgDBname );
|
|
print "INSERT INTO ns_name(ns_db, ns_num, ns_name) VALUES('$dbname', $i, '$nsname');\n";
|
|
}
|
|
|
|
?>
|