mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Adding token for /logout/
This commit is contained in:
parent
5a6977660c
commit
9a746ea484
8 changed files with 8 additions and 8 deletions
|
@ -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"> 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 {
|
||||
?>
|
||||
|
|
|
@ -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 @@ sort-bandwidth="<?=$data[$key]['U_BANDWIDTH']?>" sort-disk="<?=$data[$key]['U_DI
|
|||
<?
|
||||
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 {
|
||||
?>
|
||||
|
|
|
@ -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"; ?>"> </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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue