Exemple #1
0
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.groups.inc';
include_once 'ressources/class.artica.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.squid.inc';
include_once 'ressources/class.system.network.inc';
include_once 'ressources/class.ccurl.inc';
include_once 'ressources/class.ActiveDirectory.inc';
include_once 'ressources/class.system.nics.inc';
include_once 'ressources/class.resolv.conf.inc';
if (isset($_GET["status"])) {
    status_kerb();
    exit;
}
$user = new usersMenus();
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_POST["auth_param_ntlm_children"])) {
    ntlmauthenticators_save();
    exit;
}
if (isset($_GET["settings-ad"])) {
    settings_ad();
Exemple #2
0
	header("Cache-Control: no-cache, must-revalidate");
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.groups.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.ccurl.inc');
	include_once('ressources/class.ActiveDirectory.inc');
	include_once('ressources/class.system.nics.inc');
	include_once('ressources/class.resolv.conf.inc');
	
	
	if(isset($_GET["status"])){status_kerb();exit;}
	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	if(isset($_GET["cntml-status"])){cntlm_status();exit;}
	if(isset($_GET["ldap-params"])){ldap_params();exit;}
	if(isset($_GET["schedule-params"])){schedule_params();exit;}
	if(isset($_POST["AdSchBuildProxy"])){schedule_save();exit;}
	if(isset($_GET["testauth-results"])){test_auth_results();exit;}
	if(isset($_POST["EnableCNTLM"])){EnableCNTLM_save();exit;}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}