isReadOnly() ) pla_error( $lang['no_updates_in_read_only_mode'] ); if( ! $ldapserver->haveAuthInfo()) pla_error( $lang['not_enough_login_info'] ); $template = (isset($_REQUEST['template']) ? $_REQUEST['template'] : null); ! is_null($template) or pla_error( $lang['ctemplate_no_template'] ); if( $template == 'custom' ) { foreach( $templates as $id => $template ) { if( $template['handler'] == 'custom.php' ) { $template = $id; break; } } } isset( $templates[$template] ) or pla_error( sprintf( $lang['invalid_template'], htmlspecialchars( $template ) ) ); $template_id = $template; $template = isset( $templates[$template] ) ? $templates[$template_id] : null; if ( ! array_key_exists('no_header', $template ) ) { include './header.php'; ?>