2 |
// INCLUDE UND TABELLEN-DEFINITIONEN |
// INCLUDE UND TABELLEN-DEFINITIONEN |
3 |
include('include/basesql.php'); |
include('include/basesql.php'); |
4 |
$tabs = array('cfg_graphic', 'cfg_network', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver'); |
$tabs = array('cfg_graphic', 'cfg_network', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver'); |
5 |
$multi= array( 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0); |
$multi= array( 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0); |
6 |
$data = array(); |
$data = array(); |
7 |
|
|
8 |
if($kill==1) |
if($kill==1) |
22 |
|
|
23 |
// FELD-DEFINITIONEN (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID) |
// FELD-DEFINITIONEN (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID) |
24 |
$drop = array(); |
$drop = array(); |
25 |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i810', 'i710', 'nv', 'mga', 'r128', 'radeon', 's3', 's3virge', 'sis', 'trident', 'tseng', 'via'); |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i810', 'i710', 'nv', 'mga', 'r128', 'radeon', 's3', 's3virge', 'sis', 'trident', 'tseng', 'via', 'vmware'); |
26 |
$drop['resolution'] = array('640x480', '800x600', '1024x768', '1280x1024','1360x768', '1366x768', '1600x1200'); |
$drop['resolution'] = array('640x480', '800x600', '1024x768', '1280x1024','1360x768', '1366x768', '1600x1200'); |
27 |
$drop['depth'] = array('24', '16', '8'); |
$drop['depth'] = array('24', '16', '8'); |
28 |
$drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2'); |
$drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2'); |
29 |
$drop['cfg_network_module'] = array('3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211'); |
$drop['keyboard'] = array('kbd'); |
30 |
|
$drop['cfg_network_module'] = array('auto','3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211'); |
31 |
$drop['networking'] = array('dhcp', 'static'); |
$drop['networking'] = array('dhcp', 'static'); |
32 |
|
$drop['iface'] = 'show'; |
33 |
$drop['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp'); |
$drop['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp'); |
34 |
$drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location'); |
$drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location'); |
35 |
$drop['id'] = 'hidden'; |
$drop['id'] = 'hidden'; |
58 |
'sierpinski', 'slip', 'solitare', 'space', 'sphere', 'spiral', 'spline', 'star', 'starfish', 'strange', |
'sierpinski', 'slip', 'solitare', 'space', 'sphere', 'spiral', 'spline', 'star', 'starfish', 'strange', |
59 |
'swarm', 'swirl', 't3d', 'tetris', 'thornbird', 'tik_tak', 'toneclock', 'triangle', 'tube', 'turtle', |
'swarm', 'swirl', 't3d', 'tetris', 'thornbird', 'tik_tak', 'toneclock', 'triangle', 'tube', 'turtle', |
60 |
'vines', 'voters', 'wator', 'wire', 'world', 'worm', 'xcl', 'xjack'); |
'vines', 'voters', 'wator', 'wire', 'world', 'worm', 'xcl', 'xjack'); |
61 |
$drop['iface'] = array('eth0', 'wlan0'); |
|
|
|
|
62 |
|
|
63 |
// ACHTUNG!!! wlan_-Felder heißen eigentlich wireless_ |
// ACHTUNG!!! wlan_-Felder heißen eigentlich wireless_ |
64 |
$drop['wireless_mode'] = array('', 'managed', 'ad-hoc', 'master', 'repeater', 'secondary', 'monitor', 'auto'); |
$drop['wireless_mode'] = array('', 'managed', 'ad-hoc', 'master', 'repeater', 'secondary', 'monitor', 'auto'); |
346 |
fwrite($hostfile,$conn['ip']." ".$row[0],strlen($row[0])+strlen($conn['ip'])+1); |
fwrite($hostfile,$conn['ip']." ".$row[0],strlen($row[0])+strlen($conn['ip'])+1); |
347 |
fclose($hostfile); |
fclose($hostfile); |
348 |
|
|
349 |
$osver = exec($sshcmd.' -l root '.$conn['ip'].' \'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}"\''); |
$osver = exec($sshcmd.' -l root '.$conn['ip'].' \'os_ver=$(<'.$mageversion.');cfg_ver=$(/sbin/magequery -n '.$alxconfig.'|cut -d" " -f5);pname=${cfg_ver%-*-*};cfg_ver=${cfg_ver/${pname}-};echo "${os_ver}:${cfg_ver}"\''); |
350 |
$osver = explode(':',$osver); |
$osver = explode(':',$osver); |
351 |
} |
} |
352 |
if($osver[0] == '') $osver[0]='unkown'; |
if($osver[0] == '') $osver[0]='unkown'; |