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

Last change on this file since 3654 was 3654, checked in by flop25, 12 years ago

add floOS

File size: 1.0 KB
Line 
1<?php
2/*
3Plugin Name: adult_content
4Version: 2.0.1
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
19include_once(dirname(__FILE__).'/class.inc.php');
20
21add_event_handler('register_user', array(&$adult_content, 'on_register') ); 
22         
23                  // Ajout une entrée dans le menubar
24          add_event_handler('blockmanager_register_blocks', array(&$adult_content, 'register_ac_menubar_blocks'));
25          add_event_handler('blockmanager_apply', array(&$adult_content, 'placer_identification'));
26
27
28
29$adult_content = new Adultcontent($plugin_name, $plugin_path);
30set_plugin_data($adult_content->plugin_name, $adult_content);
31
32?>
Note: See TracBrowser for help on using the repository browser.