Пример #1
0
	if(posix_getuid()==0){die();}
	
	$user=new usersMenus();
	if($user->AsVirtualBoxManager==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["machines"])){machines_section();exit;}
	if(isset($_GET["virtualbox-machines-list"])){machines_list();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["virtual-box-status"])){status_service();exit;}
	if(isset($_GET["thinclient"])){thinclient_popup();exit;}
	if(isset($_GET["thinclients-rebuild"])){thinclient_rebuild();exit;}
	
	if(isset($_GET["addthinclient"])){add_thinclient();exit;}
	if(isset($_GET["thinclient-list"])){thinclient_list();exit;}
	if(isset($_GET["delthinclient"])){del_thinclient();exit;}
	if(isset($_GET["STOP_VBOX"])){STOP_VBOX();exit;}
	if(isset($_GET["SATRT_VBOX"])){START_VBOX();exit;}
	if(isset($_GET["SNAP_VBOX"])){SNAP_VBOX();exit;}
	if(isset($_GET["tftp-infos"])){TFTP_INFOS();exit;}
	if(isset($_GET["dhcp-howto-js"])){DHCPD_HOWTO_JS();exit;}
	if(isset($_GET["dhcp-howto"])){DHCPD_HOWTO();exit;}
	if(isset($_GET["thinclient_compile_logs"])){thinclient_events();exit;}
	if(isset($_GET["thinclient_events_popup"])){thinclient_events_popup();exit;}
	if(isset($_GET["ShowThinClientLogsDetails"])){thinclient_events_details();exit;}
	if(isset($_GET["ShowThinClientLogsDetailsPopup"])){thinclient_events_details_id();exit;}
	
Пример #2
0
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["virtual-box-status"])) {
    status_service();
    exit;
}
if (isset($_GET["thinclient"])) {
    thinclient_popup();
    exit;
}
if (isset($_GET["thinclients-rebuild"])) {
    thinclient_rebuild();
    exit;
}
if (isset($_GET["addthinclient"])) {
    add_thinclient();
    exit;
}
if (isset($_GET["thinclient-list"])) {
    thinclient_list();
    exit;
}
if (isset($_GET["delthinclient"])) {
    del_thinclient();
    exit;
}
if (isset($_GET["STOP_VBOX"])) {