mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Adding token for /logout/
This commit is contained in:
parent
5a6977660c
commit
9a746ea484
8 changed files with 8 additions and 8 deletions
|
@ -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"> 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"> L</span></div>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
|
|
|
@ -89,7 +89,7 @@ sort-disk="<?=$data[$key]['U_DISK']?>" sort-star="<?if($_SESSION['favourites']['
|
|||
<?
|
||||
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"> 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"> 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"; ?>"> </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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue