3 # Rebuild link tracking tables from scratch. This takes several
4 # hours, depending on the database size and server configuration.
6 if ( ! is_readable( "../LocalSettings.php" ) ) {
7 print "A copy of your installation's LocalSettings.php\n" .
8 "must exist in the source directory.\n";
12 $wgCommandLineMode = true;
14 include_once( "../LocalSettings.php" );
15 include_once( "../AdminSettings.php" );
17 $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ?
";" : ":";
18 ini_set( "include_path", "$IP$sep$include_path" );
20 include_once( "Setup.php" );
21 include_once( "./rebuildlinks.inc" );
22 $wgTitle = Title
::newFromText( "Rebuild links script" );
25 $wgDBuser = $wgDBadminuser;
26 $wgDBpassword = $wgDBadminpassword;