Added note to reinstall button

feature/node-rewrite
Sven Slootweg 12 years ago
parent cbbb7b2a88
commit 45efd52ad3

@ -84,3 +84,4 @@ list-status-stopped; Stopped
list-status-suspended; Suspended
reinstall-warning; I understand that by reinstalling my VPS, <strong>all data on the VPS is permanently lost</strong> and cannot be recovered. There will be no further confirmations, <strong>after clicking the Reinstall button the reinstallation process cannot be aborted.</strong>
reinstall-patience; (be patient; this may take a while)

@ -34,6 +34,7 @@ if(isset($_POST['submit']))
$sContainer->uTemplateId = $sTemplate->sId;
$sContainer->InsertIntoDatabase();
$sContainer->Reinstall();
$sContainer->Start();
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_SUCCESS, "Reinstallation succeeded!", "Your VPS was successfully reinstalled.");
$sPageContents .= $err->Render();
@ -43,6 +44,11 @@ if(isset($_POST['submit']))
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_ERROR, "Reinstallation failed", "Something went wrong during the reinstallation of your VPS. Please try again. If the reinstallation fails again, please contact support.");
$sPageContents .= $err->Render();
}
catch (ContainerStartException $e)
{
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_WARNING, "Failed to start", "The VPS was successfully reinstalled, but it could not be started. If the issue persists, please contact support.");
$sPageContents .= $err->Render();
}
}
else
{

@ -18,5 +18,6 @@
<div class="centered">
<button type="submit" name="submit" value="submit" class="padded spaced"><%!button-reinstall></button>
&nbsp;<%!reinstall-patience>
</div>
</form>

Loading…
Cancel
Save