diff -r 7f196509bf78 -r 3700f7124c2b install/index.php --- a/install/index.php Mon Jun 09 20:52:34 2008 -0400 +++ b/install/index.php Tue Jun 10 00:21:34 2008 -0400 @@ -36,6 +36,9 @@ require('includes/common.php'); } +// are we in PHP5? +define('HAVE_PHP5', version_compare(PHP_VERSION, '5.0.0', '>=')); + ?>
@@ -112,7 +115,18 @@ } else { - echo '
  • Upgrade
  • '; + if ( HAVE_PHP5 && !isset($_GET['debug_warn_php4']) ) + echo '
  • Upgrade
  • '; + else + echo '
  • + + Upgrade + + Your server doesn\'t have PHP 5 or later installed. Enano 1.2 does not have support for PHP 4. + Learn more » + + +
  • '; } endif; ?>