3 # Compress the old table, old_flags=gzip
5 require_once( "commandLine.inc" );
6 require_once( "compressOld.inc" );
8 if( !function_exists( "gzdeflate" ) ) {
9 print "You must enable zlib support in PHP to compress old revisions!\n";
10 print "Please see http://www.php.net/manual/en/ref.zlib.php\n\n";
14 print "Depending on the size of your database this may take a while!\n";
15 print "If you abort the script while it's running it shouldn't harm anything,\n";
16 print "but if you haven't backed up your data, you SHOULD abort now!\n\n";
17 print "Press control-c to abort first (will proceed automatically in 5 seconds)\n";
21 if( !empty( $argv[1] ) ) {
22 $n = intval( $argv[1] );
24 compressOldPages( $n );