Newer
Older
Import / web / www.xiaofrog.com / wiki / maintenance / storage / dumpRev.php
@John Ryland John Ryland on 22 Dec 2020 364 bytes import NUC files
<?php

require_once( dirname(__FILE__) . '/../commandLine.inc' );

$dbr = wfGetDB( DB_SLAVE );
$row = $dbr->selectRow( 'text', array( 'old_flags', 'old_text' ), array( 'old_id' => $args[0] ) );
$obj = unserialize( $row->old_text );

if ( get_class( $obj ) == 'concatenatedgziphistoryblob' ) {
	print_r( array_keys( $obj->mItems ) );
} else {
	var_dump( $obj );
}