diff -r 2398420f48e7 -r 979d99a0b00e install/upgrade.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/install/upgrade.php Fri Jan 18 10:47:24 2008 -0500 @@ -0,0 +1,75 @@ +__construct('Enano upgrader', false); +} +$ui->add_stage('Welcome', true); +$ui->add_stage('Select version', true); +$ui->add_stage('Perform upgrade', true); +$ui->add_stage('Finish', true); +$stg_php4 = $ui->add_stage('PHP4 compatibility notice', false); + +if ( version_compare(PHP_VERSION, '5.0.0', '<') || isset($_GET['debug_warn_php4']) ) +{ + $ui->set_visible_stage($stg_php4); + $ui->step = ''; + + $ui->show_header(); + + // This isn't localized because all localization code is dependent on + // PHP 5 (loading lang.php will throw a parser error under PHP4). This + // one message probably doesn't need to be localized anyway. + + ?> +
+ PHP 5 is the latest version of the language on which Enano was built. Its many new features have been available since early 2004, yet + many web hosts have not migrated to it because of the work involved. In 2007, Zend Corporation announced that support for the aging + PHP 4.x would be discontinued at the end of the year. An initiative called GoPHP5 was started to + encourage web hosts to migrate to PHP 5. +
++ Because of the industry's decision to not support PHP 4 any longer, the Enano team decided that it was time to begin using the powerful + features of PHP 5 at the expense of PHP 4 compatibility. Therefore, this version of Enano cannot be installed on your server until it + is upgraded to at least PHP 5.0.0, and preferably the latest available version. + +
++ If you need to use Enano but can't upgrade your PHP because you're on a shared or reseller hosting service, you can use the + 1.0.x series of Enano on your site. While the Enano team attempts to make this + older series work on PHP 4, official support is not provided for installations of Enano on PHP 4. +
+ show_footer(); + exit(0); +} + +$ui->show_header(); +$ui->show_footer(); +