Ignore:
Timestamp:
May 8, 2012, 4:18:51 PM (13 years ago)
Author:
Eric
Message:

Fist 1.0.0 release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Prune_History/main.inc.php

    r14838 r14854  
    22/*
    33Plugin Name: Prune History
    4 Version: 1.0.0-beta1
     4Version: 1.0.0
    55Description: Based on original History_cleanup plugin from VDigital, this plugin allows to manually or automatically prune history table according to configurable criteria
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=
     
    88Author URI: http://www.infernoweb.net
    99*/
     10
     11/* See release history and changes in changelog.txt file */
    1012
    1113if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     
    2325$conf_PH = unserialize($conf['PruneHistory']);
    2426
    25 /* Plugin admin */
     27
     28/* Plugin administration */
    2629add_event_handler('get_admin_plugin_menu_links', 'PH_admin_menu');
    2730
    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   );
    4231
    43   return $menu;
    44 }
    45 
    46 // Prune automation on user login
     32/* Prune automation on user login */
    4733if (isset($conf_PH[1]) and $conf_PH[1] == 'true')
    4834{
Note: See TracChangeset for help on using the changeset viewer.