00001 <?php
00016 $options = array( 'step', 'noimages' );
00017
00018 require_once( 'commandLine.inc' );
00019 require_once( 'FiveUpgrade.inc' );
00020
00021 echo "ATTENTION: This script is for upgrades from 1.4 to 1.5 (NOT 1.15) in very special cases.\n";
00022 echo "Use update.php for usual updates.\n";
00023
00024
00025 if ( !array_search( '--upgrade', $_SERVER['argv'] ) ) {
00026 echo "Please run this script with --upgrade key to actually run the updater.\n";
00027 die;
00028 }
00029
00030 $upgrade = new FiveUpgrade();
00031 $step = isset( $options['step'] ) ? $options['step'] : null;
00032 $upgrade->upgrade( $step );
00033
00034