source: extensions/adult_content/main.inc.php @ 3494

Revision 3494, 1.3 KB checked in by flop25, 11 years ago (diff)

update for pwg 2

Line 
1<?php
2/*
3Plugin Name: adult_content
4Version: 2.0.0
5Description: manage adult content / Gerer du contenu adulte
6Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=141
7Author: Flop25
8Author URI: http://flop25.free.fr
9
10*/
11
12if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
13
14$plugin_name = basename(dirname(__FILE__));
15$plugin_path = dirname(__FILE__).'/';
16define('AC_PATH', dirname(__FILE__).'/' );
17define('AC_NAME', basename(dirname(__FILE__)) );
18//define('LOCALEDIT_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
19
20include_once(dirname(__FILE__).'/class.inc.php');
21
22///add_event_handler('loc_begin_menubar', array(&$adult_content, 'placer_identification') );
23add_event_handler('register_user', array(&$adult_content, 'on_register') ); 
24         
25                  // Ajout une entrée dans le menubar
26          add_event_handler('blockmanager_register_blocks', array(&$adult_content, 'register_ac_menubar_blocks'));
27          add_event_handler('blockmanager_apply', array(&$adult_content, 'placer_identification'));
28
29
30
31$adult_content = new Adultcontent($plugin_name, $plugin_path);
32set_plugin_data($adult_content->plugin_name, $adult_content);
33
34//set_plugin_data($plugin['id'], $adult_content)
35//$obj = new adult_content();
36?>
Note: See TracBrowser for help on using the repository browser.