Updated some stuff on php3-tool

This commit is contained in:
Predrag "Pele" Balorda 1998-11-28 11:57:38 +00:00
parent 2fcab46c60
commit 43e572aba7
2 changed files with 6 additions and 11 deletions

View file

@ -31,7 +31,7 @@ naminglink,Naming Link,TRUE
nobatchupdates,No Batch Updates,FALSE
notice,Notice,TRUE
o,Organization,TRUE
objectclass,Object Class,FALSE
objectclass,Object Class,TRUE
onvacation,On Vacation,TRUE
ou,Organizational Unit,TRUE
owner,Owner,TRUE

View file

@ -61,16 +61,6 @@ class ldap_entry {
if ($attrib->isVisible($attrib->name) == "TRUE") {
$s .= $attrib->formatHTMLValues();
}
// switch ($attrib->name) {
// case "krbname":
// case "objectclass":
// case "nobatchupdates":
// case "uid":
// case "userpassword": break;
// default:
// $s .= $attrib->formatHTMLValues();
// break;
// }
}
$a = $this->attributes[0];
$v = $a->values[1];
@ -79,6 +69,11 @@ class ldap_entry {
$s .= "\t\t<a href=".$FILE."?host=".urlencode($host)."&ldap_action=list&base_dn=".urlencode($this->dn).">Browse</a>\n";
$s .= "\t\t</td>\n\t</tr>\n";
}
else if ($v == "person") {
$s .= "<tr>\n\t<td colspan=2>\n";
$s .= "\t\t<a href=".$FILE."?host=".urlencode($host)."&ldap_action=read&admin_action=modify&base_dn=".urlencode($this->dn).">Modify</a>\n";
$s .= "\t\t</td>\n\t</tr>\n";
}
else {
$s .= "<tr>\n\t<td colspan=2>\n\t\t&nbsp;\n\t\t</td>\n\t</tr>\n";
}