6 |
// INCLUDE CURRENT-PROBLEMS |
// INCLUDE CURRENT-PROBLEMS |
7 |
include('include/current-problems.php'); |
include('include/current-problems.php'); |
8 |
|
|
9 |
$tabs = array('cfg_graphic', 'cfg_network', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver', 'client_version'); |
$tabs = array('cfg_graphic', 'cfg_network', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions_citrix', 'cfg_sessions_storefront', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver', 'client_version'); |
10 |
$multi= array( 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0); |
$multi= array( 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0); |
11 |
$data = array(); |
$data = array(); |
12 |
|
|
13 |
// get alx version info for |
// get alx version info for |
61 |
$drop['refresh_rate'] = sqlarr('SELECT value FROM values_graphic_refresh_rate where enabled=1', '', 'value'); |
$drop['refresh_rate'] = sqlarr('SELECT value FROM values_graphic_refresh_rate where enabled=1', '', 'value'); |
62 |
$drop['hostname'] = 'bold'; |
$drop['hostname'] = 'bold'; |
63 |
$drop['session'] = 'bold'; |
$drop['session'] = 'bold'; |
64 |
$drop['cfg_autostart_session'] = sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, '', 'filename'); |
$drop['cfg_autostart_session'] = sqlarr('SELECT filename FROM cfg_sessions_citrix where serial='.$id, '', 'filename'); |
65 |
array_unshift($drop['cfg_autostart_session'], ""); |
array_unshift($drop['cfg_autostart_session'], ""); |
66 |
$drop['mtime'] = 'showtime'; |
$drop['mtime'] = 'showtime'; |
67 |
$drop['mac'] = 'show'; |
$drop['mac'] = 'show'; |
90 |
$drop['wireless_key'] = 'password'; |
$drop['wireless_key'] = 'password'; |
91 |
$drop['wireless_key_ascii'] = 'password'; |
$drop['wireless_key_ascii'] = 'password'; |
92 |
|
|
93 |
// get current citrix sessions |
// get current citrix apps |
94 |
// split all citrix server into an array to get the first server from list |
$citrix_apps = sqlarr('SELECT session FROM values_citrix_session where enabled=1', '', 'session'); |
95 |
$citrix_query_browser = split(";", $citrix_browseradrs); |
// add an empty value add the first position of the array as session-default |
96 |
exec($wwwroot.'/pnabrowse-wrapper -A '.$citrix_query_browser[0], $returned_citrix_sessions, $retval); |
array_unshift($citrix_apps, ""); |
97 |
if ($retval == 0) |
// hackish, fix me |
98 |
{ |
for ($i=0; $i<999; $i++) { $drop['cfg_sessions_citrix_'.$i.'_session'] = $citrix_apps; } |
99 |
$citrix_public_applications = str_replace("'", "", $returned_citrix_sessions); |
|
100 |
// add an empty value add the first position of the array as session-default |
// get current storefront apps |
101 |
array_unshift($citrix_public_applications, ""); |
$storefront_apps = sqlarr('SELECT session FROM values_storefront_session where enabled=1', '', 'session'); |
102 |
for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; } |
// add an empty value add the first position of the array as session-default |
103 |
} |
array_unshift($storefront_apps, ""); |
104 |
|
// hackish, fix me |
105 |
|
for ($i=0; $i<999; $i++) { $drop['cfg_sessions_storefront_'.$i.'_session'] = $storefront_apps; } |
106 |
|
|
107 |
// GGF. NEUEN DATENSATZ EINFÜGEN |
// GGF. NEUEN DATENSATZ EINFÜGEN |
108 |
if(isset($_POST['do_add'])) |
if(isset($_POST['do_add'])) |
111 |
if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id)); |
if($what=='COMMENT') sqladd('cfg_comments', array('serial'=>$id)); |
112 |
else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id)); |
else if($what=='PRINTER') sqladd('cfg_printers', array('serial'=>$id)); |
113 |
else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id)); |
else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id)); |
114 |
else if($what=='SESSION') sqladd('cfg_sessions', array('domain'=>$citrix_domain_name, 'browseradrs'=>$citrix_browseradrs, 'serial'=>$id)); |
else if($what=='SESSION-CITRIX') sqladd('cfg_sessions_citrix', array('domain'=>$citrix_domain_name, 'browseradrs'=>$citrix_browseradrs, 'serial'=>$id)); |
115 |
|
else if($what=='SESSION-STOREFRONT') sqladd('cfg_sessions_storefront', array('domain'=>$storefront_domain_name, 'store'=>$storefront_store, 'serial'=>$id)); |
116 |
else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id)); |
else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id)); |
117 |
|
else if($what=='AUTOSTART') sqladd('cfg_autostart', array('serial'=>$id)); |
118 |
} |
} |
119 |
|
|
120 |
|
|
358 |
$state = 'Off'; |
$state = 'Off'; |
359 |
if(count($conn)>0) |
if(count($conn)>0) |
360 |
{ |
{ |
361 |
if($retval==0) $state = 'On'; |
if($retval==0) |
362 |
|
{ |
363 |
|
// first try mcore, then get ssh |
364 |
|
$ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout); |
365 |
|
if($ping_retval==1) $ping_retval = ping_host($dat['ip'],$ssh_port,$ping_timeout); |
366 |
|
if($ping_retval==0) |
367 |
|
{ |
368 |
|
$state = 'On'; |
369 |
|
} |
370 |
|
} |
371 |
} |
} |
372 |
|
|
373 |
echo '<img src="pics/logo2.jpg"><br><br>'; |
echo '<img src="pics/logo2.jpg"><br><br>'; |
374 |
|
|
375 |
echo '<input class="but" type=submit value="SAVE" style="width:150px"><br><br>'; |
echo '<input class="but" type=submit value="SAVE" style="width:150px"><br><br>'; |
376 |
|
|
377 |
echo '<input class="but" type=submit name="do_add" value="SAVE+ADD COMMENT" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD COMMENT" style="width:150px"><br>'; |
378 |
echo '<input class="but" type=submit name="do_add" value="SAVE+ADD PRINTER" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD PRINTER" style="width:150px"><br>'; |
379 |
echo '<input class="but" type=submit name="do_add" value="SAVE+ADD SESSION" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD SESSION-CITRIX" style="width:150px"><br>'; |
380 |
echo '<input class="but" type=submit name="do_add" value="SAVE+ADD MODULE" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD SESSION-STOREFRONT" style="width:150px"><br>'; |
381 |
echo '<input class="but" type=submit name="do_add" value="SAVE+ADD MENUITEM" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD MODULE" style="width:150px"><br>'; |
382 |
|
echo '<input class="but" type=submit name="do_add" value="ADD MENUITEM" style="width:150px"><br>'; |
383 |
|
echo '<input class="but" type=submit name="do_add" value="ADD AUTOSTART" style="width:150px"><br>'; |
384 |
echo '<br>'; |
echo '<br>'; |
385 |
|
|
386 |
if($id>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE'; |
if($id>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE'; |