isReadOnly() ) pla_error( $lang['no_updates_in_read_only_mode'] ); if( ! $ldapserver->haveAuthInfo()) pla_error( $lang['not_enough_login_info'] ); $step = isset( $_REQUEST['step'] ) ? $_REQUEST['step'] : 1; // defaults to 1 $container = $_REQUEST['container']; $server_menu_html = server_select_list($ldapserver->server_id,true); include './header.php'; ?>

:
:
GetValue('template_engine','enable')) { $template_xml = new Templates($ldapserver->server_id); if ($config->GetValue('template_engine','disable_old')) $templates = $template_xml->_template; else $templates = array_merge($template_xml->_template,$templates); } # Remove non-visable templates. foreach ($templates as $index => $template) if (isset($template['visible']) && (! $template['visible'])) unset ($templates[$index]); $templates['custom']['title'] = 'Custom'; $templates['custom']['icon'] = 'images/object.png'; $count = count( $templates ); foreach( $templates as $name => $template ) { $i++; # If the template doesnt have a title, we'll use the desc field. $template['desc'] = isset($template['title']) ? $template['title'] : $template['desc']; # Balance the columns properly if( ( count( $templates ) % 2 == 0 && $i == intval( $count / 2 ) ) || ( count( $templates ) % 2 == 1 && $i == intval( $count / 2 ) + 1 ) ) echo "
"; # Check and see if this template should be shown in the list $isValid = false; if( isset($template['regexp'] ) ) { if( @preg_match( "/".$template['regexp']."/i", $container ) ) { $isValid = true; } } else { $isValid = true; if (isset($template['invalid']) && $template['invalid']) $isValid = false; } ?>
/>