diff options
Diffstat (limited to 'server/core/Compute.php')
| -rwxr-xr-x[-rw-r--r--] | server/core/Compute.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/core/Compute.php b/server/core/Compute.php index df43c7c..9b01d49 100644..100755 --- a/server/core/Compute.php +++ b/server/core/Compute.php @@ -453,6 +453,13 @@ class compute */ public function rebuild() { + $serverId = $this->app->getPostParam("serverId"); + $imageId = $this->app->getPostParam("imageId"); + $newName = $this->app->getPostParam("newName"); + $adminPass = $this->app->getPostParam("adminPass"); + if(!isset($serverId)|| !isset($imageId) || isset($newName) || isset($adminPass)) { + $this->app->setOutput("Error", "You'll have to provide server ID and the new image, name and admin password!"); + return; try{ $serverId = $this->app->getPostParam("serverId"); $imageId = $this->app->getPostParam("imageId"); |
