Location: PHPKode > projects > BugIn and Ticketing System > bugin-0.65/inc/admin/pre/uaddldap.pre.inc.php
<?php
include_once("{$options['buginLibBase']}ldap.inc.php");
$error = 0;
if ( $options['ldapEnable']) {
	if (!isset($_REQUEST['get'])) {
		$email = stripslashes($_REQUEST['email']);
		if (!$info = ldapGetUserByEmail("{$email}*", 1)) {
			$message = "Could not find {$email} in database.";
			$error = 1;
		}
		else {
			if ($info['count'] == 1) {
				$_SESSION['uaddinfo'] = ldapGetUserByEmail($info[0]['mail'][0]);
				header("Location: {$options['baseURL']}{$options['formSubmitTo']}?area=admin&action=uadd");
			}
		}
	}
	else {
		$_SESSION['uaddinfo'] = ldapGetUserByEmail(stripslashes($_REQUEST['get']));
		header("Location: {$options['baseURL']}{$options['formSubmitTo']}?area=admin&action=uadd");
	}
}
else {
	echo "LDAP Not Enabled;  EOT";
	exit;
}
?>
Return current item: BugIn and Ticketing System