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