';
+ echo '
';
}
else
{
@@ -205,12 +195,10 @@
function closeabs()
{
//
-
echo '
';
}
-
-// ANZEIGEN
+// ANZEIGEN
function parsearr($name, $arr, $del=false, $wireless=false)
{
@@ -225,35 +213,13 @@
foreach($arr as $k=>$v)
{
if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue;
-
+
$d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k];
$k = str_replace('wireless_', '', $k);
$k2 = $k;
- //replace some drivers on 0.5.3 or higher
- if($alxos >= '0.5.3')
- {
- if($v == 'i810')
- {
- echo '
Replaced "i810" with "intel" - Please press SAVE!';
- $v='intel';
- }
- if($v == 'r128')
- {
- echo '
Replaced "r128" with "vesa" - Please press SAVE!';
- $v='vesa';
- }
-
- if($v == 'via')
- {
- echo '
Replaced "via" with "openchrome" - Please press SAVE!';
- $v='openchrome';
- }
- }
-
# tell something about vesa
- if ($v == 'vesa') echo '
Warning: "vesa" graphic module doesn\'t support any resolutions higher than 1024x786x16@60hz!';
-
+// if ($v == 'vesa') echo '
Warning: "vesa" graphic module doesn\'t support any resolutions higher than 1024x786x16@60hz!';
if(is_array($d))
{
@@ -270,7 +236,7 @@
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.' | = |
';
}
@@ -280,6 +246,7 @@
if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true);
}
+
function parsearrs($name, $arr)
{
foreach($arr as $k=>$a)
@@ -305,25 +272,12 @@
$.ajax({type:""+typ+"",url:$url[0],data:$url[1],cache:false,success:function(data){ alert(data); }});
}
-/* 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)
@@ -348,7 +302,6 @@
act = 2;
}
}
-
if(senden) sendopenclose(nummer,act);
}
@@ -395,22 +348,33 @@
$state = 'Off';
if(count($conn)>0)
{
- if($retval==0) $state = 'On';
+ if($retval==0)
+ {
+ $ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout);
+ if($ping_retval==0)
+ {
+ $state = 'On';
+ }
+ }
}
echo '
';
echo '
';
- echo '
';
- echo '
';
- echo '
';
- echo '
';
- echo '
';
-
+ echo '
';
+ echo '
';
+ echo '
';
+ echo '
';
+ echo '
';
+ echo '
';
+ echo '
';
+ echo '
';
+ echo '
';
- if($id>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE';
- echo '
';
+ $clientstatus = sqlfirst('SELECT * FROM client_serials WHERE serial='.$id);
+ if($clientstatus['enabled']>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE';
+ echo '
';
echo '
';
echo '
';
@@ -430,35 +394,12 @@
echo '
Status: '.$state.'line
';
if($state=='On')
{
- echo '
IP: '.$conn['ip'].'
';
- if($alxos >= '0.6.0')
- {
- $osver = sshdo('os_ver=$(= '0.5.3')
- {
- mysql_query('insert into client_version(serial,os,utils) values("'.$id.'","'.$osver[0].'","'.$osver[1].'")
- on duplicate key update os="'.$osver[0].'", utils="'.$osver[1].'"');
- # reload the site
- echo '';
- }
-
- echo '
OS: '.$osver[0].'
';
- echo '
Utils: '.$osver[1].'
';
-
- if($osver[0] <> 'unkown')
- {
- //write them to database
- }
+ echo '
IP: '.$conn['ip'].'
';
+ if($conn['netboot'] == 1) echo '
Boot: Netboot (PXE)
';
+ else echo '
Boot: Local Disk
';
+ echo '
';
+ echo '
OS: '.$alxos.'
';
+ echo '
Utils: '.$alxutils.'
';
}
echo '
';
@@ -466,34 +407,19 @@
if($state=='On')
{
echo '