From 3c67b6579161c490028b6f45a5da6e520fe8431e Mon Sep 17 00:00:00 2001 From: dechutes Date: Wed, 23 Apr 2003 21:44:11 +0000 Subject: [PATCH] moved userlist.php and userentry.inc --- lam/lib/listusers.php | 110 ------------------------------------------ lam/lib/userentry.php | 79 ------------------------------ 2 files changed, 189 deletions(-) delete mode 100644 lam/lib/listusers.php delete mode 100644 lam/lib/userentry.php diff --git a/lam/lib/listusers.php b/lam/lib/listusers.php deleted file mode 100644 index 8a961a13..00000000 --- a/lam/lib/listusers.php +++ /dev/null @@ -1,110 +0,0 @@ -"; - -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 ""; -?> - diff --git a/lam/lib/userentry.php b/lam/lib/userentry.php deleted file mode 100644 index 3cf47231..00000000 --- a/lam/lib/userentry.php +++ /dev/null @@ -1,79 +0,0 @@ -sn; - } - - function setSn ($in_value) { - $this->sn = $in_value; - } - - function getCn() { - return $this->cn; - } - - function setCn ($in_value) { - $this->cn = $in_value; - } - - function getGivenName() { - return $this->givenName; - } - - function setGivenName ($in_value) { - $this->givenName = $in_value; - } - - function getUid() { - return $this->uid; - } - - function setUid ($in_value) { - $this->uid = $in_value; - } - - function getHomeDirectory() { - return $this->homeDirectory; - } - - function setHomeDirectory ($in_value) { - $this->homeDirectory = $in_value; - } - -} - -?> \ No newline at end of file