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 |
} |
} |