plugin:logoutconvenience
This is an old revision of the document!
Logout convenience
Compatible with DokuWiki
No compatibility info given!
The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
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
Put this in lib/plugins/logoutconvenience/actions.php :
<?php if(!defined('DOKU_INC')) die(); if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); require_once(DOKU_PLUGIN.'action.php'); class action_plugin_logoutconvenience extends DokuWiki_Action_Plugin { function getInfo(){ return array( 'author' => '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' => 'http://www.dokuwiki.org/plugin:logoutconvenience' ); } function register(&$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
plugin/logoutconvenience.1317117540.txt.gz · Last modified: 2011-09-27 11:59 by 80.109.207.86