';
- }
- // $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.'
';
else if($d=='showtime') echo '
'.$k2.'
= '.date('d.m.y - H:i:s', $v).'
';
else if($d=='password' && $v=='') echo '
'.$k2.'
=
';
else if($d=='password') echo '
'.$k2.'
=
';
- else if($d=='txt') echo '
';
+ else if($d=='txt') echo '
';
else if($d!='ignore') echo '
'.$k2.'
=
';
}
@@ -345,6 +248,7 @@
if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true);
}
+
function parsearrs($name, $arr)
{
foreach($arr as $k=>$a)
@@ -369,27 +273,13 @@
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;
- $("#sch_absatz_"+nummer).toggle(0, function(){
- if($(this).css("display")=="none"){$("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'});}else{$("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'});}
- });
- if(act<=1){ $("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'}); }else{ $("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'}); };
- }
-*/
- 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)
@@ -414,7 +304,6 @@
act = 2;
}
}
-
if(senden) sendopenclose(nummer,act);
}
@@ -461,26 +350,34 @@
$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==0)
+ {
+ $state = 'On';
+ }
+ }
}
echo '