Changeset 14854 for extensions/Prune_History/main.inc.php
- Timestamp:
- May 8, 2012, 4:18:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Prune_History/main.inc.php
r14838 r14854 2 2 /* 3 3 Plugin Name: Prune History 4 Version: 1.0.0 -beta14 Version: 1.0.0 5 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 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid= … … 8 8 Author URI: http://www.infernoweb.net 9 9 */ 10 11 /* See release history and changes in changelog.txt file */ 10 12 11 13 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); … … 23 25 $conf_PH = unserialize($conf['PruneHistory']); 24 26 25 /* Plugin admin */ 27 28 /* Plugin administration */ 26 29 add_event_handler('get_admin_plugin_menu_links', 'PH_admin_menu'); 27 30 28 function PH_admin_menu($menu)29 {30 // +-----------------------------------------------------------------------+31 // | Getting plugin name |32 // +-----------------------------------------------------------------------+33 $plugin = PHInfos(PH_PATH);34 $name = $plugin['name'];35 36 array_push($menu,37 array(38 'NAME' => $name,39 'URL' => get_root_url().'admin.php?page=plugin-'.basename(PH_PATH)40 )41 );42 31 43 return $menu; 44 } 45 46 // Prune automation on user login 32 /* Prune automation on user login */ 47 33 if (isset($conf_PH[1]) and $conf_PH[1] == 'true') 48 34 {
Note: See TracChangeset
for help on using the changeset viewer.