summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/barramenu.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/WebConsole/barramenu.php')
-rw-r--r--admin/WebConsole/barramenu.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/barramenu.php b/admin/WebConsole/barramenu.php
index d6561cfc..dfb618ed 100644
--- a/admin/WebConsole/barramenu.php
+++ b/admin/WebConsole/barramenu.php
@@ -13,7 +13,7 @@ if(stripos($device,'iphone') !== false ){$device="iphone";}
elseif (stripos($device,'ipad') !== false) {$device="ipad";}
elseif (stripos($device,'android') !== false){$device="android";}
else{$device=0;}
-$version=exec("cat /opt/opengnsys/doc/VERSION.txt");
+$version=@json_decode(file_get_contents("/opt/opengnsys/doc/VERSION.json"))->version;
if(preg_match("/1.0.4/",$version) == TRUE ){$version=4;}
// ********************************************************************************************************
include_once("./includes/ctrlacc.php");