Ignore:
Timestamp:
Oct 21, 2009, 4:00:39 PM (15 years ago)
Author:
flop25
Message:

adding admin.php (empty)
adding function get_template (fully functionnal) und set_block_on_index (en cours)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/adult_content/main.inc.php

    r3654 r4078  
    1717define('AC_NAME', basename(dirname(__FILE__)) );
    1818
     19global $prefixeTable;
     20define('AC_CONF' , $prefixeTable . 'ac_config');
     21
    1922include_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
    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'));
     23add_event_handler('get_admin_plugin_menu_links', array(&$adult_content, 'ac_lien_menu') );
     24add_event_handler('register_user', array(&$adult_content, 'on_register') );
     25// Ajout une entrée dans le menubar
     26add_event_handler('blockmanager_register_blocks', array(&$adult_content, 'register_ac_menubar_blocks'));
     27add_event_handler('blockmanager_apply', array(&$adult_content, 'placer_identification'));
     28//block on index
     29add_event_handler('loc_begin_index', array(&$adult_content, 'set_block_on_index'));
    2630
    2731
    28 
     32add_event_handler('loc_end_picture', 'comment_manage');
     33function comment_manage()
     34{
     35        global $user, $template;
     36        if ( ($user['username']=='18' or $user['username']=='16') and !$conf['comments_forall'] )
     37        {
     38                $template->clear_assign('comment_add');
     39        }
     40}
    2941$adult_content = new Adultcontent($plugin_name, $plugin_path);
    3042set_plugin_data($adult_content->plugin_name, $adult_content);
Note: See TracChangeset for help on using the changeset viewer.