--- alx-src/branches/alx-web-050/show.php 2010/12/02 23:02:19 1610 +++ alx-src/branches/alx-web-060/show.php 2011/08/03 13:57:12 2711 @@ -1,414 +1,559 @@ - // INCLUDE UND TABELLEN-DEFINITIONEN - include('include/basesql.php'); - $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', 'client_version'); - $multi= array( 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0); - $data = array(); +// INCLUDE UND TABELLEN-DEFINITIONEN +include('include/basesql.php'); +include('include/common-functions.php'); +// INCLUDE CURRENT-PROBLEMS +include('include/current-problems.php'); - // get alx version info for - $alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$id); - $alxos = $alxinfo[os]; - $alxutils = $alxinfo[utils]; +$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', 'client_version', 'cfg_plugins'); +$multi= array( 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1); +$data = array(); - if($kill==1) - { - foreach($tabs as $t) mysql_query('UPDATE '.$t.' SET serial=-serial WHERE serial='.$id); - echo '
'; - echo ''; +// get alx version info for +$alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$id); +$alxos = $alxinfo[os]; +$alxutils = $alxinfo[utils]; - if($id<0) echo 'ACTIVATED #'.abs($id); - else echo 'DEACTIVATED #'.$id; +if($kill==1) +{ + foreach($tabs as $t) mysql_query('UPDATE '.$t.' SET serial=-serial WHERE serial='.$id); - echo ' |
'; - // FELD-DEFINITIONEN (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID) - $drop = array(); - if($alxos >= '0.5.3') - { - $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mga', 'r128', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'via'); - } - else - { - $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i810', 'i710', 'nv', 'mga', 'r128', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'via'); - } - $drop['resolution'] = array('640x480', '800x600', '1024x768', '1280x960', '1280x1024', '1360x768', '1366x768', '1400x1050', '1440x900', '1600x1200', '1680x1050'); - $drop['depth'] = array('24', '16', '8'); - $drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2'); - $drop['cfg_network_module'] = array('3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211', 'b44', 'bnx2', 'dl2k', 'e1000', 'r8169', 'sk98lin', 'tg3', 'via-velocity'); - $drop['networking'] = array('dhcp', 'static'); + if($id<0) echo 'ACTIVATED #'.abs($id); + else echo 'DEACTIVATED #'.$id; + + echo ' |
'.$k2.' | = |
'.$k2.' | = | '; + else if($d=='pluginconfig') + { + $dplugin = $drop[$name.'_'.$k.'_array']; if($dplugin==null) $dplugin = $drop[$k]; + if(is_array($dplugin)) { echo '
'.$k2.' | = |
'.$k2.' | = | '; - else if($d=='bold') echo '
'.$k2.' | = |
filename | = |
'.$k2.' | = '.$v.' |
'.$k2.' | = '.date('d.m.y - H:i:s', $v).' |
'.$k2.' | = |
'.$k2.' | = |
'.$k2.' | = |
delete | = |