[3331] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Plugin Name: adult_content |
---|
| 4 | Version: 2.0.0 |
---|
| 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 | //define('LOCALEDIT_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/'); |
---|
| 19 | |
---|
| 20 | include_once(dirname(__FILE__).'/class.inc.php'); |
---|
| 21 | |
---|
| 22 | ///add_event_handler('loc_begin_menubar', array(&$adult_content, 'placer_identification') ); |
---|
| 23 | add_event_handler('register_user', array(&$adult_content, 'on_register') ); |
---|
| 24 | |
---|
| 25 | // Ajout une entrée dans le menubar |
---|
| 26 | add_event_handler('blockmanager_apply', array(&$adult_content, 'placer_identification')); |
---|
| 27 | add_event_handler('blockmanager_register_blocks', array(&$adult_content, 'register_ac_menubar_blocks')); |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | $adult_content = new Adultcontent($plugin_name, $plugin_path); |
---|
| 32 | set_plugin_data($adult_content->plugin_name, $adult_content); |
---|
| 33 | |
---|
| 34 | //set_plugin_data($plugin['id'], $adult_content) |
---|
| 35 | //$obj = new adult_content(); |
---|
| 36 | ?> |
---|