Magellan Linux

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

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

revision 2605 by niro, Wed Jul 6 14:13:15 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    
# Line 305  function parsearrs($name, $arr) Line 317  function parsearrs($name, $arr)
317   $.ajax({type:""+typ+"",url:$url[0],data:$url[1],cache:false,success:function(data){ alert(data); }});   $.ajax({type:""+typ+"",url:$url[0],data:$url[1],cache:false,success:function(data){ alert(data); }});
318   }   }
319    
320    /* ignore this atm, not always working, sometime open does not work
321   function openclose(nummer, act)   function openclose(nummer, act)
322   {   {
323   var bild = document.images['sch_bild_'+nummer];   var bild = document.images['sch_bild_'+nummer];
# Line 316  function parsearrs($name, $arr) Line 329  function parsearrs($name, $arr)
329   });   });
330   if(act<=1){ $("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'}); }else{ $("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'}); };   if(act<=1){ $("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'}); }else{ $("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'}); };
331   }   }
332    */
333     function openclose(nummer, act)
334     {
335     var bild = document.images['sch_bild_'+nummer];
336     var absatz = document.all['sch_absatz_'+nummer].style;
337     var senden = false;
338    
339     if(bild.title == 'OPEN')
340     {
341     if(act<=1)
342     {
343     absatz.visibility = 'visible';
344     absatz.position = '';
345     bild.title = 'CLOSE';
346     bild.src = 'pics/minus.gif';
347     senden = true;
348     act = 0;
349     }
350     }
351     else
352     {
353     if(act>=1)
354     {
355     absatz.visibility = 'hidden';
356     absatz.position = 'absolute';
357     bild.title = 'OPEN';
358     bild.src = 'pics/plus.gif';
359     senden = true;
360     act = 2;
361     }
362     }
363    
364     if(senden) sendopenclose(nummer,act);
365     }
366    
367   function showhelp(name)   function showhelp(name)
368   { window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); }   { window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); }

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