function DatabaseTest() { global $DB; try { $DB = new Database_MySQL(Request::Get('db_username'), Request::Get('db_password'), Request::Get('db_database'), Request::Get('db_hostname')); $version = $DB->Version(); if (!($version['major'] > 4 || $version['major'] == 4 && $version['minor'] > 0)) { throw new BaseException('This software requires MySQL Server version 4.1.0 or newer', 'Your MySQL Server is version ' . $version['full']); } } catch (Exception $e) { include_once 'install-main.php'; return false; } return true; }