====== Logout convenience Plugin ====== ---- plugin ---- description: Display the page you were last on before logging out author : Flavius Aspra email : flavius.as@gmail.com type : action lastupdate : 2006-10-29 compatible : depends : conflicts : similar : tags : authentication, redirect ---- This plugin shows the previous page you were on %%($_GET['id'])%% instead of the login form. You could of course edit function act_auth() manually :-D Put this in ''lib/plugins/logoutconvenience/actions.php'': 'Flavius Aspra', 'email' => 'flavius.as@gmail.com', 'date' => '2006-10-29', 'name' => 'Logout convenience', 'desc' => 'Removes the annoying login form, showing the actual page.', 'url' => 'https://www.dokuwiki.org/plugin:logoutconvenience' ); } function register(Doku_Event_Handler $controller) { $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'logoutconvenience'); } //code from function act_auth() @ inc/actions.php function logoutconvenience(&$event,$param) { global $ID; global $ACT; global $INFO; //handle logout if($ACT=='logout'){ $lockedby = checklock($ID); //page still locked? if($lockedby == $_SERVER['REMOTE_USER']) { unlock($ID); //try to unlock } auth_logoff(); $INFO = pageinfo(); $ACT = 'show'; } } } Hopefully someone will find it useful, it's my first DokuWiki plugin. > it is, merci > Thanks - Fred