source: extensions/set_plugins/main.inc.php @ 11462

Last change on this file since 11462 was 11462, checked in by cljosse, 13 years ago

[extensions] set_plugins save/restore list to file

File size: 1.3 KB
Line 
1<?php 
2/*
3Version: auto
4Plugin Name: set_plugins
5Plugin URI: http://piwigo.org/ext/extension_view.php?eid=550
6Author: cljosse
7Description: Active/déactive tous les plugins installés.
8*/
9
10// Chech whether we are indeed included by Piwigo.
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13// Define the path to our plugin.
14define('SET_PLUGINS_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/');
15
16//$SET_PLUGINS_PATH_ABS = str_replace('\\','/',dirname(__FILE__) );
17if (!defined('SET_PLUGINS_PATH_ABS')) 
18define(
19  'SET_PLUGINS_PATH_ABS',   realpath(SET_PLUGINS_PATH)."\\"
20);
21
22load_language('plugin.lang', SET_PLUGINS_PATH);
23// Hook on to an event to show the administration page.
24    global $infos_message,$erreur_message,$infos_warning;
25
26
27
28include_once(SET_PLUGINS_PATH.'set_plugins_class.php'); 
29$set_plugins = new set_plugins();     
30     $infos_message = "";
31     $erreur_message = "";
32     $infos_warning = "";
33// Add an entry to the 'Plugins' menu.
34add_event_handler('get_admin_plugin_menu_links', array(&$set_plugins,'set_plugins_admin_menu')  );
35add_event_handler('loc_end_admin', array(&$set_plugins,'cl_affiche_messages_admin'));
36add_event_handler('loc_end_page_header',array(&$set_plugins,'set_plugins_add')); 
37
38 //=======================================================
39
40?>
Note: See TracBrowser for help on using the repository browser.