Esempio n. 1
0
 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');
 }
Esempio n. 2
0
 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?';
     }
 }
Esempio n. 3
0
 function exec()
 {
     $shell = new base_shell_webproxy();
     $shell->exec_command($_GET['cmd']);
 }