Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

cleandb.php

Go to the documentation of this file.
00001 <?php 00002 00003 # Creating a new empty database; either this or the conversion 00004 # script from the old format needs to be run, but not both. 00005 00006 $wgCommandLineMode = true; 00007 require_once( "../LocalSettings.php" ); 00008 00009 $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":"; 00010 ini_set( "include_path", "$IP$sep$include_path" ); 00011 00012 require_once( "Setup.php" ); 00013 00014 $wgTitle = Title::newFromText( "Database creation script" ); 00015 require_once( "./buildTables.inc" ); 00016 set_time_limit(0); 00017 00018 #$wgDBname = "wikidb"; 00019 #$wgDBuser = "wikiadmin"; 00020 #$wgDBpassword = "adminpass"; 00021 00022 cleanDatabase(); 00023 initializeTables(); 00024 00025 print "Done.\n"; 00026 exit(); 00027 00028 ?>

Generated on Tue Jun 29 23:40:03 2004 for Mediawiki by doxygen 1.3.7