Skip to content
Permalink
Browse files
Adding token for /logout/
  • Loading branch information
myvesta committed Sep 3, 2021
1 parent 5a69776 commit 9a746ea4845f198e30fc86cea52faf68a91ecbe6
@@ -71,7 +71,7 @@
if ($value['USER'] != $user && $value['KEY'] == 'ACCOUNT') {
if ($key == $user) {
?>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout/?token=<?=$_SESSION['token']?>"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<?php
} else {
?>
@@ -33,7 +33,7 @@
<!-- /.l-menu -->
<div class="l-profile">
<a class="l-profile__username" href="/edit/user/?user=<?php echo $user; ?>"><?=$user?></a>
<a class="l-profile__logout" href="/logout/"> <?=__('Log out')?> </a>
<a class="l-profile__logout" href="/logout/?token=<?=$_SESSION['token']?>"> <?=__('Log out')?> </a>
</div>
<!-- /.l-profile -->
</div>
@@ -94,7 +94,7 @@
<?
if ($key == $user) {
?>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout/?token=<?=$_SESSION['token']?>"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<?php
} else {
?>
@@ -29,7 +29,7 @@
<!-- /.l-menu -->
<div class="l-profile">
<a class="l-profile__username" href="/edit/user/?user=<?php echo $user; ?>"><?=$user?></a>
<a class="l-profile__logout" href="/logout/"> <?=__('Log out')?> </a>
<a class="l-profile__logout" href="/logout/?token=<?=$_SESSION['token']?>"> <?=__('Log out')?> </a>
</div>
<!-- /.l-profile -->
</div>
@@ -26,7 +26,7 @@
<div class="l-profile noselect">
<a class="l-profile__notifications <? if($panel[$user]['NOTIFICATIONS'] == 'yes') echo " updates"; ?>">&nbsp;</a>
<a class="l-profile__username" href="/edit/user/?user=<?php echo $user; ?>"><?=$user?></a>
<a class="l-profile__logout" href="/logout/"> <?=__('Log out')?> </a>
<a class="l-profile__logout" href="/logout/?token=<?=$_SESSION['token']?>"> <?=__('Log out')?> </a>
</div>
<!-- /.l-profile -->
</div>
@@ -70,7 +70,7 @@
if ($value['USER'] != $user && $value['KEY'] == 'ACCOUNT') {
if ($key == $user) {
?>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout/?token=<?=$_SESSION['token']?>"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<?php
} else {
?>
@@ -89,7 +89,7 @@
<?
if ($key == $user) {
?>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<div class="actions-panel__col actions-panel__loginas shortcut-l" key-action="href"><a href="/logout/?token=<?=$_SESSION['token']?>"><?=__('logout')?> <i></i></a><span class="shortcut">&nbsp;L</span></div>
<?php
} else {
?>
@@ -20,7 +20,7 @@
<div class="l-profile">
<a class="l-profile__notifications <? if($panel[$user]['NOTIFICATIONS'] == 'yes') echo " updates"; ?>">&nbsp;</a>
<a class="l-profile__username" href="/edit/user/?user=<?php echo $user; ?>"><? if(($_SESSION['user'] == 'admin') && ($user != 'admin')) echo 'admin → ' ?><?=$user?></a>
<a class="l-profile__logout" href="/logout/"> <?=__('Log out')?> </a>
<a class="l-profile__logout" href="/logout/?token=<?=$_SESSION['token']?>"> <?=__('Log out')?> </a>
</div>
<!-- /.l-profile -->
</div>

0 comments on commit 9a746ea

Please sign in to comment.