source: extensions/adult_content/charte.php @ 12646

Last change on this file since 12646 was 12646, checked in by flop25, 13 years ago

adding one new key in language files
adding a link to see the current default plugin.lang.php, via localfiles editor
"overloading" the local language files to apply customization

File size: 1.1 KB
Line 
1<?php
2define('PHPWG_ROOT_PATH','../../');
3include_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
10
11$adult_content = get_plugin_data('adult_content');
12
13
14$title = 'Adult content';
15$page['body_id'] = 'adult_content_page';
16include(PHPWG_ROOT_PATH.'include/page_header.php');
17
18
19//include(get_language_filepath('plugin.lang.php', $adult_content->plugin_path));
20load_language('plugin.lang', $adult_content->plugin_path);
21load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) );
22$template->assign(
23  array(
24    'PLUGIN_NAME' => $adult_content->plugin_name,
25    'AD_C_manage_what' => $conf_ad_c[2],
26    ));
27$template->set_filename('controller', $adult_content->plugin_path.'include/charte.tpl');
28
29// +-----------------------------------------------------------------------+
30// | html code display                                                     |
31// +-----------------------------------------------------------------------+
32$template->parse('controller');
33include(PHPWG_ROOT_PATH.'include/page_tail.php');
34?>
Note: See TracBrowser for help on using the repository browser.