DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:logoutconvenience

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
plugin:logoutconvenience [2013-11-02 02:32] Klap-inplugin:logoutconvenience [2019-08-17 16:38] (current) Aleksandr
Line 1: Line 1:
-====== Logout convenience ======+====== Logout convenience Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: Display the page you were last on before logging out.+description: Display the page you were last on before logging out
 author     : Flavius Aspra author     : Flavius Aspra
 email      : flavius.as@gmail.com email      : flavius.as@gmail.com
Line 14: Line 14:
 ---- ----
  
-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+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 : +Put this in ''lib/plugins/logoutconvenience/actions.php'': 
-<code php><?php+ 
 +<code php actions.php> 
 +<?php
 if(!defined('DOKU_INC')) die(); if(!defined('DOKU_INC')) die();
 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
Line 30: Line 32:
  'name'   => 'Logout convenience',  'name'   => 'Logout convenience',
  'desc'   => 'Removes the annoying login form, showing the actual page.',  'desc'   => 'Removes the annoying login form, showing the actual page.',
-            'url'    => 'http://www.dokuwiki.org/plugin:logoutconvenience'+                        'url'    => 'https://www.dokuwiki.org/plugin:logoutconvenience'
  );  );
  }  }
Line 53: Line 55:
  }  }
 } }
-?></code>+</code> 
 Hopefully someone will find it useful, it's my first DokuWiki plugin. Hopefully someone will find it useful, it's my first DokuWiki plugin.
 > it is, merci > it is, merci
 > Thanks - Fred > Thanks - Fred
plugin/logoutconvenience.1383355941.txt.gz · Last modified: 2013-11-02 02:32 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki