Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional logout menu entry. #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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