15e61958a84185ac3287c8417e4d0c420657ecb3
[lhc/web/wiklou.git] / maintenance / cleandb.php
1 <?php
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 $wgCommandLineMode = true;
7 include_once( "../LocalSettings.php" );
8
9 $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
10 ini_set( "include_path", "$IP$sep$include_path" );
11
12 include_once( "Setup.php" );
13
14 $wgTitle = Title::newFromText( "Database creation script" );
15 include_once( "./buildTables.inc" );
16 set_time_limit(0);
17
18 #$wgDBname = "wikidb";
19 #$wgDBuser = "wikiadmin";
20 #$wgDBpassword = "adminpass";
21
22 cleanDatabase();
23 initializeTables();
24
25 print "Done.\n";
26 exit();
27
28 ?>