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 7742 by niro, Tue Nov 3 11:00:17 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 128  if($_POST['do_upl']) Line 132  if($_POST['do_upl'])
132    
133   $arr = array();   $arr = array();
134   foreach($_POST as $k=>$v)   foreach($_POST as $k=>$v)
135     {
136   if((substr($k,0,$prelen)==$prefix) && ($v!='KEEPPASS'))   if((substr($k,0,$prelen)==$prefix) && ($v!='KEEPPASS'))
137   $arr[substr($k,$prelen)] = stripslashes($v);   $arr[substr($k,$prelen)] = stripslashes($v);
138     }
139    
140   return $arr;   return $arr;
141   }   }
# Line 176  function openabs($heading, $helpfile='') Line 182  function openabs($heading, $helpfile='')
182   {   {
183   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>';
184   if($helpfile!='') echo ' <a href="JavaScript:showhelp(\''.$helpfile.'\')" title="HELP">[?]</a>';   if($helpfile!='') echo ' <a href="JavaScript:showhelp(\''.$helpfile.'\')" title="HELP">[?]</a>';
185   echo '<br><div id="sch_absatz_'.$heading.'" style="top:0px; visibility:visible">';   echo '<br><div id="sch_absatz_'.$heading.'" style="top:0px; visibility:visible">';
186   }   }
187   else   else
188   {   {
# Line 192  function closeabs() Line 198  function closeabs()
198   echo '</div><br>';   echo '</div><br>';
199  }  }
200    
   
201  // ANZEIGEN  // ANZEIGEN
202    
203  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 213  function parsearr($name, $arr, $del=fals
213   foreach($arr as $k=>$v)   foreach($arr as $k=>$v)
214   {   {
215   if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue;   if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue;
216    
217   $d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k];   $d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k];
218   $k = str_replace('wireless_', '', $k);   $k = str_replace('wireless_', '', $k);
219   $k2 = $k;   $k2 = $k;
# Line 310  function parsearrs($name, $arr) Line 315  function parsearrs($name, $arr)
315   act = 2;   act = 2;
316   }   }
317   }   }
   
318   if(senden) sendopenclose(nummer,act);   if(senden) sendopenclose(nummer,act);
319   }   }
320    

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