Last change
on this file since 24391 was
23906,
checked in by Eric, 11 years ago
|
Next version is 1.1.4:
Compatibility fixed with other plugins (UAM and Register_FluxBB)
|
-
Property svn:eol-style set to
LF
|
File size:
1022 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Prune History |
---|
4 | Version: auto |
---|
5 | Description: Based on original History_cleanup plugin from VDigital, this plugin allows to manually or automatically prune history table according to configurable criteria |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid=604 |
---|
7 | Author: Eric |
---|
8 | Author URI: http://www.infernoweb.net |
---|
9 | */ |
---|
10 | |
---|
11 | /* See release history and changes in changelog.txt file */ |
---|
12 | |
---|
13 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
14 | |
---|
15 | if(!defined('PH_PATH')) |
---|
16 | { |
---|
17 | define('PH_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
18 | } |
---|
19 | |
---|
20 | global $conf; |
---|
21 | |
---|
22 | include_once (PH_PATH.'include/functions.inc.php'); |
---|
23 | |
---|
24 | load_language('plugin.lang', PH_PATH); |
---|
25 | $conf_PH = unserialize($conf['PruneHistory']); |
---|
26 | |
---|
27 | |
---|
28 | /* Plugin administration */ |
---|
29 | add_event_handler('get_admin_plugin_menu_links', 'PH_admin_menu'); |
---|
30 | |
---|
31 | |
---|
32 | /* Prune automation on user login */ |
---|
33 | if (isset($conf_PH['AUTOPRUNE']) and $conf_PH['AUTOPRUNE'] == 'true') |
---|
34 | { |
---|
35 | add_event_handler('login_success', 'history_autoprune', EVENT_HANDLER_PRIORITY_NEUTRAL, 10); |
---|
36 | } |
---|
37 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.