$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; $server_id = http_get_value( 'server_id' ); check_server_id( $server_id ) or pla_error( $lang['bad_server_id'] ); have_auth_info( $server_id ) or pla_error( $lang['not_enough_login_info'] ); $ds = pla_ldap_connect( $server_id ); pla_ldap_connection_is_error( $ds ); $server_name = $servers[ $server_id ][ 'name' ]; if( is_server_read_only( $server_id ) ) pla_error( $lang['no_updates_in_read_only_mode'] ); include './header.php'; ?>