Esempio n. 1
0
if ($user->AsSystemAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["Net-to-Net"])) {
    NetToNet();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $html = "\t\n\tfunction IpsecIndexLoadpage(){\n\t\tdocument.getElementById('BodyContent').innerHTML='<center><img src=img/wait_verybig.gif></center>';\n\t\t\$('#BodyContent').load('{$page}?popup=yes');\n\t}\n\tIpsecIndexLoadpage();\n\t\n\t\n\t\n\t\n";
    echo $html;
}
function status()
{
    echo "<H1>In progress...</H1>";
}
function popup()
{
Esempio n. 2
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.user.inc');

	$user=new usersMenus();
	if($user->AsSystemAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["Net-to-Net"])){NetToNet();exit;}
	
	
	
js();	

function js(){
	$page=CurrentPageName();
	
$html="	
	function IpsecIndexLoadpage(){
		document.getElementById('BodyContent').innerHTML='<center><img src=img/wait_verybig.gif></center>';
		$('#BodyContent').load('$page?popup=yes');
	}
	IpsecIndexLoadpage();