|
|
@ -16,6 +16,7 @@ if($_GET['action'] == "start")
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$sContainer->Start();
|
|
|
|
$sContainer->Start();
|
|
|
|
|
|
|
|
$sContainer->sStatus = CVM_STATUS_STARTED;
|
|
|
|
|
|
|
|
|
|
|
|
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_SUCCESS, "Container started", "Your container was successfully started.");
|
|
|
|
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_SUCCESS, "Container started", "Your container was successfully started.");
|
|
|
|
$sError .= $err->Render();
|
|
|
|
$sError .= $err->Render();
|
|
|
@ -39,6 +40,7 @@ elseif($_GET['action'] == "stop")
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$sContainer->Stop();
|
|
|
|
$sContainer->Stop();
|
|
|
|
|
|
|
|
$sContainer->sStatus = CVM_STATUS_STOPPED;
|
|
|
|
|
|
|
|
|
|
|
|
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_SUCCESS, "Container stopped", "Your container was successfully stopped.");
|
|
|
|
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_SUCCESS, "Container stopped", "Your container was successfully stopped.");
|
|
|
|
$sError .= $err->Render();
|
|
|
|
$sError .= $err->Render();
|
|
|
@ -69,6 +71,7 @@ elseif($_GET['action'] == "restart")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$sContainer->Start();
|
|
|
|
$sContainer->Start();
|
|
|
|
|
|
|
|
$sContainer->sStatus = CVM_STATUS_STARTED;
|
|
|
|
|
|
|
|
|
|
|
|
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_SUCCESS, "Container restarted", "Your container was successfully restarted.");
|
|
|
|
$err = new CPHPErrorHandler(CPHP_ERRORHANDLER_TYPE_SUCCESS, "Container restarted", "Your container was successfully restarted.");
|
|
|
|
$sError .= $err->Render();
|
|
|
|
$sError .= $err->Render();
|
|
|
|