Ignore:
Timestamp:
Mar 6, 2011, 1:59:34 PM (13 years ago)
Author:
flop25
Message:

activation phase without include and global var
a guest can't be logged as 16 or 18 if the admin don't want (no acces to charte.php)
a guest can't access to charte_user.php and a user can't access to charte.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/adult_content/charte.php

    r3331 r9557  
    22define('PHPWG_ROOT_PATH','../../');
    33include_once(PHPWG_ROOT_PATH.'include/common.inc.php');
     4$conf_ad_c = explode("," , $conf['ad_c_plugin']);
     5if ( !is_a_guest() or $conf_ad_c[0]!='true')
     6{
     7        redirect(make_index_url());
     8}
     9
    410
    511$adult_content = get_plugin_data('adult_content');
Note: See TracChangeset for help on using the changeset viewer.