exit;
}
if (isset($_GET["connexion"])) {
    connexion_form();
    exit;
}
if (isset($_POST["connection_name"])) {
    connection_save();
    exit;
}
if (isset($_POST["DeleteID"])) {
    connection_delete();
    exit;
}
if (isset($_GET["connection-status"])) {
    connection_ldap_status();
    exit;
}
if (isset($_POST["ExecuteConnection"])) {
    ExecuteConnection();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{$_GET["ou"]}:{ldap_importation}");
    $ou = urlencode($_GET["ou"]);
    $html = "YahooWin3('650','{$page}?popup=yes&ou={$ou}','{$title}')";
    echo $html;
Example #2
0
	include_once('ressources/class.ldap.ou.inc');

	
	if(!VerifyRights()){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["connexions-list"])){connexions_list();exit;}
	if(isset($_GET["connexion"])){connexion_form();exit;}
	if(isset($_POST["connection_name"])){connection_save();exit;}
	if(isset($_POST["DeleteID"])){connection_delete();exit;}
	if(isset($_GET["connection-status"])){connection_ldap_status();exit;}
	if(isset($_POST["ExecuteConnection"])){ExecuteConnection();exit;}
	
	js();
	
	
	
function js(){
	
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{$_GET["ou"]}:{ldap_importation}");
	$ou=urlencode($_GET["ou"]);
	$html="YahooWin3('650','$page?popup=yes&ou=$ou','$title')";
	echo $html;