--- alx-src/trunk/alx-web/show.php 2008/06/05 20:46:44 465 +++ alx-src/trunk/alx-web/show.php 2008/06/10 13:21:10 500 @@ -1,8 +1,8 @@ // INCLUDE UND TABELLEN-DEFINITIONEN include('include/basesql.php'); - $tabs = array('cfg_graphic', 'cfg_network', 'cfg_interfaces', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver'); - $multi= array( 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0); + $tabs = array('cfg_graphic', 'cfg_network', 'cfg_interfaces', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver', 'cfg_theme'); + $multi= array( 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0); $data = array(); if($kill==1) @@ -27,11 +27,14 @@ $drop['depth'] = array('24', '16', '8'); $drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2'); $drop['keyboard'] = array('kbd'); - $drop['cfg_network_module'] = array('auto','3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211'); + //$drop['cfg_network_module'] = array('auto','3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211'); + $drop['module'] = array('auto','3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211'); $drop['networking'] = array('dhcp', 'static'); - $drop['default_iface'] = sqlarr('SELECT iface FROM cfg_interfaces where serial='.$id, 'default_iface', 'iface'); + $drop['default_iface'] = sqlarr('SELECT iface FROM cfg_interfaces where serial='.$id, '', 'iface'); $drop['iface'] = 'show'; - $drop['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp'); + # only support parallel and seriell printing on tinyalx + //$drop['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp'); + $drop['port'] = array('lpt1', 'com1'); $drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location'); $drop['id'] = 'hidden'; $drop['flg_modified'] = '1'; @@ -40,7 +43,8 @@ $drop['hostname'] = 'bold'; $drop['session'] = 'bold'; $drop['displaymode'] = array('fullscreen', 'seamless', '1280x1024', '1024x768', '800x600'); - $drop['cfg_autostart_session'] = 'filename'; + $drop['cfg_autostart_session'] = array(''); + $drop['cfg_autostart_session'] += sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, 'array', 'filename'); $drop['mtime'] = 'showtime'; $drop['mac'] = 'show'; $drop['client_serials_serial'] = 'show'; @@ -60,8 +64,9 @@ 'sierpinski', 'slip', 'solitare', 'space', 'sphere', 'spiral', 'spline', 'star', 'starfish', 'strange', 'swarm', 'swirl', 't3d', 'tetris', 'thornbird', 'tik_tak', 'toneclock', 'triangle', 'tube', 'turtle', 'vines', 'voters', 'wator', 'wire', 'world', 'worm', 'xcl', 'xjack'); + $drop['cfg_theme_theme'] = 'beOSbox','LemonSpace','PinguJessy','prime23-dark','prime23-light'); + - // ACHTUNG!!! wlan_-Felder heißen eigentlich wireless_ $drop['wireless_mode'] = array('', 'managed', 'ad-hoc', 'master', 'repeater', 'secondary', 'monitor', 'auto'); $drop['wireless_auth_mode'] = array('', 'wep', 'wpa', 'off'); @@ -102,7 +107,10 @@ foreach($tabs as $k=>$t) { - if(!$multi[$k]) mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t)).' WHERE serial='.$id); + if(!$multi[$k]) + { + mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t)).' WHERE serial='.$id); + } else { $i=0; @@ -131,14 +139,14 @@ // ANZEIGEN - KLAPPFUNKTIONEN $absnames = array(); - + function openabs($heading, $helpfile='') { global $absnames; $absnames[] = $heading; - + // - + if( $_SESSION['openclose'][$heading] ) { echo ' ['.$heading.']'; @@ -152,17 +160,17 @@ echo ''; } } - + function closeabs() { // echo ''; } - - // ANZEIGEN - + + // ANZEIGEN + function parsearr($name, $arr, $del=false, $wireless=false) { global $drop; @@ -174,10 +182,10 @@ foreach($arr as $k=>$v) { - if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue; - + //if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue; + $d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k]; - $k = str_replace('wireless_', '', $k); + //$k = str_replace('wireless_', '', $k); $k2 = $k; if(is_array($d)) @@ -202,8 +210,8 @@ if($del) echo 'delete='; echo ''; closeabs(); - - if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true); + + //if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true); } function parsearrs($name, $arr) { @@ -222,9 +230,9 @@ - + - - + + //echo ''; echo ''; echo ''; @@ -285,13 +293,13 @@ echo ''; foreach($tabs as $k=>$t) if($multi[$k]) parsearrs($t, $data[$t]); - + echo ''; // ANZEIGEN => NAVI @@ -353,8 +361,8 @@ } if($osver[0] == '') $osver[0]='unkown'; if($osver[1] == '') $osver[1]='unkown'; - echo 'OS: '.$osver[0].''; - echo 'Utils: '.$osver[1].''; + echo 'OS: '.$osver[0].''; + echo 'Utils: '.$osver[1].''; } echo ''; @@ -366,8 +374,8 @@ echo ''; echo ''; - echo ''; - echo 'Client Update:'; + echo ''; + echo 'Client Update:'; echo ''; echo ''; echo '';