<?php
	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');
	$usersmenus=new usersMenus();
	if(!$usersmenus->AsArticaAdministrator){
			$tpl=new templates();
			echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
			die();
		}
	
		

	if(isset($_GET["popup"])){popup();exit;}	
	if(isset($_GET["install-status"])){popup_install_status();exit;}
	
	if(isset($_GET["index"])){index();exit;}
	if(isset($_GET["settings"])){settings();exit;}
	if(isset($_GET["REPLICATION"])){saveconfig();exit;}
	if(isset($_GET["MAIN_PATH"])){saveconfig();exit;}
	if(isset($_GET["folders"])){folders();exit;}
	if(isset($_GET["folders-add"])){folders_add();exit;}
	if(isset($_GET["folders-list"])){folders_list();exit;}
	if(isset($_GET["folders-delete"])){folders_delete();exit;}
	if(isset($_GET["tree-path"])){tree_js();exit;}
	
	if(isset($_GET["replication"])){replication();exit;}
	
	if(isset($_GET["restart"])){restart_js();exit;}
	if(isset($_GET["restart-popup"])){restart_popup();exit;}
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';
$usersmenus = new usersMenus();
if (!$usersmenus->AsArticaAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["install-status"])) {
    popup_install_status();
    exit;
}
if (isset($_GET["index"])) {
    index();
    exit;
}
if (isset($_GET["settings"])) {
    settings();
    exit;
}
if (isset($_GET["REPLICATION"])) {
    saveconfig();
    exit;
}
if (isset($_GET["MAIN_PATH"])) {