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_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_menuitems', 'cfg_screensaver', 'client_version'); |
10 |
$multi= array( 0, 0, 0, 0, 1, 0, 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 |
|
|
13 |
// get alx version info for |
// get alx version info for |
20 |
|
|
21 |
if($kill==1) |
if($kill==1) |
22 |
{ |
{ |
|
//foreach($tabs as $t) mysql_query('UPDATE '.$t.' SET serial=-serial WHERE serial='.$id); |
|
23 |
if($method=='DEACTIVATE') mysql_query('UPDATE client_serials SET enabled="0" WHERE serial='.$id); |
if($method=='DEACTIVATE') mysql_query('UPDATE client_serials SET enabled="0" WHERE serial='.$id); |
24 |
else mysql_query('UPDATE client_serials SET enabled="1" WHERE serial='.$id); |
else mysql_query('UPDATE client_serials SET enabled="1" WHERE serial='.$id); |
25 |
|
|
36 |
// FELD-DEFINITIONEN (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID) |
// FELD-DEFINITIONEN (ARRAY=>DROPDOWN / HIDDEN / IGNORE / 1 / BOLD / PASSWORD / SHOW / SHOWTIME / MONITORID) |
37 |
$drop = array(); |
$drop = array(); |
38 |
$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'); |
39 |
if($gfxinfo[module] == 'intel') |
if($gfxinfo['module'] == 'intel') |
40 |
{ |
{ |
41 |
$drop['cfg_graphic_hdmi'] = array('disable', 'enable'); |
$drop['cfg_graphic_hdmi'] = array('disable', 'enable'); |
42 |
} |
} |
62 |
$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'); |
63 |
$drop['hostname'] = 'bold'; |
$drop['hostname'] = 'bold'; |
64 |
$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'], ""); |
|
65 |
$drop['mtime'] = 'showtime'; |
$drop['mtime'] = 'showtime'; |
66 |
$drop['mac'] = 'show'; |
$drop['mac'] = 'show'; |
67 |
$drop['client_serials_serial'] = 'show'; |
$drop['client_serials_serial'] = 'show'; |
80 |
$drop['hwdetected'] = 'ignore'; |
$drop['hwdetected'] = 'ignore'; |
81 |
|
|
82 |
// ACHTUNG!!! wlan_-Felder heißen eigentlich wireless_ |
// ACHTUNG!!! wlan_-Felder heißen eigentlich wireless_ |
83 |
$drop['wireless_mode'] = array('', 'managed', 'ad-hoc', 'master', 'repeater', 'secondary', 'monitor', 'auto'); |
$drop['wireless_mode'] = sqlarr('SELECT value FROM values_network_wireless_mode where enabled=1', '', 'value'); |
84 |
$drop['wireless_auth_mode'] = array('', 'wep', 'wpa', 'wpa2', 'off'); |
$drop['wireless_auth_mode'] = sqlarr('SELECT value FROM values_network_wireless_auth_mode where enabled=1', '', 'value'); |
85 |
$drop['wireless_key_length'] = array('', '64', '128', '256'); |
$drop['wireless_bitrate'] = sqlarr('SELECT value FROM values_network_wireless_bitrate where enabled=1', '', 'value'); |
86 |
$drop['wireless_channel'] = array('', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14'); |
$drop['wireless_key_length'] = sqlarr('SELECT value FROM values_network_wireless_key_length where enabled=1', '', 'value'); |
87 |
$drop['wireless_frequency'] = array('', '2.412G', '2.417G', '2.422G', '2.427G', '2.432G', '2.437G', '2.442G', |
$drop['wireless_channel'] = sqlarr('SELECT value FROM values_network_wireless_channel where enabled=1', '', 'value'); |
88 |
'2.447G', '2.452G', '2.457G', '2.462G', '2.467G', '2.472G', '2.484G'); |
$drop['wireless_frequency'] = sqlarr('SELECT value FROM values_network_wireless_frequency where enabled=1', '', 'value'); |
89 |
$drop['wireless_key'] = 'password'; |
$drop['wireless_key'] = 'password'; |
90 |
$drop['wireless_key_ascii'] = 'password'; |
$drop['wireless_key_ascii'] = 'password'; |
91 |
|
|
116 |
else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id)); |
else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id)); |
117 |
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)); |
118 |
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)); |
119 |
else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id)); |
else if($what=='SESSION-RDP') sqladd('cfg_sessions_rdesktop', array('domain'=>$rdesktop_domain_name, 'server'=>$rdesktop_server, 'serial'=>$id)); |
120 |
else if($what=='AUTOSTART') sqladd('cfg_autostart', array('serial'=>$id)); |
else if($what=='MENUITEM') sqladd('cfg_fluxbox_menuitems', array('serial'=>$id)); |
121 |
|
else if($what=='AUTOSTART') sqladd('cfg_fluxbox_autostart', array('serial'=>$id)); |
122 |
} |
} |
123 |
|
|
124 |
|
|
219 |
$k2 = $k; |
$k2 = $k; |
220 |
|
|
221 |
# tell something about vesa |
# tell something about vesa |
222 |
if ($v == 'vesa') echo '<br><font color="#FF0000">Warning: "vesa" graphic module doesn\'t support any resolutions higher than 1024x786x16@60hz!</font><br>'; |
// if ($v == 'vesa') echo '<br><font color="#FF0000">Warning: "vesa" graphic module doesn\'t support any resolutions higher than 1024x786x16@60hz!</font><br>'; |
223 |
|
|
224 |
if(is_array($d)) |
if(is_array($d)) |
225 |
{ |
{ |
272 |
$.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); }}); |
273 |
} |
} |
274 |
|
|
|
/* ignore this atm, not always working, sometime open does not work |
|
|
function openclose(nummer, act) |
|
|
{ |
|
|
var bild = document.images['sch_bild_'+nummer]; |
|
|
var absatz = document.all['sch_absatz_'+nummer].style; |
|
|
var senden = false; |
|
|
|
|
|
$("#sch_absatz_"+nummer).toggle(0, function(){ |
|
|
if($(this).css("display")=="none"){$("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'});}else{$("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.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'}); }; |
|
|
} |
|
|
*/ |
|
275 |
function openclose(nummer, act) |
function openclose(nummer, act) |
276 |
{ |
{ |
277 |
var bild = document.images['sch_bild_'+nummer]; |
var bild = document.images['sch_bild_'+nummer]; |
350 |
{ |
{ |
351 |
if($retval==0) |
if($retval==0) |
352 |
{ |
{ |
|
// first try mcore, then get ssh |
|
353 |
$ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout); |
$ping_retval = ping_host($conn['ip'],$mcore_port,$ping_timeout); |
|
if($ping_retval==1) $ping_retval = ping_host($dat['ip'],$ssh_port,$ping_timeout); |
|
354 |
if($ping_retval==0) |
if($ping_retval==0) |
355 |
{ |
{ |
356 |
$state = 'On'; |
$state = 'On'; |
366 |
echo '<input class="but" type=submit name="do_add" value="ADD PRINTER" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD PRINTER" style="width:150px"><br>'; |
367 |
echo '<input class="but" type=submit name="do_add" value="ADD SESSION-CITRIX" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD SESSION-CITRIX" style="width:150px"><br>'; |
368 |
echo '<input class="but" type=submit name="do_add" value="ADD SESSION-STOREFRONT" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD SESSION-STOREFRONT" style="width:150px"><br>'; |
369 |
|
echo '<input class="but" type=submit name="do_add" value="ADD SESSION-RDP" style="width:150px"><br>'; |
370 |
echo '<input class="but" type=submit name="do_add" value="ADD MODULE" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD MODULE" style="width:150px"><br>'; |
371 |
echo '<input class="but" type=submit name="do_add" value="ADD MENUITEM" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD MENUITEM" style="width:150px"><br>'; |
372 |
echo '<input class="but" type=submit name="do_add" value="ADD AUTOSTART" style="width:150px"><br>'; |
echo '<input class="but" type=submit name="do_add" value="ADD AUTOSTART" style="width:150px"><br>'; |
410 |
echo '<input class="but" type=button value="SHUTDOWN" style="width:150px" onclick="if(confirm(\'SHUTDOWN CLIENT #'.$id.' ?\')) window.open(\'reboot.php?client='.$id.'&ip='.$conn['ip'].'&op=shutdown\', \'ShutdownWin\', \'width=200,height=100\')"><br>'; |
echo '<input class="but" type=button value="SHUTDOWN" style="width:150px" onclick="if(confirm(\'SHUTDOWN CLIENT #'.$id.' ?\')) window.open(\'reboot.php?client='.$id.'&ip='.$conn['ip'].'&op=shutdown\', \'ShutdownWin\', \'width=200,height=100\')"><br>'; |
411 |
echo '<br>'; |
echo '<br>'; |
412 |
echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>'; |
echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>'; |
|
// echo 'Hardware Detection:</b></div>'; |
|
|
// echo '<input class="but" type=button value="LAN" style="width:50px" onclick="javascript:urlopen(\'include/hwinfo.php?ip='.$conn['ip'].'&cmd=lan\',\'POST\');">'; |
|
|
// echo '<input class="but" type=button value="WLAN" style="width:50px" onclick="javascript:urlopen(\'include/hwinfo.php?ip='.$conn['ip'].'&cmd=wlan\',\'POST\');">'; |
|
|
// echo '<input class="but" type=button value="VGA" style="width:50px" onclick="javascript:urlopen(\'include/hwinfo.php?ip='.$conn['ip'].'&cmd=vga\',\'POST\');">'; |
|
|
// echo '<br>'; |
|
|
// echo '<input class="but" type=button value="PRN" style="width:50px" onclick="javascript:urlopen(\'include/hwinfo.php?ip='.$conn['ip'].'&cmd=printer\',\'POST\');">'; |
|
|
// echo '<input class="but" type=button value="HRDW" style="width:50px" onclick="javascript:urlopen(\'include/hwinfo.php?ip='.$conn['ip'].'&cmd=system\',\'POST\');">'; |
|
|
// echo '<input class="but" type=button value="FS" style="width:50px" onclick="javascript:urlopen(\'include/hwinfo.php?ip='.$conn['ip'].'&cmd=rootfs\',\'POST\');">'; |
|
|
// echo '<br><br>'; |
|
|
// echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>'; |
|
413 |
echo 'Remote Shadow:</b></div>'; |
echo 'Remote Shadow:</b></div>'; |
414 |
echo '<input class="but" type=button value="VNC" style="width:75px" onclick="window.open(\'vncviewer.php?ip='.$conn['ip'].'\', \'VncViewer\', \'width=200,height=100\')">'; |
echo '<input class="but" type=button value="VNC" style="width:75px" onclick="window.open(\'vncviewer.php?ip='.$conn['ip'].'\', \'VncViewer\', \'width=200,height=100\')">'; |
415 |
echo '<input class="but" type=button value="SSH" style="width:75px" onclick="window.open(\'mindterm.php?ip='.$conn['ip'].'\', \'MindTerm\', \'width=200,height=100\')">'; |
echo '<input class="but" type=button value="SSH" style="width:75px" onclick="window.open(\'mindterm.php?ip='.$conn['ip'].'\', \'MindTerm\', \'width=200,height=100\')">'; |
|
// echo '<br><br>'; |
|
|
// echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>'; |
|
|
// echo 'Client Update:</b></div>'; |
|
|
// echo '<input class="but" type=button value="UPDATE MAGE DB" style="width:150px" onclick="if(confirm(\'UPDATE DB ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=update\', \'ShutdownWin\', \'width=800,height=600\')"><br>'; |
|
|
// echo '<input class="but" type=button value="CALC DEPS" style="width:150px" onclick="if(confirm(\'CALC DEPS FOR CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=calc\', \'ShutdownWin\', \'width=800,height=600\')"><br>'; |
|
|
// echo '<input class="but" type=button value="UPGRADE CLIENT" style="width:150px" onclick="if(confirm(\'UPGRADE ALL PACKAGES ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=upgrade\', \'ShutdownWin\', \'width=800,height=600\');setTimeout(\'window.location.reload()\',0);"><br>'; |
|
416 |
} |
} |
417 |
else |
else |
418 |
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>'; |
419 |
|
|
420 |
// echo '<br><center><a href="share/ChangeLog.html" target="_blank">[ChangeLog]</a> <a href="share/FAQ.html" target="_blank">[FAQs]</a></center>'; |
// print version info |
421 |
|
$version = file_get_contents('./VERSION', FILE_USE_INCLUDE_PATH); |
422 |
|
echo '<br><br><font size="1">v'.$version.'</font>'; |
423 |
|
|
424 |
echo '</td></tr></table>'; |
echo '</td></tr></table>'; |
425 |
echo '</form>'; |
echo '</form>'; |