sId}'"); $sContainerList = array(); foreach($result->data as $row) { $sContainer = new Container($row); try { $sStatus = $sContainer->sStatusText; } catch (SshException $e) { $sStatus = "stopped"; } $sContainerList[] = array( 'id' => $sContainer->sId, 'hostname' => $sContainer->sHostname, 'node' => $sContainer->sNode->sName, 'node-hostname' => $sContainer->sNode->sHostname, 'template' => $sContainer->sTemplate->sName, 'diskspace' => number_format($sContainer->sDiskSpace / 1024), 'diskspace-unit' => "GB", 'guaranteed-ram' => $sContainer->sGuaranteedRam, 'guaranteed-ram-unit' => "MB", 'status' => $sStatus, 'virtualization-type' => $sContainer->sVirtualizationType ); } $sMainContents = Templater::AdvancedParse("{$sTheme}/client/vps/list", $locale->strings, array( 'containers' => $sContainerList )); } else { throw new UnauthorizedException("You must be logged in to view this page."); }