This fixes bug 984629, but gives a double footer
[mediawiki.git] / maintenance / cleandb.php
blobce93c6625e774bf75315208658c315871c56d09e
1 <?php
3 # Creating a new empty database; either this or the conversion
4 # script from the old format needs to be run, but not both.
6 $wgCommandLineMode = true;
7 require_once( "../LocalSettings.php" );
9 $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
10 ini_set( "include_path", "$IP$sep$include_path" );
12 require_once( "Setup.php" );
14 $wgTitle = Title::newFromText( "Database creation script" );
15 require_once( "./buildTables.inc" );
16 set_time_limit(0);
18 #$wgDBname = "wikidb";
19 #$wgDBuser = "wikiadmin";
20 #$wgDBpassword = "adminpass";
22 cleanDatabase();
23 initializeTables();
25 print "Done.\n";
26 exit();