summaryrefslogtreecommitdiffstats
path: root/inc/property.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-06-05 20:41:32 +0200
committerSimon Rettberg2014-06-05 20:41:32 +0200
commitda5ae919f868d1da90548d7cbafec55a06d2a62b (patch)
tree9af9d1933f03c518875d672cdc1ac87dd13273ad /inc/property.inc.php
parentAdd functions to add script includes to the beginning or end of the document ... (diff)
downloadslx-admin-da5ae919f868d1da90548d7cbafec55a06d2a62b.tar.gz
slx-admin-da5ae919f868d1da90548d7cbafec55a06d2a62b.tar.xz
slx-admin-da5ae919f868d1da90548d7cbafec55a06d2a62b.zip
Started "System Status" page
Diffstat (limited to 'inc/property.inc.php')
-rw-r--r--inc/property.inc.php13
1 files changed, 13 insertions, 0 deletions
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 '<local>';
+ return '<unknown>';
+ }
public static function setVmStoreConfig($value)
{