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 |
$drop['cfg_printers_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 |
{ |
{ |
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 |
|
exec($wwwroot.'/pnabrowse-wrapper -A '.str_replace(";", " ", $citrix_browseradrs), $returned_citrix_sessions,$retval); |
127 |
|
if ($retval == 0) |
128 |
|
{ |
129 |
|
$citrix_public_applications = str_replace("'", "", $returned_citrix_sessions); |
130 |
|
for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; } |
131 |
|
} |
132 |
|
|
133 |
// GGF. NEUEN DATENSATZ EINFÜGEN |
// GGF. NEUEN DATENSATZ EINFÜGEN |
134 |
if(isset($_POST['do_add'])) |
if(isset($_POST['do_add'])) |
135 |
{ |
{ |
137 |
if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id)); |
if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id)); |
138 |
else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id)); |
else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id)); |
139 |
else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id)); |
else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id)); |
140 |
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)); |
141 |
else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id)); |
else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id)); |
142 |
} |
} |
143 |
|
|
313 |
$.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); }}); |
314 |
} |
} |
315 |
|
|
316 |
|
/* ignore this atm, not always working, sometime open does not work |
317 |
function openclose(nummer, act) |
function openclose(nummer, act) |
318 |
{ |
{ |
319 |
var bild = document.images['sch_bild_'+nummer]; |
var bild = document.images['sch_bild_'+nummer]; |
325 |
}); |
}); |
326 |
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'}); }; |
327 |
} |
} |
328 |
|
*/ |
329 |
|
function openclose(nummer, act) |
330 |
|
{ |
331 |
|
var bild = document.images['sch_bild_'+nummer]; |
332 |
|
var absatz = document.all['sch_absatz_'+nummer].style; |
333 |
|
var senden = false; |
334 |
|
|
335 |
|
if(bild.title == 'OPEN') |
336 |
|
{ |
337 |
|
if(act<=1) |
338 |
|
{ |
339 |
|
absatz.visibility = 'visible'; |
340 |
|
absatz.position = ''; |
341 |
|
bild.title = 'CLOSE'; |
342 |
|
bild.src = 'pics/minus.gif'; |
343 |
|
senden = true; |
344 |
|
act = 0; |
345 |
|
} |
346 |
|
} |
347 |
|
else |
348 |
|
{ |
349 |
|
if(act>=1) |
350 |
|
{ |
351 |
|
absatz.visibility = 'hidden'; |
352 |
|
absatz.position = 'absolute'; |
353 |
|
bild.title = 'OPEN'; |
354 |
|
bild.src = 'pics/plus.gif'; |
355 |
|
senden = true; |
356 |
|
act = 2; |
357 |
|
} |
358 |
|
} |
359 |
|
|
360 |
|
if(senden) sendopenclose(nummer,act); |
361 |
|
} |
362 |
|
|
363 |
function showhelp(name) |
function showhelp(name) |
364 |
{ window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); } |
{ window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); } |