diff options
Diffstat (limited to 'server/core/Compute.php')
| -rwxr-xr-x[-rw-r--r--] | server/core/Compute.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/core/Compute.php b/server/core/Compute.php index 4d94705..9b01d49 100644..100755 --- a/server/core/Compute.php +++ b/server/core/Compute.php @@ -453,12 +453,19 @@ 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"); $newName = $this->app->getPostParam("newName"); $adminPass = $this->app->getPostParam("adminPass"); - if(!isset($serverId)|| !isset($imageId) || isset($newName) || isset($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; } |
