require_once "{$plugin_start_appliance_hook}"; $appliance_function = "openqrm_" . "{$plugin_name}" . "_appliance"; $appliance_function = str_replace("-", "_", $appliance_function); // stop $appliance_function("stop", $appliance_fields); // remove $appliance_function("remove", $appliance_fields); } } // remove appliance $appliance->remove($appliance_id); } } // remove kernel $kernel = new kernel(); $kernel->remove_by_name("resource{$local_server_id}"); // remove image $image = new image(); $image->remove_by_name("resource{$local_server_id}"); // remove storage serveer $storage = new storage(); $storage->remove_by_name("resource{$local_server_id}"); break; default: $event->log("{$local_server_command}", $_SERVER['REQUEST_TIME'], 3, "local-server-action", "No such local-server command ({$local_server_command})", "", "", 0, 0, 0); break; } ?> </body>