]> git.sur5r.net Git - openldap/commitdiff
Updated some stuff on php3-tool
authorPredrag "Pele" Balorda <pele@openldap.org>
Sat, 28 Nov 1998 11:57:38 +0000 (11:57 +0000)
committerPredrag "Pele" Balorda <pele@openldap.org>
Sat, 28 Nov 1998 11:57:38 +0000 (11:57 +0000)
contrib/php3-tool/at.conf
contrib/php3-tool/include/ldap_entry.inc

index 9d567611dbbeca0e92494fb7b85c7de73a15a59a..b47e4984311d21b67819475f01f1307e6efefe63 100644 (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
index d3f19d862d09bc586c59789615bbb86a53ae98b0..eb9d387578050bfd0eeda8ce6eba696057138e2f 100644 (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";
                }