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'; |
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 |
{ |
{ |
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)); |
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 |
} |
} |
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 |
{ |
{ |
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) |
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; |
315 |
act = 2; |
act = 2; |
316 |
} |
} |
317 |
} |
} |
|
|
|
318 |
if(senden) sendopenclose(nummer,act); |
if(senden) sendopenclose(nummer,act); |
319 |
} |
} |
320 |
|
|