Last change
on this file since 11092 was
9557,
checked in by flop25, 14 years ago
|
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 size:
1.0 KB
|
Line | |
---|
1 | <?php |
---|
2 | define('PHPWG_ROOT_PATH','../../'); |
---|
3 | include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); |
---|
4 | $conf_ad_c = explode("," , $conf['ad_c_plugin']); |
---|
5 | if ( !is_a_guest() or $conf_ad_c[0]!='true') |
---|
6 | { |
---|
7 | redirect(make_index_url()); |
---|
8 | } |
---|
9 | |
---|
10 | |
---|
11 | $adult_content = get_plugin_data('adult_content'); |
---|
12 | |
---|
13 | |
---|
14 | $title = 'Adult content'; |
---|
15 | $page['body_id'] = 'adult_content_page'; |
---|
16 | include(PHPWG_ROOT_PATH.'include/page_header.php'); |
---|
17 | |
---|
18 | |
---|
19 | //include(get_language_filepath('plugin.lang.php', $adult_content->plugin_path)); |
---|
20 | load_language('plugin.lang', $adult_content->plugin_path); |
---|
21 | $template->assign( |
---|
22 | array( |
---|
23 | 'PLUGIN_NAME' => $adult_content->plugin_name |
---|
24 | )); |
---|
25 | |
---|
26 | $template->set_filename('controller', $adult_content->plugin_path.'include/charte.tpl'); |
---|
27 | |
---|
28 | // +-----------------------------------------------------------------------+ |
---|
29 | // | html code display | |
---|
30 | // +-----------------------------------------------------------------------+ |
---|
31 | $template->parse('controller'); |
---|
32 | include(PHPWG_ROOT_PATH.'include/page_tail.php'); |
---|
33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.