mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-12 07:44:29 +02:00
Fix logout hook & add images/editor to .gitignore
This commit is contained in:
parent
f9d85b10b7
commit
80d3f5ffe8
8
.gitignore
vendored
8
.gitignore
vendored
@ -24,6 +24,10 @@ templates/*
|
|||||||
images/guilds/*
|
images/guilds/*
|
||||||
!images/guilds/default.gif
|
!images/guilds/default.gif
|
||||||
|
|
||||||
|
# editor images
|
||||||
|
images/editor/*
|
||||||
|
!images/editor/index.html
|
||||||
|
|
||||||
# cache
|
# cache
|
||||||
system/cache/*
|
system/cache/*
|
||||||
!system/cache/index.html
|
!system/cache/index.html
|
||||||
@ -51,9 +55,5 @@ plugins/*
|
|||||||
!plugins/account-create-hint
|
!plugins/account-create-hint
|
||||||
landing
|
landing
|
||||||
|
|
||||||
# user data
|
|
||||||
user/*
|
|
||||||
!user/index.html
|
|
||||||
|
|
||||||
# others/rest
|
# others/rest
|
||||||
system/pages/downloads.php
|
system/pages/downloads.php
|
||||||
|
@ -35,7 +35,7 @@ if($current_session !== false)
|
|||||||
|
|
||||||
if(ACTION === 'logout' && !isset($_REQUEST['account_login'])) {
|
if(ACTION === 'logout' && !isset($_REQUEST['account_login'])) {
|
||||||
if(isset($account_logged) && $account_logged->isLoaded()) {
|
if(isset($account_logged) && $account_logged->isLoaded()) {
|
||||||
if($hooks->trigger(HOOK_LOGOUT, array('account' => $account_logged, 'password' => getSession('password')))) {
|
if($hooks->trigger(HOOK_LOGOUT,['account_id' => $account_logged->getId()])) {
|
||||||
unsetSession('account');
|
unsetSession('account');
|
||||||
unsetSession('password');
|
unsetSession('password');
|
||||||
unsetSession('remember_me');
|
unsetSession('remember_me');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user