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_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions_citrix', 'cfg_sessions_storefront', 'cfg_sessions_rdesktop', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver', 'cfg_scm_egk', '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, 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 |
{ |
{ |
23 |
foreach($tabs as $t) mysql_query('UPDATE '.$t.' SET serial=-serial 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); |
25 |
|
|
26 |
echo '<body onload="window.setTimeout(\'window.close()\', 1750)">'; |
echo '<body onload="window.setTimeout(\'window.close()\', 1750)">'; |
27 |
echo '<table width=100% height=100% style="border:solid black 1px; background-color:#d5e5ff"><tr><td valign=middle align=center>'; |
echo '<table width=100% height=100% style="border:solid black 1px; background-color:#d5e5ff"><tr><td valign=middle align=center>'; |
28 |
|
|
29 |
if($id<0) echo 'ACTIVATED #'.abs($id); |
if($method=='DEACTIVATE') echo 'DEACTIVATED #'.$id; |
30 |
else echo 'DEACTIVATED #'.$id; |
else echo 'ACTIVATED #'.$id; |
31 |
|
|
32 |
echo '</td></tr></table>'; |
echo '</td></tr></table>'; |
33 |
return true; |
return true; |
118 |
else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id)); |
else if($what=='MODULE') sqladd('cfg_modules', array('serial'=>$id)); |
119 |
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)); |
120 |
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)); |
121 |
|
else if($what=='SESSION-RDP') sqladd('cfg_sessions_rdesktop', array('domain'=>$rdesktop_domain_name, 'server'=>$rdesktop_server, 'serial'=>$id)); |
122 |
else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id)); |
else if($what=='MENUITEM') sqladd('cfg_other_menuitems', array('serial'=>$id)); |
123 |
else if($what=='AUTOSTART') sqladd('cfg_autostart', array('serial'=>$id)); |
else if($what=='AUTOSTART') sqladd('cfg_autostart', array('serial'=>$id)); |
124 |
} |
} |
383 |
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>'; |
384 |
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>'; |
385 |
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>'; |
386 |
|
echo '<input class="but" type=submit name="do_add" value="ADD SESSION-RDP" style="width:150px"><br>'; |
387 |
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>'; |
388 |
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>'; |
389 |
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>'; |
390 |
echo '<br>'; |
echo '<br>'; |
391 |
|
|
392 |
if($id>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE'; |
$clientstatus = sqlfirst('SELECT * FROM client_serials WHERE serial='.$id); |
393 |
echo '<input class="but" type=button value="'.$KILLCAP.'" style="width:150px" onclick="if(confirm(\''.$KILLCAP.' CLIENT #'.abs($id).' ?\')) { window.open(\'show.php?id='.$id.'&kill=1\', \'DeactWin\', \'width=200,height=100\'); location.href=\'index.php\'; }"><br>'; |
if($clientstatus['enabled']>0) $KILLCAP='DEACTIVATE'; else $KILLCAP='ACTIVATE'; |
394 |
|
echo '<input class="but" type=button value="'.$KILLCAP.'" style="width:150px" onclick="if(confirm(\''.$KILLCAP.' CLIENT #'.$id.' ?\')) { window.open(\'show.php?id='.$id.'&kill=1&method='.$KILLCAP.'\', \'DeactWin\', \'width=200,height=100\'); location.href=\'index.php\'; }"><br>'; |
395 |
echo '<input class="but" type=button value="IMPORT FROM..." style="width:150px" onclick="location.href=\'import.php?id='.$id.'\'"><br>'; |
echo '<input class="but" type=button value="IMPORT FROM..." style="width:150px" onclick="location.href=\'import.php?id='.$id.'\'"><br>'; |
396 |
echo '<input class="but" type=reset value="UNDO CHANGES" style="width:150px"><br><br>'; |
echo '<input class="but" type=reset value="UNDO CHANGES" style="width:150px"><br><br>'; |
397 |
|
|
411 |
echo '<u>Status:</u> <img src="pics/'.strtolower($state).'line.gif" align=top> '.$state.'line<br>'; |
echo '<u>Status:</u> <img src="pics/'.strtolower($state).'line.gif" align=top> '.$state.'line<br>'; |
412 |
if($state=='On') |
if($state=='On') |
413 |
{ |
{ |
414 |
echo '<u>IP:</u> '.$conn['ip'].'<br><br>'; |
echo '<u>IP:</u> '.$conn['ip'].'<br>'; |
415 |
|
if($conn['netboot'] == 1) echo '<u>Boot:</u> Netboot (PXE)<br>'; |
416 |
|
else echo '<u>Boot:</u> Local Disk<br>'; |
417 |
|
echo '<br>'; |
418 |
echo '<u>OS:</u> '.$alxos.'<br>'; |
echo '<u>OS:</u> '.$alxos.'<br>'; |
419 |
echo '<u>Utils:</u> '.$alxutils.'<br>'; |
echo '<u>Utils:</u> '.$alxutils.'<br>'; |
420 |
} |
} |