Changeset 9649
- Timestamp:
- Mar 13, 2011, 5:53:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/adult_content/class.inc.php
r9626 r9649 256 256 $this->fill_idgroups_ad_c(); 257 257 258 if ( !$this->is_in_ad_c_group() ) 258 if ( !$this->is_in_ad_c_group() )// lié à rien 259 259 { 260 260 $template->assign( … … 264 264 $menu = & $menu_ref_arr[0]; 265 265 if (($block = $menu->get_block( 'mbAdultContent' )) != null) { 266 $block->set_title(l10n('ac_title_choose'));266 //$block->set_title(l10n('ac_title_choose')); 267 267 $block->template = $this->get_template('choose.tpl'); 268 268 } 269 $query = 'SELECT id FROM ' . GROUPS_TABLE . ' WHERE name IN (\'+18\', \'16-17\', \'nothing\') ORDER BY id'; 270 $result = pwg_query($query); 271 if ( isset($conf['UserAdvManager']) ) 272 { 273 $conf_UAM_2 = unserialize($conf['UserAdvManager']); 274 if ( in_array($conf_UAM_2[2], $this->idgroups_user))/// $conf_UAM_2[2] est le groupe des user en attente de modération 275 { 276 $menu->hide_block('mbAdultContent'); 277 } 278 } 279 269 280 } 270 281 else … … 299 310 function on_register() 300 311 { 301 include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); 302 $user_id = get_userid($_POST['login']); 303 log_user( $user_id, false); 312 if ( !function_exists('UAM_admin_menu')) 313 { 314 include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); 315 $user_id = get_userid($_POST['login']); 316 log_user( $user_id, false); 304 317 redirect(PHPWG_ROOT_PATH.'plugins/adult_content/charte_user.php'); 318 } 305 319 } 306 320 }//fin class
Note: See TracChangeset
for help on using the changeset viewer.