| <?php |
| /******************************************************************************* |
| * Copyright (c) 2014 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christopher Guindon (Eclipse Foundation) - Initial implementation |
| * Edouard Poitras (Eclipse Foundation) - Some modifications |
| *******************************************************************************/ |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); |
| require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/classes/friends/friend.class.php"); |
| require_once("/home/data/httpd/eclipse-php-classes/system/ldapconnection.class.php"); |
| |
| $App = new App(); |
| $Friend = new Friend(); |
| $LDAP = new LDAPConnection(); |
| |
| $login = filter_var($_GET['login'], FILTER_SANITIZE_EMAIL); |
| $id = $LDAP->getUIDFromMail($login); |
| if ($id) echo "Verified!"; |
| else echo "Invalid Login"; |