X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fcore.php;h=f5bac89a897b2370c000f01ef21f0d3fdc7f723e;hb=d93451de19f7e7831e739a090fbbf8543608e978;hp=ac99545f6468219bb33a6541fff287924ac1cf6e;hpb=eaf30d86cc99df2414cf4f171a9b0f11b0561e3b;p=platal.git diff --git a/modules/core.php b/modules/core.php index ac99545..f5bac89 100644 --- a/modules/core.php +++ b/modules/core.php @@ -1,6 +1,6 @@ $this->make_hook('login', AUTH_COOKIE), 'send_bug' => $this->make_hook('bug', AUTH_COOKIE), 'purge_cache' => $this->make_hook('purge_cache', AUTH_COOKIE, 'admin'), + 'kill_sessions' => $this->make_hook('kill_sessions', AUTH_COOKIE, 'admin'), 'get_rights' => $this->make_hook('get_rights', AUTH_MDP, 'admin'), 'wiki_help' => $this->make_hook('wiki_help', AUTH_PUBLIC), @@ -86,6 +87,11 @@ class CoreModule extends PLModule http_redirect(empty($_SERVER['HTTP_REFERER']) ? './' : $_SERVER['HTTP_REFERER']); } + function handler_kill_sessions(&$page) + { + kill_sessions(); + } + function handler_get_rights(&$page, $level) { if (S::has('suid')) {