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