diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2018-06-12 15:25:43 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2018-06-12 15:25:43 +0200 |
commit | bf4b65c18d8d8a2eb156883863c2de8814718e9a (patch) | |
tree | 6e3d816c420a20ae9d5b71d862a741ba298b8d47 /admin/WebConsole/barramenu.php | |
parent | 9815cac93139ec0a4a155934819a887b6436081a (diff) |
#843: Web interface uses new version file and correcting some errata.
Diffstat (limited to 'admin/WebConsole/barramenu.php')
-rw-r--r-- | admin/WebConsole/barramenu.php | 2 |
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"); |