Magellan Linux

Diff of /alx-src/trunk/alx-web/show.php

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

revision 2606 by niro, Wed Jul 6 14:15:18 2011 UTC revision 2640 by niro, Mon Jul 11 08:39:05 2011 UTC
# Line 56  $drop['networking'] = array('dhcp', 'sta Line 56  $drop['networking'] = array('dhcp', 'sta
56  // 0.6.0 does not support lpd, ipp and socket printing atm  // 0.6.0 does not support lpd, ipp and socket printing atm
57  if($alxos>='0.6.0')  if($alxos>='0.6.0')
58  {  {
59   $drop['cfg_printers_port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2');   $drop['port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2');
60   for ($i=0; $i<999; $i++) { $drop['cfg_printers_'.$i.'_ip'] = 'ignore'; }   for ($i=0; $i<999; $i++) { $drop['cfg_printers_'.$i.'_ip'] = 'ignore'; }
61   $drop['cfg_printers_share'] = 'ignore';   $drop['share'] = 'ignore';
62  }  }
63  else  else
64  {  {
# Line 82  $drop['hostname'] = 'bold'; Line 82  $drop['hostname'] = 'bold';
82  $drop['session'] = 'bold';  $drop['session'] = 'bold';
83  if($alxos>='0.6.0')  if($alxos>='0.6.0')
84  {  {
85   $drop['cfg_autostart_session'] = array('');   $drop['cfg_autostart_session'] = sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, '', 'filename');
86   $drop['cfg_autostart_session'] += sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, 'array', 'filename');   array_unshift($drop['cfg_autostart_session'], "");
87  }  }
88  else  else
89  {  {
# Line 122  $drop['wireless_frequency'] = array('', Line 122  $drop['wireless_frequency'] = array('',
122  $drop['wireless_key'] = 'password';  $drop['wireless_key'] = 'password';
123  $drop['wireless_key_ascii'] = 'password';  $drop['wireless_key_ascii'] = 'password';
124    
125    // get current citrix sessions
126    if($alxos>='0.6.0')
127    {
128     // split all citrix server into an array to get the first server from list
129     $citrix_query_browser = split(";", $citrix_browseradrs);
130     exec($wwwroot.'/pnabrowse-wrapper -A '.$citrix_query_browser[0], $returned_citrix_sessions, $retval);
131     if ($retval == 0)
132     {
133     $citrix_public_applications = str_replace("'", "", $returned_citrix_sessions);
134     // add an empty value add the first position of the array as session-default
135     array_unshift($citrix_public_applications, "");
136     for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; }
137     }
138     else if($retval = 126) echo "pnabrowser-wrapper has no execute permission! please run chmod +x on ".$wwwroot."/pnabrowser-wrapper.";
139     else echo "pnabrowse-wrapper does not run successfully! retval->'".$retval."'<br>";
140    }
141    
142  // GGF. NEUEN DATENSATZ EINFÜGEN  // GGF. NEUEN DATENSATZ EINFÜGEN
143  if(isset($_POST['do_add']))  if(isset($_POST['do_add']))
144  {  {
# Line 129  if(isset($_POST['do_add'])) Line 146  if(isset($_POST['do_add']))
146   if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id));   if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id));
147   else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id));   else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id));
148   else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id));   else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id));
149   else if($what=='SESSION') sqladd('cfg_sessions', array('domain'=>'DOM_AKA_NT', 'browseradrs'=>'128.20.50.50;128.20.50.66;128.20.50.71;128.20.50.46;128.20.100.31;128.20.100.32', 'serial'=>$id));   else if($what=='SESSION') sqladd('cfg_sessions', array('domain'=>$citrix_domain_name, 'browseradrs'=>$citrix_browseradrs, 'serial'=>$id));
150   else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id));   else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id));
151  }  }
152    

Legend:
Removed from v.2606  
changed lines
  Added in v.2640