"; echo ""; echo ""; echo ""; echo ""; // generate attribute-description table $attr_array; // list of LDAP attributes to show $desc_array; // list of descriptions for the attributes $attr_string = $_SESSION["config"]->get_userlistAttributes(); $temp_array = explode(";", $attr_string); $hash_table = $_SESSION["ldap"]->attributeUserArray(); for ($i = 0; $i < sizeof($temp_array); $i++) { // if value is predifined, look up description in hash_table if (substr($temp_array[$i],0,1) == "#") { $attr = substr($temp_array[$i],1); $attr_array[$i] = $attr; $desc_array[] = $hash_table[$attr]; } // if not predefined, the attribute is seperated by a ":" from description else { $attr = explode(":", $temp_array[$i]); $attr_array[$i] = $attr[0]; $desc_array[$i] = $attr[1]; } } $user_dn_list = $_SESSION["ldap"]->getUsers ($_SESSION["config"]->get_UserSuffix()); echo ("
\n"); echo "\n"; // print attribute headers echo ""; echo ""; for ($k = 0; $k < sizeof($desc_array); $k++) { echo ""; } echo ""; $row_number = 0; foreach ($user_dn_list as $user_dn) { echo "\n"; $row_number++; $userentry = new UserEntry(); $userentry = $_SESSION["ldap"]->getEntry ($user_dn, $userentry); // $ldap->getEntry ($user_dn, $userentry); echo (""); echo (""); echo (""); echo (""); echo "\n"; } echo "
" . $desc_array[$k] . "
" . ""); echo ("getUid()) . "\">" . current ($userentry->getUid()) . "" . current ($userentry->getCn()) . "" . current ($userentry->getSn()) . "" . current ($userentry->gethomeDirectory()) . "
"; echo ("
"); echo (""); echo ("\n"); echo (""); echo ("
"); echo (""); echo (""); echo ("
\n"); echo ("
\n"); echo ""; echo ""; ?>