From da5ae919f868d1da90548d7cbafec55a06d2a62b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 5 Jun 2014 20:41:32 +0200 Subject: Started "System Status" page --- inc/property.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'inc/property.inc.php') diff --git a/inc/property.inc.php b/inc/property.inc.php index d62bbcb9..00c8018f 100644 --- a/inc/property.inc.php +++ b/inc/property.inc.php @@ -133,6 +133,19 @@ class Property { return json_decode(self::get('vmstore-config'), true); } + public static function getVmStoreUrl() + { + $store = self::getVmStoreConfig(); + if (!isset($store['storetype'])) + return false; + if ($store['storetype'] === 'nfs') + return $store['nfsaddr']; + if ($store['storetype'] === 'cifs') + return $store['cifsaddr']; + if ($store['storetype'] === 'internal') + return ''; + return ''; + } public static function setVmStoreConfig($value) { -- cgit v1.2.3-55-g7522