32 |
|
|
33 |
// FELD-DEFINITIONEN (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID) |
// FELD-DEFINITIONEN (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID) |
34 |
$drop = array(); |
$drop = array(); |
35 |
if($alxos >= '0.5.3') |
if($alxos >= '0.6.0') |
36 |
|
{ |
37 |
|
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'vmware'); |
38 |
|
} |
39 |
|
else if($alxos >= '0.5.3') |
40 |
{ |
{ |
41 |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng'); |
$drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng'); |
42 |
} |
} |
86 |
$drop['session'] = 'bold'; |
$drop['session'] = 'bold'; |
87 |
if($alxos>='0.6.0') |
if($alxos>='0.6.0') |
88 |
{ |
{ |
89 |
$drop['cfg_autostart_session'] = array(''); |
$drop['cfg_autostart_session'] = sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, '', 'filename'); |
90 |
$drop['cfg_autostart_session'] += sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, 'array', 'filename'); |
array_unshift($drop['cfg_autostart_session'], ""); |
91 |
} |
} |
92 |
else |
else |
93 |
{ |
{ |
127 |
$drop['wireless_key_ascii'] = 'password'; |
$drop['wireless_key_ascii'] = 'password'; |
128 |
|
|
129 |
// get current citrix sessions |
// get current citrix sessions |
130 |
exec($wwwroot.'/pnabrowse-wrapper -A '.str_replace(";", " ", $citrix_browseradrs), $returned_citrix_sessions,$retval); |
if($alxos>='0.6.0') |
|
if ($retval == 0) |
|
131 |
{ |
{ |
132 |
$citrix_public_applications = str_replace("'", "", $returned_citrix_sessions); |
// split all citrix server into an array to get the first server from list |
133 |
for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; } |
$citrix_query_browser = split(";", $citrix_browseradrs); |
134 |
|
exec($wwwroot.'/pnabrowse-wrapper -A '.$citrix_query_browser[0], $returned_citrix_sessions, $retval); |
135 |
|
if ($retval == 0) |
136 |
|
{ |
137 |
|
$citrix_public_applications = str_replace("'", "", $returned_citrix_sessions); |
138 |
|
// add an empty value add the first position of the array as session-default |
139 |
|
array_unshift($citrix_public_applications, ""); |
140 |
|
for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; } |
141 |
|
} |
142 |
|
else if($retval = 126) echo "pnabrowser-wrapper has no execute permission! please run chmod +x on ".$wwwroot."/pnabrowser-wrapper."; |
143 |
|
else echo "pnabrowse-wrapper does not run successfully! retval->'".$retval."'<br>"; |
144 |
} |
} |
145 |
|
|
146 |
// GGF. NEUEN DATENSATZ EINFÜGEN |
// GGF. NEUEN DATENSATZ EINFÜGEN |