Example #1
0
	include_once('ressources/class.os.system.inc');		
	
	
	
	
	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;}
Example #2
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"])) {