$titleObj = Title::newFromText( $key );
$title = $titleObj->getDBkey();
$dbencMsg = wfStrencode( $message );
-
+
if ( $overwrite ) {
$sql = "DELETE FROM cur WHERE cur_namespace=$ns AND cur_title='$title'";
wfQuery( $sql, DB_WRITE, $fname );
$sql = "INSERT INTO cur (cur_namespace, cur_title, cur_text,
cur_user_text, cur_timestamp, cur_restrictions,
- cur_is_new, inverse_timestamp) VALUES (
+ cur_is_new, inverse_timestamp, cur_touched) VALUES (
$ns,
'$title',
'$dbencMsg',
'$timestamp',
'sysop',
1,
- '$invTimestamp')";
+ '$invTimestamp',
+ '$timestamp')";
wfQuery( $sql, DB_WRITE, $fname );
$mwObj =& MagicWord::get( MAG_MSGNW );
$mw = $mwObj->getSynonym( 0 );
}
$navText .= "</table>";
$navText = wfStrencode( $navText );
+
$title = wfMsgNoDB( "allmessages" );
if ( $overwrite ) {
$sql = "DELETE FROM cur WHERE cur_namespace=$ns AND cur_title='$title'";
wfQuery( $sql, DB_WRITE, $fname );
}
-
+ #print $navText;
+ #$navText = substr($navText, 0, 1000);
+ $navText = str_repeat( "*", 1000 );
$sql = "INSERT INTO cur (cur_namespace, cur_title, cur_text,
cur_user_text, cur_timestamp, cur_restrictions,
- cur_is_new, inverse_timestamp) VALUES (
+ cur_is_new, inverse_timestamp, cur_touched) VALUES (
$ns,
'$title',
'$navText',
'$timestamp',
'sysop',
1,
- '$invTimestamp')";
+ '$invTimestamp',
+ '$timestamp')";
wfQuery( $sql, DB_WRITE, $fname );
print "done \n";
}
<?
+$wgCommandLineMode = true;
if ( ! is_readable( "../LocalSettings.php" ) ) {
print "A copy of your installation's LocalSettings.php\n" .
include_once( "{$IP}/Setup.php" );
include_once( "./InitialiseMessages.inc" );
$wgTitle = Title::newFromText( "Rebuild messages script" );
+$wgCommandLineMode = true;
set_time_limit(0);
initialiseMessages( true );