From 19a1d843f3c9214d3c2fdc7de249031a706b4d7b Mon Sep 17 00:00:00 2001 From: Guillaume-Jean Herbiet Date: Sat, 12 Oct 2024 00:41:04 +0200 Subject: [PATCH] Add optional logout menu entry. --- config/config-sample.ini | 4 ++++ templates/base.php | 1 + 2 files changed, 5 insertions(+) diff --git a/config/config-sample.ini b/config/config-sample.ini index c33af91..9c01caf 100644 --- a/config/config-sample.ini +++ b/config/config-sample.ini @@ -7,6 +7,10 @@ logo = /logo-header-opera.png ; header and footer may contain HTML. Literal & " < and > should be escaped as & " < $gt; header = 'DNS management' footer = 'Developed by Opera Software.' +; Enable this option to add a logout menu link to the specified URL +;logout_url = '/logout' +; Enable this option to set the logout menu link text +;logout_text = 'Logout' ; Enable this option if you want system and zone admins to be forced to request changes just like the operators. ;force_change_review = 1 ; Enable this option if you want all users to be forced to enter a comment for every change made. diff --git a/templates/base.php b/templates/base.php index 2f16b54..ed3c8f4 100644 --- a/templates/base.php +++ b/templates/base.php @@ -67,6 +67,7 @@ get('relative_request_url')) out(' class="active"', ESC_NONE); ?>> +
  • Logout