Magellan Linux

Diff of /alx-src/branches/alx-web-060/show.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2609 by niro, Wed Jul 6 14:44:40 2011 UTC revision 2703 by niro, Tue Jul 12 15:01:18 2011 UTC
# Line 32  if($kill==1) Line 32  if($kill==1)
32    
33  // FELD-DEFINITIONEN  (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID)  // FELD-DEFINITIONEN  (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID)
34  $drop = array();  $drop = array();
35  if($alxos >= '0.5.3')  if($alxos >= '0.6.0')
36    {
37     $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'vmware');
38    }
39    else if($alxos >= '0.5.3')
40  {  {
41   $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng');   $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng');
42  }  }
# Line 82  $drop['hostname'] = 'bold'; Line 86  $drop['hostname'] = 'bold';
86  $drop['session'] = 'bold';  $drop['session'] = 'bold';
87  if($alxos>='0.6.0')  if($alxos>='0.6.0')
88  {  {
89   $drop['cfg_autostart_session'] = array('');   $drop['cfg_autostart_session'] = sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, '', 'filename');
90   $drop['cfg_autostart_session'] += sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, 'array', 'filename');   array_unshift($drop['cfg_autostart_session'], "");
91  }  }
92  else  else
93  {  {
# Line 122  $drop['wireless_frequency'] = array('', Line 126  $drop['wireless_frequency'] = array('',
126  $drop['wireless_key'] = 'password';  $drop['wireless_key'] = 'password';
127  $drop['wireless_key_ascii'] = 'password';  $drop['wireless_key_ascii'] = 'password';
128    
129    // get current citrix sessions
130    if($alxos>='0.6.0')
131    {
132     // split all citrix server into an array to get the first server from list
133     $citrix_query_browser = split(";", $citrix_browseradrs);
134     exec($wwwroot.'/pnabrowse-wrapper -A '.$citrix_query_browser[0], $returned_citrix_sessions, $retval);
135     if ($retval == 0)
136     {
137     $citrix_public_applications = str_replace("'", "", $returned_citrix_sessions);
138     // add an empty value add the first position of the array as session-default
139     array_unshift($citrix_public_applications, "");
140     for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; }
141     }
142     else if($retval = 126) echo "pnabrowser-wrapper has no execute permission! please run chmod +x on ".$wwwroot."/pnabrowser-wrapper.";
143     else echo "pnabrowse-wrapper does not run successfully! retval->'".$retval."'<br>";
144    }
145    
146  // GGF. NEUEN DATENSATZ EINFÜGEN  // GGF. NEUEN DATENSATZ EINFÜGEN
147  if(isset($_POST['do_add']))  if(isset($_POST['do_add']))
148  {  {

Legend:
Removed from v.2609  
changed lines
  Added in v.2703