include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.main_cf.inc');
	include_once('ressources/class.mysql.inc');

	
	$users=new usersMenus();
	if(!$users->AsArticaAdministrator){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["params"])){main_params();exit;}
	if(isset($_GET["domains"])){main_domains();exit;}
	if(isset($_GET["officals-domains-list"])){main_domains_list();exit;}
	if(isset($_POST["officals-domains-add"])){main_domains_add();exit;}
	if(isset($_POST["officals-domains-del"])){main_domains_del();exit;}
	if(isset($_POST["AllowInternetUsersCreateOrg"])){main_params_save();exit;}
	
	if(isset($_GET["AllowInternetUsersCreateOrg-text"])){UsersCreateOrg_popup();exit;}
	if(isset($_POST["UsersCreateOrgWelComeText"])){UsersCreateOrg_save();exit;}
	
	
	if(isset($_GET["ou-sql-js"])){ou_sql_js();exit;}
	if(isset($_GET["ou-sql-popup"])){ou_sql_popup();exit;}
	
	
	
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.main_cf.inc';
include_once 'ressources/class.mysql.inc';
$users = new usersMenus();
if (!$users->AsArticaAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["params"])) {
    main_params();
    exit;
}
if (isset($_GET["domains"])) {
    main_domains();
    exit;
}
if (isset($_GET["officals-domains-list"])) {
    main_domains_list();
    exit;
}
if (isset($_POST["officals-domains-add"])) {
    main_domains_add();
    exit;
}
if (isset($_POST["officals-domains-del"])) {