} else { $args[substr($argv[$i], 1)] = ''; } } } } } if (isset($args['h'])) { setup_php_print('usage: ' . basename(__FILE__) . ' [-install target_package]', null); exit; } if (is_file($jump_path = $pwd . '/rhaco2.php')) { @(require_once $jump_path); } if (!class_exists('Object')) { $jump_path = $pwd . '/rhaco2.php'; file_put_contents($jump_path, file_get_contents(constant('_CORE_URL_'))); setup_php_print('core installed. `' . $jump_path . '`', '1;34'); include_once $jump_path; } } catch (Exception $e) { setup_php_print($e->getMessage()); } setup_php_print('use `' . $jump_path . '`', '35'); } if (class_exists('Object')) { Setup::start(); } else { setup_php_print('core not found'); } exit;