コード例 #1
0
ファイル: VMWareTools.php プロジェクト: BillTheBest/1.6.x
    ini_set('error_prepend_string', '');
    ini_set('error_append_string', '');
}
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
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"])) {
コード例 #2
0
ファイル: VMWareTools.php プロジェクト: brucewu16899/1.6.x
if(isset($_GET["VERBOSE"])){ini_set('html_errors',0);ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string','');ini_set('error_append_string','');}
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	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();