';
- }
- // $v contains the pluginname, get the configure flag
- $pflag = sqlfirst('SELECT configflag FROM avail_plugins WHERE plugin="'.$v.'"');
- if ($pflag[configflag]==1) echo '
configure
=
';
- }
else if($d=='bold') echo '
'.$k2.'
=
';
else if($d=='filename') echo '
filename
=
';
else if($d=='show') echo '
'.$k2.'
= '.$v.'
';
@@ -281,11 +271,10 @@
var $url = url.split("?");
$.ajax({type:""+typ+"",url:$url[0],data:$url[1],cache:false,success:function(data){ alert(data); }});
}
- function plugin(name,id) { window.open('plugin.php?plugin='+name+'&id='+id, '', 'width=350,height=180'); }
/* ignore this atm, not always working, sometime open does not work
function openclose(nummer, act)
- {
+ {
var bild = document.images['sch_bild_'+nummer];
var absatz = document.all['sch_absatz_'+nummer].style;
var senden = false;
@@ -297,11 +286,11 @@
}
*/
function openclose(nummer, act)
- {
+ {
var bild = document.images['sch_bild_'+nummer];
var absatz = document.all['sch_absatz_'+nummer].style;
var senden = false;
-
+
if(bild.title == 'OPEN')
{
if(act<=1)
@@ -326,7 +315,6 @@
act = 2;
}
}
-
if(senden) sendopenclose(nummer,act);
}
@@ -373,22 +361,29 @@
$state = 'Off';
if(count($conn)>0)
{
- if($retval==0) $state = 'On';
+ if($retval==0)
+ {
+ // first try mcore, then get ssh
+ $ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout);
+ if($ping_retval==1) $ping_retval = ping_host($dat['ip'],$ssh_port,$ping_timeout);
+ if($ping_retval==0)
+ {
+ $state = 'On';
+ }
+ }
}
echo '