add a few necessary checks
[lhc/web/wiklou.git] / maintenance / cleandb.php
1 <?
2
3 # Creating a new empty database; either this or the conversion
4 # script from the old format needs to be run, but not both.
5
6 global $IP;
7 include_once( "../LocalSettings.php" );
8 include_once( "$IP/Setup.php" );
9
10 $wgTitle = Title::newFromText( "Database creation script" );
11 include_once( "./buildTables.inc" );
12 set_time_limit(0);
13
14 #$wgDBname = "wikidb";
15 #$wgDBuser = "wikiadmin";
16 #$wgDBpassword = "adminpass";
17
18 cleanDatabase();
19 initializeTables();
20
21 print "Done.\n";
22 exit();
23
24 ?>