|
|
@ -21,6 +21,15 @@ if($result = mysql_query_cached("SELECT * FROM containers"))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$sVps = new Container($row);
|
|
|
|
$sVps = new Container($row);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$sStatus = $sVps->sStatusText;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (SshException $e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$sStatus = "stopped";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$sVpsList[] = array(
|
|
|
|
$sVpsList[] = array(
|
|
|
|
'id' => $sVps->sId,
|
|
|
|
'id' => $sVps->sId,
|
|
|
|
'hostname' => $sVps->sHostname,
|
|
|
|
'hostname' => $sVps->sHostname,
|
|
|
@ -31,7 +40,7 @@ if($result = mysql_query_cached("SELECT * FROM containers"))
|
|
|
|
'diskspace-unit' => "GB",
|
|
|
|
'diskspace-unit' => "GB",
|
|
|
|
'guaranteed-ram' => $sVps->sGuaranteedRam,
|
|
|
|
'guaranteed-ram' => $sVps->sGuaranteedRam,
|
|
|
|
'guaranteed-ram-unit' => "MB",
|
|
|
|
'guaranteed-ram-unit' => "MB",
|
|
|
|
'status' => $sVps->sStatusText,
|
|
|
|
'status' => $sStatus,
|
|
|
|
'virtualization-type' => $sVps->sVirtualizationType
|
|
|
|
'virtualization-type' => $sVps->sVirtualizationType
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|