Skip to content

Commit

Permalink
Add optional logout menu entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjherbiet committed Oct 12, 2024
1 parent e5c73d5 commit 19a1d84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config-sample.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ logo = /logo-header-opera.png
; header and footer may contain HTML. Literal & " < and > should be escaped as &amp; &quot; &lt; $gt;
header = 'DNS management'
footer = 'Developed by <a href="https://www.opera.com/">Opera Software</a>.'
; 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.
Expand Down
1 change: 1 addition & 0 deletions templates/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<li<?php if($contents == $this->get('relative_request_url')) out(' class="active"', ESC_NONE); ?>><a href="<?php outurl($contents)?>"><?php out($name)?></a></li>
<?php } ?>
<?php } ?>
<?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 } ?>
</ul>
</div>
</div>
Expand Down

0 comments on commit 19a1d84

Please sign in to comment.