--- a/install.php Sun Mar 16 21:08:37 2008 -0400
+++ b/install.php Sun Apr 13 17:02:42 2008 -0400
@@ -1184,7 +1184,9 @@
<p>Enano has several requirements that must be met before it can be installed. If all is good then note any warnings and click Continue below.</p>
<table border="0" cellspacing="0" cellpadding="0">
<?php
+ $allow_warn_php4 = ( isset($_GET['i_know_its_php4']) );
run_test('return version_compare(\'4.3.0\', PHP_VERSION, \'<\');', 'PHP Version >=4.3.0', 'It seems that the version of PHP that your server is running is too old to support Enano properly. If this is your server, please upgrade to the most recent version of PHP, remembering to use the --with-mysql configure option if you compile it yourself. If this is not your server, please contact your webhost and ask them if it would be possible to upgrade PHP. If this is not possible, you will need to switch to a different webhost in order to use Enano.');
+ run_test('return version_compare(\'5.0.0\', PHP_VERSION, \'<\');', 'PHP 5.x', 'You are running a version of PHP that is not officially supported by the Enano Project. This means that you cannot obtain support on the Enano support forums. All servers running PHP 4.x will display this warning. You may continue installing Enano, but after doing so you should contact your webhost and see if they offer an option to switch to PHP 5. Some large commercial web hosts use PHP4 by default and offer PHP5 as a free option. The Enano Team will not provide any support unless you are able to upgrade to PHP 5.<br /><br /><a href="install.php?mode=sysreqs&i_know_its_php4=yes">Click here</a> to acknowledge this warning.', $allow_warn_php4);
run_test('return version_compare(\'5.2.0\', PHP_VERSION, \'<\');', 'PHP 5.2.0 or later', 'Your server does not have support for PHP 5.2.0. While you may continue installing Enano, please be warned that as of December 31, 2007, all support for Enano on PHP 4 servers is discontinued. If you have at least PHP 5.0.0, support will still be available, but there are many security problems in PHP versions under 5.2.0 that Enano cannot effectively prevent.', true);
run_test('return function_exists(\'mysql_connect\');', 'MySQL extension for PHP', 'It seems that your PHP installation does not have the MySQL extension enabled. The MySQL database driver will be unavailable. In many cases this is OK if you have another supported database type available. If this is your own server, you may need to just enable the "libmysql.so" extension in php.ini. If you do not have the MySQL extension installed, you will need to either use your distribution\'s package manager to install it, or you will have to compile PHP from source. If you compile PHP from source, please remember to use the "--with-mysql" configure option, and you will have to have the MySQL development files installed (they usually are). If this is not your server, please contact your hosting company and ask them to install the PHP MySQL extension.', true);
run_test('return function_exists(\'pg_connect\');', 'PostgreSQL extension for PHP', 'It seems that your PHP installation does not have the PostgreSQL extension enabled. Because of this, you won\'t be able to use the PostgreSQL database driver. This is OK in the majority of cases. If you want to use PostgreSQL support, you\'ll need to either compile the PHP extension for Postgres or install the extension with your distribution\'s package manager. Windows administrators will need enable php_pgsql.dll in their php.ini.', true);