--- alx-src/branches/alx-web-060/show.php 2011/07/07 20:15:52 2639
+++ alx-src/branches/alx-web-060/show.php 2011/07/11 08:39:05 2640
@@ -123,18 +123,21 @@
$drop['wireless_key_ascii'] = 'password';
// get current citrix sessions
-// split all citrix server into an array to get the first server from list
-$citrix_query_browser = split(";", $citrix_browseradrs);
-exec($wwwroot.'/pnabrowse-wrapper -A '.$citrix_query_browser[0], $returned_citrix_sessions, $retval);
-if ($retval == 0)
+if($alxos>='0.6.0')
{
- $citrix_public_applications = str_replace("'", "", $returned_citrix_sessions);
- // add an empty value add the first position of the array as session-default
- array_unshift($citrix_public_applications, "");
- for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; }
+ // split all citrix server into an array to get the first server from list
+ $citrix_query_browser = split(";", $citrix_browseradrs);
+ exec($wwwroot.'/pnabrowse-wrapper -A '.$citrix_query_browser[0], $returned_citrix_sessions, $retval);
+ if ($retval == 0)
+ {
+ $citrix_public_applications = str_replace("'", "", $returned_citrix_sessions);
+ // add an empty value add the first position of the array as session-default
+ array_unshift($citrix_public_applications, "");
+ for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; }
+ }
+ else if($retval = 126) echo "pnabrowser-wrapper has no execute permission! please run chmod +x on ".$wwwroot."/pnabrowser-wrapper.";
+ else echo "pnabrowse-wrapper does not run successfully! retval->'".$retval."'
";
}
-else if($retval = 126) echo "pnabrowser-wrapper has no execute permission! please run chmod +x on ".$wwwroot."/pnabrowser-wrapper.";
-else echo "pnabrowse-wrapper does not run successfully! retval->'".$retval."'
";
// GGF. NEUEN DATENSATZ EINFÜGEN
if(isset($_POST['do_add']))