'._TITLE.''); // PHP-Version send('

1. PHP-Version

'); $phpVersion = 'PHP-Version : '.PHP_VERSION.' '; if (PHP_VERSION < 4.3) { $phpVersion .= 'Failed'; $errors++; array_push($errorsMessages, "PHP-Version : 4.3 or higher required."); } else { $phpVersion .= 'Passed'; } send($phpVersion); // PHP-Extensions send('

2. PHP-Extensions

'); send(""); // PHP-Configuration send('

3. PHP-Configuration

'); send(""); // PHP-Database-Support send('

4. PHP-Database-Support

'); send(""); // db-state if ($dbsupported == 0) { $errors++; array_push($errorsMessages, "PHP-Database-Support : no supported database-type found."); } // OS-Specific // get os $osString = php_uname('s'); if (isset($osString)) { if (!(stristr($osString, 'linux') === false)) /* linux */ define('_OS', 1); else if (!(stristr($osString, 'bsd') === false)) /* bsd */ define('_OS', 2); else define('_OS', 0); } else { define('_OS', 0); } send('

5. OS-Specific ('.$osString.' '.php_uname('r').')

'); switch (_OS) { case 1: // linux send('No Special Requirements on Linux-OS. Passed'); break; case 2: // bsd send(""); break; case 0: // unknown default: send("OS not supported.
"); $errors++; array_push($errorsMessages, "OS-Specific : ".$osString." not supported."); break; } // summary send('

Summary

'); // state $state = "State : "; if (($warnings + $errors) == 0) { // good $state .= 'Ok'; $state .= "
"; send($state); send(_NAME." should run on this system."); } else { if (($errors == 0) && ($warnings > 0)) { // may run with flaws $state .= 'Warning'; $state .= "
"; send($state); send(_NAME." may run on this system, but there may be problems."); } else { // not ok $state .= 'Failed'; $state .= "
"; send($state); send(_NAME." cannot run on this system."); } } // errors if (count($errorsMessages) > 0) { send('

Errors :
'); send("

"); } // warnings if (count($warningsMessages) > 0) { send('

Warnings :
'); send("

"); } // foot sendFoot(); // ob-end + exit @ob_end_flush(); exit(); // ----------------------------------------------------------------------------- // functions // ----------------------------------------------------------------------------- /** * send head-portion */ function sendHead() { send(''); send(''); send(''._TITLE.''); send(''); send(''); send(''); } /** * send foot-portion */ function sendFoot() { send(''); send(''); } /** * send - sends a string to the client */ function send($string = "") { echo $string; echo str_pad('', 4096)."\n"; @ob_flush(); @flush(); } ?>