Esempio n. 1
0
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;
}
popup();
function js_start()
{
    $page = CurrentPageName();
    echo "AnimateDiv('BodyContent');LoadAjax('BodyContent','{$page}?popup=yes');";
function popup(){
	$users=new usersMenus();
	if(!$users->deduplication_installed){popup_install();return;}
	
	$page=CurrentPageName();
	$users=new usersMenus();
	$tpl=new templates();
	$array["index"]='{index}';
	$array["settings"]="{parameters}";
	$array["folders"]="{folders}";
	$array["replication"]="{replication}";
	
	
	while (list ($num, $ligne) = each ($array) ){
		$tab[]="<li><a href=\"$page?$num=yes&hostname={$_GET["hostname"]}&ou={$_GET["ou"]}\"><span>$ligne</span></a></li>\n";
			
	}

	$html="
		<div id='main_lessfs_config' style='background-color:white'>
		<ul>
		". implode("\n",$tab). "
		</ul>
	</div>
		<script>
				$(document).ready(function(){
					$('#main_lessfs_config').tabs();
				});
		</script>
	
	";
		
	
	echo $tpl->_ENGINE_parse_body($html);	
	
	
}
Esempio n. 3
0
	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();
	$tpl=new templates();
	$INSTALL_VMWARE_TOOLS=$tpl->_ENGINE_parse_body("{INSTALL_VMWARE_TOOLS}");