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( |
---|
19 | array( |
---|
20 | 'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_ok'), |
---|
21 | ) |
---|
22 | ); |
---|
23 | else |
---|
24 | $template->assign( |
---|
25 | array( |
---|
26 | 'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_bad'), |
---|
27 | ) |
---|
28 | ); |
---|
29 | // redirect(make_index_url()); |
---|
30 | } |
---|
31 | |
---|
32 | /** |
---|
33 | * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create) |
---|
34 | * for example for clear theme: |
---|
35 | $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '. |
---|
36 | ' A standard template/theme of PhpWebgallery.'; |
---|
37 | * |
---|
38 | * Don't forget php tags !!! |
---|
39 | * |
---|
40 | * Another way is to code it thru the theme itself in ./themeconf.inc.php |
---|
41 | */ |
---|
42 | |
---|
43 | $title= l10n('confirm_mail_page_title'); |
---|
44 | $page['body_id'] = 'theAboutPage'; |
---|
45 | include(PHPWG_ROOT_PATH.'include/page_header.php'); |
---|
46 | |
---|
47 | @include(PHPWG_ROOT_PATH.'template/'.$user['template']. |
---|
48 | '/theme/'.$user['theme'].'/themeconf.inc.php'); |
---|
49 | |
---|
50 | /* $template->set_filenames(array('confirm_mail' => realpath(NBC_UserAdvManager_PATH . 'ConfirmMail.tpl')));*/ |
---|
51 | $template->set_filenames( |
---|
52 | array( |
---|
53 | 'confirm_mail'=>NBC_UserAdvManager_PATH.'ConfirmMail.tpl', |
---|
54 | ) |
---|
55 | ); |
---|
56 | if ( isset($lang['Theme: '.$user['theme']]) ) |
---|
57 | { |
---|
58 | $template->assign( |
---|
59 | 'THEME_ABOUT',l10n('Theme: '.$user['theme']) |
---|
60 | ); |
---|
61 | } |
---|
62 | |
---|
63 | if ( isset($conf['gallery_url']) ) |
---|
64 | { |
---|
65 | $template->assign( |
---|
66 | array( |
---|
67 | 'GALLERY_URL' => |
---|
68 | isset($page['gallery_url']) ? |
---|
69 | $page['gallery_url'] : $conf['gallery_url'], |
---|
70 | ) |
---|
71 | ); |
---|
72 | } |
---|
73 | |
---|
74 | |
---|
75 | $template->pparse('confirm_mail'); |
---|
76 | include(PHPWG_ROOT_PATH.'include/page_tail.php'); |
---|
77 | ?> |
---|