public function install_demodata() { kernel::set_online(true); //todo: config check $shell = new base_shell_webproxy(); $shell->input = $_POST['options']; $shell->exec_command('install_demodata -r demodata'); }
public function install_app() { kernel::set_online(true); $app = $_GET['app']; if (file_exists(ROOT_DIR . '/config/config.php')) { $shell = new base_shell_webproxy(); $shell->input = $_POST['options']; $shell->exec_command('install -r ' . $app); } else { echo 'config file?'; } }
function exec() { $shell = new base_shell_webproxy(); $shell->exec_command($_GET['cmd']); }