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 revision Previous revision
plugin:logoutconvenience [2013-11-02 02:32]
Klap-in
plugin: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.txt · Last modified: 2019-08-17 16:38 by Aleksandr