Commit d1fcdc22 authored by Florian Schaal's avatar Florian Schaal

hide vserver from menue if vserver != active

parent 56ad03ff
......@@ -69,7 +69,11 @@ if(isset($_GET['nav']) && $_GET['nav'] == 'top') {
$web_servers = $app->db->queryOneRecord("SELECT COUNT(*) as cnt FROM server WHERE web_server = 1 AND active = 1");
if($web_servers['cnt'] == 0) continue;
}
if($mt == 'vm'){
$vm_servers = $app->db->queryOneRecord("SELECT COUNT(*) AS cnt FROM server WHERE vserver_server = 1 AND active = 1");
if($vm_servers['cnt'] == 0) continue;
}
include_once $mt.'/lib/module.conf.php';
$language = (isset($_SESSION['s']['user']['language']))?$_SESSION['s']['user']['language']:$conf['language'];
$app->load_language_file('web/'.$mt.'/lib/'.$language.'.lng');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment