* * Licensed under the GNU GPL. For full terms see the file COPYING. * * A simple script to be used to check someone's preferences. * To be used like: ldap_checkprefs.php?uid=username * Not to be placed in public; remove the initial exit() and put it in a secure * place. * * $Id: ldap_checkprefs.php,v 1.1.1.1 2004/01/02 16:07:15 avel Exp $ * * @package plugins * @subpackage ldapuserdata */ exit(); define(SM_PATH, "../../"); include(SM_PATH . 'plugins/ldapuserdata/config.php'); include(SM_PATH . 'plugins/ldapuserdata/setup.php'); $ldap = ldapuserdata_ldap_connect('squirrel', false); $userprefs = retrieve_data($_GET['uid'], 'normal'); echo '
Key | Value |
'; echo htmlspecialchars($key); echo ' | '; echo '';
if(is_array($val)) {
foreach($val as $k=>$v) {
echo "".htmlspecialchars($k) . " => " .htmlspecialchars($v)." "; } } else { echo htmlspecialchars($val); } echo ' |