예제 #1
0
<?php

session_start();
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.dhcpd.inc';
$usersmenus = new usersMenus();
if (!$usersmenus->AsPostfixAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text('{ERROR_NO_PRIVS}') . "');";
    die;
}
if (isset($_GET["ip"])) {
    popup_add();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["list"])) {
    echo popup_list();
    exit;
}
if (isset($_GET["delip"])) {
    popup_delete();
    exit;
}
js();
function js()
{
예제 #2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.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["add-form"])){popup_add();exit;}
	if(isset($_GET["ip_addr"])){popup_save();exit;}
	if(isset($_GET["refresh"])){echo getlist();exit;}
	if(isset($_GET["del"])){popup_delete();exit;}
	if(isset($_GET["add-etc-hosts-p"])){Paragraphe_add();exit;}
	if(isset($_GET["DisableEtcHosts"])){DisableEtcHosts_save();exit;}
	js();
	
	
function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{etc_hosts}");
	$title2=$tpl->_ENGINE_parse_body("{add_new_entry}");
	$html="
	
	function etc_host_show(){
			YahooWin3(740,'$page?popup=yes','$title');
예제 #3
0
<?php
session_start();
include_once('ressources/class.templates.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.dhcpd.inc');

		$usersmenus=new usersMenus();
		if(!$usersmenus->AsPostfixAdministrator){
			$tpl=new templates();
			echo "alert('".$tpl->javascript_parse_text('{ERROR_NO_PRIVS}')."');";
			die();
		}
		if(isset($_GET["ip"])){popup_add();exit;}
		if(isset($_GET["popup"])){popup();exit;}
		if(isset($_GET["list"])){echo popup_list();exit;}
		if(isset($_GET["delip"])){popup_delete();exit;}
js();


function js(){
	
	$page=CurrentPageName();
	$prefix=str_replace('.','_',$page);
	$prefix=str_replace('-','',$prefix);
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{APP_DHCP_ROUTES_CONF}');
	
	
$html="
	var {$prefix}timeout=0;
	var {$prefix}timerID  = null;
예제 #4
0
	//if(count($_POST)>0)
	$usersmenus=new usersMenus();
	if(!$usersmenus->AllowAddUsers){
		writelogs("Wrong account : no AllowAddUsers privileges",__FUNCTION__,__FILE__);
		if(isset($_GET["js"])){
			$tpl=new templates();
			$error="{ERROR_NO_PRIVS}";
			echo $tpl->_ENGINE_parse_body("alert('$error')");
			die();
		}
		header("location:domains.manage.org.index.php?ou={$_GET["ou"]}");
		}
		
		if(isset($_GET["popup"])){popup();exit;}
		if(isset($_GET["list"])){popup_list();exit;}
		if(isset($_GET["add_already_member_add"])){popup_add();exit;}
		js();
		
function js(){
	$ou_decoded=base64_decode($_GET["ou"]);
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{add_already_member}");
	$members=$tpl->_ENGINE_parse_body("{members}");
	$page=CurrentPageName();
	$html="
		function add_already_member_load(){
			YahooWin2('550','$page?popup=yes&ou={$_GET["ou"]}&gpid={$_GET["gpid"]}','$title');
		
		}
	
예제 #5
0
function switch_popup()
{
    $users = new usersMenus();
    if ($users->AsArticaAdministrator == true or $users->AsPostfixAdministrator or $user->AsSquidAdministrator) {
    } else {
        exit;
    }
    switch ($_GET["popup"]) {
        case "yes":
            popup_start();
            break;
        case "add":
            popup_add();
            break;
        default:
            break;
    }
}