switch to wfMsgForContent()
[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 * @package MediaWiki
7 * @subpackage Maintenance
8 */
9
10 /** */
11 $wgCommandLineMode = true;
12 require_once( "../LocalSettings.php" );
13
14 $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
15 ini_set( "include_path", "$IP$sep$include_path" );
16
17 require_once( "Setup.php" );
18
19 $wgTitle = Title::newFromText( "Database creation script" );
20 require_once( "./buildTables.inc" );
21 set_time_limit(0);
22
23 #$wgDBname = "wikidb";
24 #$wgDBuser = "wikiadmin";
25 #$wgDBpassword = "adminpass";
26
27 cleanDatabase();
28 initializeTables();
29
30 print "Done.\n";
31 exit();
32
33 ?>