$templates.shared.doctype {= # ========================================== # templates.index is the main login template # for administrators and non-administrators # ========================================= # debug_message("#### #### templates.index START \n"); bool administrator = node_value(subnode_by_name(volatile.authenticated_user_node_path, "administrator")); string admin_url; # debug_message("#### #### administrator: " . administrator . "\n"); # debug_message("volatile.login: " . volatile.login . "\n"); if (administrator) then ( admin_url = "?dp+templates.admin.index"; ) else ( admin_url = "?dp+templates.user_admin.index"; ); '\n'; '\n'; '' . PRODUCT_NAME . '\n'; expand(templates.shared.content_type); =}