44 |
$drop['depth'] = array('24', '16', '8'); |
$drop['depth'] = array('24', '16', '8'); |
45 |
$drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2'); |
$drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2'); |
46 |
$drop['keyboard'] = array('PC105'); |
$drop['keyboard'] = array('PC105'); |
47 |
if($alxos >= '0.6.0') { |
if($alxos >= '0.6.0') |
48 |
|
{ |
49 |
$drop['cfg_network_module'] = array('3c509', '3c59x', '8139cp', '8139too', '8390', 'amd8111e', 'atl1c', 'atl1e', 'atl1', 'atl2', 'b44', 'bnx2', 'cnic', 'e100', 'e1000', 'e1000e', 'forcedeth', 'igb', 'ipg', 'jme', 'natsemi', 'ne2k-pci', 'ns83820', 'pcnet32', 'qla3xxx', 'r8169', 'sis190', 'sis900', 'skge', 'sky2', 'tg3', 'typhoon', 'via-rhine', 'via-velocity', 'adm8211', 'airo', 'at76c50x-usb', 'ar9170usb', 'ath5k', 'ath9k', 'atmel', 'b43', 'b43legacy', 'hostap_pci', 'hostap_plx', 'ipw2100', 'ipw2200', 'iwl3945', 'usb8xxx', 'libertas_tf', 'libertas_tf_usb', 'mwl8k', 'orinoco', 'orinoco_nortel', 'orinoco_plx', 'orinoco_tmd', 'orinoco_usb', 'p54pci', 'p54usb', 'prism54', 'rndis_wlan', 'rt2400pci', 'rt2500pci', 'rt2500usb', 'rt2800pci', 'rt2800usb', 'rt61pci', 'rt73usb', 'rtl8180', 'rtl8187', 'wl1251', 'wl1271', 'zd1201', 'zd1211rw'); |
$drop['cfg_network_module'] = array('3c509', '3c59x', '8139cp', '8139too', '8390', 'amd8111e', 'atl1c', 'atl1e', 'atl1', 'atl2', 'b44', 'bnx2', 'cnic', 'e100', 'e1000', 'e1000e', 'forcedeth', 'igb', 'ipg', 'jme', 'natsemi', 'ne2k-pci', 'ns83820', 'pcnet32', 'qla3xxx', 'r8169', 'sis190', 'sis900', 'skge', 'sky2', 'tg3', 'typhoon', 'via-rhine', 'via-velocity', 'adm8211', 'airo', 'at76c50x-usb', 'ar9170usb', 'ath5k', 'ath9k', 'atmel', 'b43', 'b43legacy', 'hostap_pci', 'hostap_plx', 'ipw2100', 'ipw2200', 'iwl3945', 'usb8xxx', 'libertas_tf', 'libertas_tf_usb', 'mwl8k', 'orinoco', 'orinoco_nortel', 'orinoco_plx', 'orinoco_tmd', 'orinoco_usb', 'p54pci', 'p54usb', 'prism54', 'rndis_wlan', 'rt2400pci', 'rt2500pci', 'rt2500usb', 'rt2800pci', 'rt2800usb', 'rt61pci', 'rt73usb', 'rtl8180', 'rtl8187', 'wl1251', 'wl1271', 'zd1201', 'zd1211rw'); |
50 |
} else { |
} |
51 |
|
else |
52 |
|
{ |
53 |
$drop['cfg_network_module'] = array('3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211', 'b44', 'bnx2', 'dl2k', 'e1000', 'forcedeth', 'r8169', 'sk98lin', 'tg3', 'via-velocity'); |
$drop['cfg_network_module'] = array('3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211', 'b44', 'bnx2', 'dl2k', 'e1000', 'forcedeth', 'r8169', 'sk98lin', 'tg3', 'via-velocity'); |
54 |
} |
} |
55 |
$drop['networking'] = array('dhcp', 'static'); |
$drop['networking'] = array('dhcp', 'static'); |
56 |
$drop['port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2', 'lpd', 'socket', 'ipp'); |
// 0.6.0 does not support lpd, ipp and socket printing atm |
57 |
|
if($alxos>='0.6.0') |
58 |
|
{ |
59 |
|
$drop['cfg_printers_port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2'); |
60 |
|
for ($i=0; $i<999; $i++) { $drop['cfg_printers_'.$i.'_ip'] = 'ignore'; } |
61 |
|
$drop['cfg_printers_share'] = 'ignore'; |
62 |
|
} |
63 |
|
else |
64 |
|
{ |
65 |
|
$drop['cfg_printers_port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2', 'lpd', 'socket', 'ipp'); |
66 |
|
} |
67 |
$drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location'); |
$drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location'); |
68 |
$drop['id'] = 'hidden'; |
$drop['id'] = 'hidden'; |
69 |
$drop['flg_modified'] = '1'; |
$drop['flg_modified'] = '1'; |
80 |
} |
} |
81 |
$drop['hostname'] = 'bold'; |
$drop['hostname'] = 'bold'; |
82 |
$drop['session'] = 'bold'; |
$drop['session'] = 'bold'; |
83 |
$drop['cfg_autostart_session'] = 'filename'; |
if($alxos>='0.6.0') |
84 |
|
{ |
85 |
|
$drop['cfg_autostart_session'] = array(''); |
86 |
|
$drop['cfg_autostart_session'] += sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, 'array', 'filename'); |
87 |
|
} |
88 |
|
else |
89 |
|
{ |
90 |
|
$drop['cfg_autostart_session'] = 'filename'; |
91 |
|
} |
92 |
$drop['mtime'] = 'showtime'; |
$drop['mtime'] = 'showtime'; |
93 |
$drop['mac'] = 'show'; |
$drop['mac'] = 'show'; |
94 |
$drop['client_serials_serial'] = 'show'; |
$drop['client_serials_serial'] = 'show'; |
166 |
} |
} |
167 |
} |
} |
168 |
} |
} |
|
} |
|
169 |
|
|
170 |
|
// reload site |
171 |
|
header("location: show.php?id=".$id); |
172 |
|
} |
173 |
|
|
174 |
// EINLESEN DER DATEN AUS SQL-TABELLEN |
// EINLESEN DER DATEN AUS SQL-TABELLEN |
175 |
foreach($tabs as $k=>$t) |
foreach($tabs as $k=>$t) |
295 |
.keytab, input, textarea, select, option { font-size:8pt; font-family:Tahoma } |
.keytab, input, textarea, select, option { font-size:8pt; font-family:Tahoma } |
296 |
.but { font-size:10pt; font-family:Tahoma; height:23px } |
.but { font-size:10pt; font-family:Tahoma; height:23px } |
297 |
</style> |
</style> |
298 |
|
<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script> |
299 |
<script language="JavaScript" src="openclose_ajax.js"></script> |
<script language="JavaScript" src="openclose_ajax.js"></script> |
300 |
<script language="JavaScript"> |
<script language="JavaScript"> |
301 |
|
|
311 |
var absatz = document.all['sch_absatz_'+nummer].style; |
var absatz = document.all['sch_absatz_'+nummer].style; |
312 |
var senden = false; |
var senden = false; |
313 |
|
|
314 |
if(bild.title == 'OPEN') |
$("#sch_absatz_"+nummer).toggle(0, function(){ |
315 |
{ |
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'});} |
316 |
if(act<=1) |
}); |
317 |
{ |
if(act<=1){ $("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'}); }else{ $("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'}); }; |
318 |
absatz.visibility = 'visible'; |
} |
|
absatz.position = ''; |
|
|
bild.title = 'CLOSE'; |
|
|
bild.src = 'pics/minus.gif'; |
|
|
senden = true; |
|
|
act = 0; |
|
|
} |
|
|
} |
|
|
else |
|
|
{ |
|
|
if(act>=1) |
|
|
{ |
|
|
absatz.visibility = 'hidden'; |
|
|
absatz.position = 'absolute'; |
|
|
bild.title = 'OPEN'; |
|
|
bild.src = 'pics/plus.gif'; |
|
|
senden = true; |
|
|
act = 2; |
|
|
} |
|
|
} |
|
|
|
|
|
if(senden) sendopenclose(nummer,act); |
|
|
} |
|
319 |
|
|
320 |
function showhelp(name) |
function showhelp(name) |
321 |
{ window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); } |
{ window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); } |
325 |
|
|
326 |
<body><? |
<body><? |
327 |
|
|
328 |
//echo '<body style="background-image:URL(logo.jpg);background-repeat:no-repeat; background-position:0px 0px; margin-top:25px">'; |
echo '<form action="show.php" method="post" onreset="return confirm(\'UNDO CHANGES?\')">'; |
|
echo '<form action="show.php" method=post onreset="return confirm(\'UNDO CHANGES?\')">'; |
|
329 |
echo '<input type=hidden name="do_upl" value="1">'; |
echo '<input type=hidden name="do_upl" value="1">'; |
330 |
echo '<input type=hidden name="id" value="'.$id.'">'; |
echo '<input type=hidden name="id" value="'.$id.'">'; |
331 |
|
|
360 |
$state = 'Off'; |
$state = 'Off'; |
361 |
if(count($conn)>0) |
if(count($conn)>0) |
362 |
{ |
{ |
|
// passthru($pingcmd." ".$conn['ip']." &> /dev/null && exit 0 || exit 1",$retval); |
|
363 |
if($retval==0) $state = 'On'; |
if($retval==0) $state = 'On'; |
364 |
} |
} |
365 |
|
|
|
|
|
366 |
echo '<img src="pics/logo2.jpg"><br><br>'; |
echo '<img src="pics/logo2.jpg"><br><br>'; |
367 |
|
|
368 |
echo '<input class="but" type=submit value="SAVE" style="width:150px"><br><br>'; |
echo '<input class="but" type=submit value="SAVE" style="width:150px"><br><br>'; |
396 |
if($state=='On') |
if($state=='On') |
397 |
{ |
{ |
398 |
echo '<u>IP:</u> '.$conn['ip'].'<br><br>'; |
echo '<u>IP:</u> '.$conn['ip'].'<br><br>'; |
399 |
if($alxos >= '0.6.0') { |
if($alxos >= '0.6.0') |
400 |
|
{ |
401 |
$osver = sshdo('os_ver=$(</etc/mageversion);cfg_ver=$(/sbin/magequery -n alxconfig-ng | cut -d" " -f5);pname=${cfg_ver%-*-*};cfg_ver=${cfg_ver/${pname}-};echo "${os_ver}:${cfg_ver}"', $conn['ip']); |
$osver = sshdo('os_ver=$(</etc/mageversion);cfg_ver=$(/sbin/magequery -n alxconfig-ng | cut -d" " -f5);pname=${cfg_ver%-*-*};cfg_ver=${cfg_ver/${pname}-};echo "${os_ver}:${cfg_ver}"', $conn['ip']); |
402 |
} else { |
} |
403 |
|
else |
404 |
|
{ |
405 |
$osver = sshdo('os_ver=$(</etc/mageversion);cfg_ver=$(/sbin/magequery -n alxconfig-ng-alx | cut -d" " -f5);pname=${cfg_ver%-*-*};cfg_ver=${cfg_ver/${pname}-};echo "${os_ver}:${cfg_ver}"', $conn['ip']); |
$osver = sshdo('os_ver=$(</etc/mageversion);cfg_ver=$(/sbin/magequery -n alxconfig-ng-alx | cut -d" " -f5);pname=${cfg_ver%-*-*};cfg_ver=${cfg_ver/${pname}-};echo "${os_ver}:${cfg_ver}"', $conn['ip']); |
406 |
} |
} |
407 |
$osver = explode(':',$osver[1]); |
$osver = explode(':',$osver[1]); |
427 |
} |
} |
428 |
|
|
429 |
echo '</b></div>'; |
echo '</b></div>'; |
|
//echo '<br><br>'; |
|
430 |
|
|
431 |
if($state=='On') |
if($state=='On') |
432 |
{ |
{ |