$auth = \Johnpearcey\Amara\Router\UserState::get()->getAuth(); $strui_login = ''; if ($auth->isLoggedIn()) { $strui_login = "<a id=\"anc_login\" class=\"shb_TitleRHS\" href=\"/logout.php\" style=\"margin-right: 10px;\" >Logout</a>"; } ?> <body onload="index_onload()"> <div class="main_page"> <div id="shb_Header" class="flex_header" > <div id="shb_Title" class="shb_Title" ><img src="/img/uk-green.png" style="margin-right: 20px; height: 40px;" >Backup Commander<span id="shb_pageName" style="margin-left:30px; font-size: 10px;">Version 0.9.11</span></div> <?php echo $strui_login; ?> </div> <?php