From: <mar...@us...> - 2012-09-06 00:19:16
|
Revision: 42846 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=42846&view=rev Author: marclaporte Date: 2012-09-06 00:19:10 +0000 (Thu, 06 Sep 2012) Log Message: ----------- Tiki Check now reports which version of Tiki you can install, based on your PHP version. Modified Paths: -------------- trunk/tiki-check.php Modified: trunk/tiki-check.php =================================================================== --- trunk/tiki-check.php 2012-09-05 23:06:51 UTC (rev 42845) +++ trunk/tiki-check.php 2012-09-06 00:19:10 UTC (rev 42846) @@ -103,17 +103,29 @@ $php_properties = array(); // PHP Version -if (version_compare(PHP_VERSION, '5.2.0', '<')) { +if (version_compare(PHP_VERSION, '5.1.0', '<')) { $php_properties['PHP version'] = array( 'fitness' => 'bad', 'setting' => phpversion(), - 'message' => 'PHP 5.2 is required!' + 'message' => 'You can not run any supported versions of Tiki with this very old version of PHP. Please see http://doc.tiki.org/Requirements for details.' ); +} elseif (version_compare(PHP_VERSION, '5.2.0', '<')) { + $php_properties['PHP version'] = array( + 'fitness' => tra('ugly'), + 'setting' => phpversion(), + 'message' => 'You have a quite old version of PHP. You can run Tiki 6.x LTS but not later versions.' + ); +} elseif (version_compare(PHP_VERSION, '5.3.0', '<')) { + $php_properties['PHP version'] = array( + 'fitness' => tra('ugly'), + 'setting' => phpversion(), + 'message' => 'You have a somewhat old version of PHP. You can run Tiki 6.x LTS or 9.x LTS but not later versions.' + ); } else { $php_properties['PHP version'] = array( 'fitness' => tra('good'), 'setting' => phpversion(), - 'message' => 'Your PHP version is recent enough.' + 'message' => 'You have a recent version of PHP and you can run any supported versions of Tiki.' ); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |