Magellan Linux

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

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

revision 7139 by niro, Tue Sep 15 08:32:07 2015 UTC revision 7741 by niro, Tue Nov 3 10:59:15 2015 UTC
# Line 66  array_unshift($drop['cfg_autostart_sessi Line 66  array_unshift($drop['cfg_autostart_sessi
66  $drop['mtime'] = 'showtime';  $drop['mtime'] = 'showtime';
67  $drop['mac'] = 'show';  $drop['mac'] = 'show';
68  $drop['client_serials_serial'] = 'show';  $drop['client_serials_serial'] = 'show';
69  //$drop['password'] = 'password';  $drop['password'] = 'password';
70  //$drop['shell'] = 'password';  //$drop['shell'] = 'password';
71  $drop['client_auth_user'] = 'password';  $drop['client_auth_user'] = 'password';
72  $drop['root'] = 'password';  $drop['root'] = 'password';
# Line 104  array_unshift($storefront_apps, ""); Line 104  array_unshift($storefront_apps, "");
104  // hackish, fix me  // hackish, fix me
105  for ($i=0; $i<999; $i++) { $drop['cfg_sessions_storefront_'.$i.'_session'] = $storefront_apps; }  for ($i=0; $i<999; $i++) { $drop['cfg_sessions_storefront_'.$i.'_session'] = $storefront_apps; }
106    
107    $drop['enabled'] = 'ignore';
108    $drop['filename'] = 'ignore';
109    $drop['autostart'] = array('0','1');
110    
111  // GGF. NEUEN DATENSATZ EINFÜGEN  // GGF. NEUEN DATENSATZ EINFÜGEN
112  if(isset($_POST['do_add']))  if(isset($_POST['do_add']))
113  {  {
# Line 111  if(isset($_POST['do_add'])) Line 115  if(isset($_POST['do_add']))
115   if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id));   if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id));
116   else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id));   else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id));
117   else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id));   else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id));
118   else if($what=='SESSION-CITRIX') sqladd('cfg_sessions_citrix', array('domain'=>$citrix_domain_name, 'browseradrs'=>$citrix_browseradrs, 'serial'=>$id));   else if($what=='SESSION-CITRIX') sqladd('cfg_sessions_citrix', array('domain'=>$citrix_domain_name, 'serverlist'=>$citrix_serverlist, 'serial'=>$id));
119   else if($what=='SESSION-STOREFRONT') sqladd('cfg_sessions_storefront', array('domain'=>$storefront_domain_name, 'store'=>$storefront_store, 'serial'=>$id));   else if($what=='SESSION-STOREFRONT') sqladd('cfg_sessions_storefront', array('domain'=>$storefront_domain_name, 'store'=>$storefront_store, 'serial'=>$id));
120   else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id));   else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id));
121   else if($what=='AUTOSTART') sqladd('cfg_autostart', array('serial'=>$id));   else if($what=='AUTOSTART') sqladd('cfg_autostart', array('serial'=>$id));
# Line 176  function openabs($heading, $helpfile='') Line 180  function openabs($heading, $helpfile='')
180   {   {
181   echo '<a href="JavaScript:openclose(\''.$heading.'\',1);"><img border="0" src="pics/minus.gif" title="CLOSE" id="sch_bild_'.$heading.'"> <b>['.$heading.']</b></a>';   echo '<a href="JavaScript:openclose(\''.$heading.'\',1);"><img border="0" src="pics/minus.gif" title="CLOSE" id="sch_bild_'.$heading.'"> <b>['.$heading.']</b></a>';
182   if($helpfile!='') echo ' <a href="JavaScript:showhelp(\''.$helpfile.'\')" title="HELP">[?]</a>';   if($helpfile!='') echo ' <a href="JavaScript:showhelp(\''.$helpfile.'\')" title="HELP">[?]</a>';
183   echo '<br><div id="sch_absatz_'.$heading.'" style="top:0px; visibility:visible">';   echo '<br><div id="sch_absatz_'.$heading.'" style="top:0px; visibility:visible">';
184   }   }
185   else   else
186   {   {
# Line 192  function closeabs() Line 196  function closeabs()
196   echo '</div><br>';   echo '</div><br>';
197  }  }
198    
   
199  // ANZEIGEN  // ANZEIGEN
200    
201  function parsearr($name, $arr, $del=false, $wireless=false)  function parsearr($name, $arr, $del=false, $wireless=false)
# Line 208  function parsearr($name, $arr, $del=fals Line 211  function parsearr($name, $arr, $del=fals
211   foreach($arr as $k=>$v)   foreach($arr as $k=>$v)
212   {   {
213   if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue;   if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue;
214    
215   $d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k];   $d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k];
216   $k = str_replace('wireless_', '', $k);   $k = str_replace('wireless_', '', $k);
217   $k2 = $k;   $k2 = $k;
# Line 310  function parsearrs($name, $arr) Line 313  function parsearrs($name, $arr)
313   act = 2;   act = 2;
314   }   }
315   }   }
   
316   if(senden) sendopenclose(nummer,act);   if(senden) sendopenclose(nummer,act);
317   }   }
318    

Legend:
Removed from v.7139  
changed lines
  Added in v.7741