Last change
on this file since 31309 was
21047,
checked in by flop25, 12 years ago
|
-compatibility 2.5 (only)
-changing config variables (assoc array)
-adding a pwg stuffs block
ToDo: enable the option for the block
|
File size:
1.2 KB
|
Rev | Line | |
---|
[9557] | 1 | <?php |
---|
| 2 | define('PHPWG_ROOT_PATH','../../'); |
---|
| 3 | include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); |
---|
[21047] | 4 | $conf_ad_c = unserialize($conf['ad_c_plugin']); |
---|
| 5 | if ( !is_a_guest() or $conf_ad_c['menublock_for_guest']!='true') |
---|
[9557] | 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); |
---|
[12646] | 21 | load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) ); |
---|
[9557] | 22 | $template->assign( |
---|
| 23 | array( |
---|
[12621] | 24 | 'PLUGIN_NAME' => $adult_content->plugin_name, |
---|
[21047] | 25 | 'AD_C_manage_what' => $conf_ad_c['manage_what'], |
---|
[9557] | 26 | )); |
---|
| 27 | $template->set_filename('controller', $adult_content->plugin_path.'include/charte.tpl'); |
---|
| 28 | |
---|
| 29 | // +-----------------------------------------------------------------------+ |
---|
| 30 | // | html code display | |
---|
| 31 | // +-----------------------------------------------------------------------+ |
---|
| 32 | $template->parse('controller'); |
---|
| 33 | include(PHPWG_ROOT_PATH.'include/page_tail.php'); |
---|
[3331] | 34 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.