//download list of system requirements try { if (!file_exists($init_path)) { throw new Exception("File <b>wa-installer/lib/init.php</b> not found"); } require_once $init_path; if (!class_exists('waInstallerApps')) { throw new Exception('Class <b>waInstallerApps</b> not found'); } $requirements_path = dirname(__FILE__) . '/lib/config/requirements.php'; if (!file_exists($requirements_path)) { throw new Exception('Internal requirements file not found'); } $requirements = null; waInstallerApps::setLocale($lang); $passed = waInstallerApps::checkRequirements($requirements, true); $check_latest = isset($_POST['check_latest']) && $_POST['check_latest'] ? 1 : 0; $extra = <<<HTML <input type="hidden" value="{$check_latest}" name="check_latest"> HTML; $requirements_output = '<div class="i-log"><ul class="menu-v with-icons">'; if ($passed) { try { if ($check_latest) { //not supported since 2.0 $fw_items = array(); foreach ($fw_items as $item) { $requirements += $item['requirements']; } } else { //TODO attempt check local requirements