haveAuthInfo()) pla_error(_('Not enough information to login to server. Please check your configuration.')); $friendly_attrs = process_friendly_attr_table(); // @todo might not need this. $pjs = array(); # REMOVE THSE @todo $today = date('U'); $shadow_before_today_attrs = arrayLower(array('shadowLastChange','shadowMin')); $shadow_after_today_attrs = arrayLower(array('shadowMax','shadowExpire','shadowWarning','shadowInactive')); $shadow_format_attrs = array_merge($shadow_before_today_attrs,$shadow_after_today_attrs); # END REMOVE # If we have a DN, then this is to edit the entry. if (isset($_REQUEST['dn'])) { $dn = $_GET['dn']; $decoded_dn = rawurldecode($dn); $encoded_dn = rawurlencode($decoded_dn); if (! $ldapserver->haveAuthInfo()) pla_error(_('Not enough information to login to server. Please check your configuration.')); $ldapserver->dnExists($dn) or pla_error(sprintf(_('No such entry: %s'),pretty_print_dn($dn))); $rdn = get_rdn($dn); $attrs = $ldapserver->getDNAttrs($dn,false,$config->GetValue('deref','view')); $modified_attrs = isset($_REQUEST['modified_attrs']) ? $_REQUEST['modified_attrs'] : false; $show_internal_attrs = isset($_REQUEST['show_internal_attrs']) ? true : false; # If an entry has more children than this, stop searching and display this amount with a '+' $max_children = 100; } else { $dn = ''; $rdn = ''; $encoded_dn = ''; if ($_REQUEST['template'] == 'custom') { include TMPLDIR.'template_header.php'; require TMPLDIR.'creation/custom.php'; die(); } else { $templates = new Templates($ldapserver->server_id); $template = $templates->getCreationTemplate($_REQUEST['template']); } } include TMPLDIR.'template_header.php'; /* * When we get here, (either a new entry, or modifying an existing entry), if the * empty_attrs array has content, then we need to ask the user for this information. */ if (isset($template['empty_attrs'])) { masort($template['empty_attrs'],'page,order',1); # What page are we working on. $page = isset($_REQUEST['page']) ? $_REQUEST['page'] : 1; printf('