1 | <?php |
---|
2 | //----------------------------------------------------------- include |
---|
3 | define('PHPWG_ROOT_PATH','./../../'); |
---|
4 | include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); |
---|
5 | include_once (NBC_UserAdvManager_PATH.'include/constants.php'); |
---|
6 | include_once (NBC_UserAdvManager_PATH.'include/functions_UserAdvManager.inc.php'); |
---|
7 | |
---|
8 | // +-----------------------------------------------------------------------+ |
---|
9 | // | Check Access and exit when user status is not ok | |
---|
10 | // +-----------------------------------------------------------------------+ |
---|
11 | //check_status(ACCESS_NONE); |
---|
12 | load_language('plugin.lang', NBC_UserAdvManager_PATH); |
---|
13 | |
---|
14 | if ( isset($_GET['key']) ) |
---|
15 | { |
---|
16 | |
---|
17 | if ( VerifyConfirmMail($_GET['key']) ) |
---|
18 | $template->assign(array( |
---|
19 | 'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_ok'), |
---|
20 | )); |
---|
21 | else |
---|
22 | $template->assign(array( |
---|
23 | 'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_bad'), |
---|
24 | )); |
---|
25 | |
---|
26 | |
---|
27 | // redirect(make_index_url()); |
---|
28 | } |
---|
29 | |
---|
30 | /** |
---|
31 | * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create) |
---|
32 | * for example for clear theme: |
---|
33 | $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '. |
---|
34 | ' A standard template/theme of PhpWebgallery.'; |
---|
35 | * |
---|
36 | * Don't forget php tags !!! |
---|
37 | * |
---|
38 | * Another way is to code it thru the theme itself in ./themeconf.inc.php |
---|
39 | */ |
---|
40 | |
---|
41 | $title= l10n('confirm_mail_page_title'); |
---|
42 | $page['body_id'] = 'theAboutPage'; |
---|
43 | include(PHPWG_ROOT_PATH.'include/page_header.php'); |
---|
44 | |
---|
45 | @include(PHPWG_ROOT_PATH.'template/'.$user['template']. |
---|
46 | '/theme/'.$user['theme'].'/themeconf.inc.php'); |
---|
47 | |
---|
48 | /* $template->set_filenames(array('confirm_mail' => realpath(NBC_UserAdvManager_PATH . 'ConfirmMail.tpl')));*/ |
---|
49 | $template->set_filenames( |
---|
50 | array( |
---|
51 | 'confirm_mail'=>NBC_UserAdvManager_PATH.'ConfirmMail.tpl', |
---|
52 | ) |
---|
53 | ); |
---|
54 | if ( isset($lang['Theme: '.$user['theme']]) ) |
---|
55 | { |
---|
56 | $template->assign( |
---|
57 | 'THEME_ABOUT',l10n('Theme: '.$user['theme']) |
---|
58 | ); |
---|
59 | } |
---|
60 | |
---|
61 | if ( isset($conf['gallery_url']) ) |
---|
62 | { |
---|
63 | $template->assign( |
---|
64 | array( |
---|
65 | 'GALLERY_URL' => |
---|
66 | isset($page['gallery_url']) ? |
---|
67 | $page['gallery_url'] : $conf['gallery_url'], |
---|
68 | ) |
---|
69 | ); |
---|
70 | } |
---|
71 | |
---|
72 | |
---|
73 | $template->pparse('confirm_mail'); |
---|
74 | include(PHPWG_ROOT_PATH.'include/page_tail.php'); |
---|
75 | ?> |
---|