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 2636 by niro, Thu Jul 7 19:49:18 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 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    // split all citrix server into an array to get the first server from list
127    $citrix_query_browser = split(";", $citrix_browseradrs);
128    exec($wwwroot.'/pnabrowse-wrapper -A '.$citrix_query_browser[0], $returned_citrix_sessions,$retval);
129    if ($retval == 0)
130    {
131     $citrix_public_applications = str_replace("'", "", $returned_citrix_sessions);
132     for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; }
133    }
134    else if($retval = 126) echo "pnabrowser-wrapper has no execute permission! please run chmod +x on ".$wwwroot."/pnabrowser-wrapper.";
135    else echo "pnabrowse-wrapper does not run successfully! retval->'".$retval."'<br>";
136    
137  // GGF. NEUEN DATENSATZ EINFÜGEN  // GGF. NEUEN DATENSATZ EINFÜGEN
138  if(isset($_POST['do_add']))  if(isset($_POST['do_add']))
139  {  {
# Line 129  if(isset($_POST['do_add'])) Line 141  if(isset($_POST['do_add']))
141   if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id));   if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id));
142   else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id));   else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id));
143   else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id));   else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id));
144   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));
145   else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id));   else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id));
146  }  }
147    

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