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_citrix', 'cfg_sessions_storefront', 'cfg_sessions_rdesktop', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver', 'client_version'); |
$tabs = array('cfg_graphic', 'cfg_network', 'cfg_input', 'client_auth', 'cfg_fluxbox_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions_citrix', 'cfg_sessions_storefront', 'cfg_sessions_rdesktop', 'cfg_modules', 'cfg_fluxbox_menuitem', 'cfg_screensaver', 'client_version'); |
10 |
$multi= array( 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0); |
$multi= array( 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0); |
11 |
$data = array(); |
$data = array(); |
12 |
|
|
14 |
$alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$id); |
$alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$id); |
15 |
$alxos = $alxinfo[os]; |
$alxos = $alxinfo[os]; |
16 |
$alxutils = $alxinfo[utils]; |
$alxutils = $alxinfo[utils]; |
17 |
|
$alxarch = $alxinfo[arch]; |
18 |
|
|
19 |
// get gfxdriver |
// get gfxdriver |
20 |
$gfxinfo = sqlfirst('SELECT * FROM cfg_graphic WHERE serial='.$id); |
$gfxinfo = sqlfirst('SELECT * FROM cfg_graphic WHERE serial='.$id); |
37 |
// FELD-DEFINITIONEN (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID) |
// FELD-DEFINITIONEN (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID) |
38 |
$drop = array(); |
$drop = array(); |
39 |
$drop['cfg_graphic_module'] = sqlarr('SELECT value FROM values_graphic_module where enabled=1', '', 'value'); |
$drop['cfg_graphic_module'] = sqlarr('SELECT value FROM values_graphic_module where enabled=1', '', 'value'); |
40 |
if($gfxinfo[module] == 'intel') |
if($gfxinfo['module'] == 'intel') |
41 |
{ |
{ |
42 |
$drop['cfg_graphic_hdmi'] = array('disable', 'enable'); |
$drop['cfg_graphic_hdmi'] = array('disable', 'enable'); |
43 |
} |
} |
63 |
$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'); |
64 |
$drop['hostname'] = 'bold'; |
$drop['hostname'] = 'bold'; |
65 |
$drop['session'] = 'bold'; |
$drop['session'] = 'bold'; |
|
$drop['cfg_autostart_session'] = sqlarr('SELECT filename FROM cfg_sessions_citrix where serial='.$id, '', 'filename'); |
|
|
array_unshift($drop['cfg_autostart_session'], ""); |
|
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'; |
118 |
else if($what=='SESSION-CITRIX') sqladd('cfg_sessions_citrix', array('domain'=>$citrix_domain_name, 'serverlist'=>$citrix_serverlist, '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=='SESSION-RDP') sqladd('cfg_sessions_rdesktop', array('domain'=>$rdesktop_domain_name, 'server'=>$rdesktop_server, 'serial'=>$id)); |
else if($what=='SESSION-RDP') sqladd('cfg_sessions_rdesktop', array('domain'=>$rdesktop_domain_name, 'server'=>$rdesktop_server, 'serial'=>$id)); |
121 |
else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id)); |
else if($what=='MENUITEM') sqladd('cfg_fluxbox_menuitem', array('serial'=>$id)); |
122 |
else if($what=='AUTOSTART') sqladd('cfg_autostart', array('serial'=>$id)); |
else if($what=='AUTOSTART') sqladd('cfg_fluxbox_autostart', array('serial'=>$id)); |
123 |
} |
} |
124 |
|
|
125 |
|
|
351 |
{ |
{ |
352 |
if($retval==0) |
if($retval==0) |
353 |
{ |
{ |
|
// first try mcore, then get ssh |
|
354 |
$ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout); |
$ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout); |
355 |
if($ping_retval==0) |
if($ping_retval==0) |
356 |
{ |
{ |
401 |
echo '<br>'; |
echo '<br>'; |
402 |
echo '<u>OS:</u> '.$alxos.'<br>'; |
echo '<u>OS:</u> '.$alxos.'<br>'; |
403 |
echo '<u>Utils:</u> '.$alxutils.'<br>'; |
echo '<u>Utils:</u> '.$alxutils.'<br>'; |
404 |
|
echo '<u>Arch:</u> '.$alxarch.'<br>'; |
405 |
} |
} |
406 |
|
|
407 |
echo '</b></div>'; |
echo '</b></div>'; |
419 |
else |
else |
420 |
echo '<input class="but" type=button value="WAKE ON LAN" style="width:150px" onclick="if(confirm(\'WAKE CLIENT #'.$id.' ?\')) window.open(\'wake_on_lan.php?mac='.$data['client_serials']['mac'].'\', \'WakeWin\', \'width=200,height=100\')"><br>'; |
echo '<input class="but" type=button value="WAKE ON LAN" style="width:150px" onclick="if(confirm(\'WAKE CLIENT #'.$id.' ?\')) window.open(\'wake_on_lan.php?mac='.$data['client_serials']['mac'].'\', \'WakeWin\', \'width=200,height=100\')"><br>'; |
421 |
|
|
422 |
|
// print version info |
423 |
|
$version = file_get_contents('./VERSION', FILE_USE_INCLUDE_PATH); |
424 |
|
echo '<br><br><font size="1">v'.$version.'</font>'; |
425 |
|
|
426 |
echo '</td></tr></table>'; |
echo '</td></tr></table>'; |
427 |
echo '</form>'; |
echo '</form>'; |
428 |
?> |
?> |