check itemresult\n"; echo 'PDO extension'; if (class_exists ('PDO')) echo 'Ok'; else { echo 'not found'; $nerrs++; } echo ''; echo 'PDO-MySQL'; if (defined ('PDO::MYSQL_ATTR_READ_DEFAULT_FILE')) echo 'Ok'; else { echo 'not found'; $nerrs++; } echo ''; echo 'hash functions'; if (function_exists ('hash_algos')) echo 'Ok'; else { echo 'not found'; $nerrs++; } echo ''; echo 'SNMP extension'; if (defined ('SNMP_NULL')) echo 'Ok'; else echo 'Not found. Live SNMP tab will not function properly until the extension is installed.'; echo ''; echo 'GD functions'; if (defined ('GD_VERSION')) echo 'Ok'; else { echo 'not found'; $nerrs++; } echo ''; echo "\n"; return !$nerrs; break; // Step 2. Check that we can write to configuration file. case 2: return 1; break; // Step 3. Ask for DB connection paramaters and test // the connection. Neither save the parameters nor allow // going further until we succeed with the given // credentials. case 3: return 1; break; default: die ("Unexpected argument '${stepno}'"); } } //********************************** START ************** if (isset ($_REQUEST['step'])) $next_step = $_REQUEST['step']; elseif (!already_installed()) $next_step = 1; else die ('Already installed.'); $result = test_install_step ($next_step); switch ($result) { case -1: // fail break; case 0: // retry break; case 1: // advance } ?>