Skip to content
Open
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
11 changes: 1 addition & 10 deletions wwwroot/inc/interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@
'date' => '[T] date'
);

function showLogoutURL ()
{
$https = (isset ($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '';
$port = (! in_array ($_SERVER['SERVER_PORT'], array (80, 443))) ? ':' . $_SERVER['SERVER_PORT'] : '';
printf ('http%s://logout@%s%s%s?logout', $https, $_SERVER['SERVER_NAME'], $port, $_SERVER['PHP_SELF']);
}

$quick_links = NULL; // you can override this in your local.php, but first initialize it with getConfiguredQuickLinks()

function renderQuickLinks()
Expand All @@ -104,9 +97,7 @@ function renderInterfaceHTML ($pageno, $tabno, $payload)
echo '<div class=mainheader>';
echo '<div style="float: right" class=greeting>';
echo mkA ($remote_displayname, 'myaccount', NULL, 'default');
echo ' [ <a href="';
showLogoutURL();
echo '">logout</a> ]</div>'; // greeting
echo ' [ <a href="./?logout">logout</a> ]</div>';
echo getConfigVar ('enterprise') . ' RackTables ';
echo '<a href="https://racktables.org/" title="Visit RackTables site">' . CODE_VERSION . '</a>';
renderQuickLinks();
Expand Down