Skip to content

Commit 19a1d84

Browse files
committed
Add optional logout menu entry.
1 parent e5c73d5 commit 19a1d84

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config/config-sample.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ logo = /logo-header-opera.png
77
; header and footer may contain HTML. Literal & " < and > should be escaped as &amp; &quot; &lt; $gt;
88
header = 'DNS management'
99
footer = 'Developed by <a href="https://www.opera.com/">Opera Software</a>.'
10+
; Enable this option to add a logout menu link to the specified URL
11+
;logout_url = '/logout'
12+
; Enable this option to set the logout menu link text
13+
;logout_text = 'Logout'
1014
; Enable this option if you want system and zone admins to be forced to request changes just like the operators.
1115
;force_change_review = 1
1216
; Enable this option if you want all users to be forced to enter a comment for every change made.

templates/base.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
<li<?php if($contents == $this->get('relative_request_url')) out(' class="active"', ESC_NONE); ?>><a href="<?php outurl($contents)?>"><?php out($name)?></a></li>
6868
<?php } ?>
6969
<?php } ?>
70+
<?php if(!empty($web_config['logout_url'])) { ?><li><a href="<?php outurl($web_config['logout_url']) ?>"><?php if (!empty($web_config['logout_text'])) out($web_config['logout_text']); else { ?>Logout<?php } ?></a></li><?php } ?>
7071
</ul>
7172
</div>
7273
</div>

0 commit comments

Comments
 (0)