Example #1
0
    die;
}
if (isset($_GET["vmware-status"])) {
    vmware_status();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["vmware-install"])) {
    popup_install();
    exit;
}
if (isset($_GET["vmware-install-perfom"])) {
    popup_install_perform();
    exit;
}
if (isset($_GET["vmware-install-logs"])) {
    popup_install_logs();
    exit;
}
popup();
function js_start()
{
    $page = CurrentPageName();
    echo "AnimateDiv('BodyContent');LoadAjax('BodyContent','{$page}?popup=yes');";
}
function popup()
{
    $page = CurrentPageName();
Example #2
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.mysql.syslog.inc');

	
$usersmenus=new usersMenus();
if(!$usersmenus->AsSystemAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}

if(isset($_GET["vmware-status"])){vmware_status();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["vmware-install"])){popup_install();exit;}
if(isset($_GET["vmware-install-perfom"])){popup_install_perform();exit;}
if(isset($_GET["vmware-install-logs"])){popup_install_logs();exit;}
js_start();


function js_start(){
	$page=CurrentPageName();
	echo "AnimateDiv('BodyContent');LoadAjax('BodyContent','$page?popup=yes');";
}


function popup(){
	$page=CurrentPageName();
	$tpl=new templates();
	$INSTALL_VMWARE_TOOLS=$tpl->_ENGINE_parse_body("{INSTALL_VMWARE_TOOLS}");
	$html="