1 | <?php |
---|
2 | //----------------------------------------------------------- include |
---|
3 | define('PHPWG_ROOT_PATH','./../../'); |
---|
4 | include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); |
---|
5 | include_once (NBC_UAM_PATH.'include/constants.php'); |
---|
6 | include_once (NBC_UAM_PATH.'include/functions.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_UAM_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( |
---|
51 | array( |
---|
52 | 'confirm_mail'=>NBC_UAM_PATH.'ConfirmMail.tpl', |
---|
53 | ) |
---|
54 | ); |
---|
55 | if (isset($lang['Theme: '.$user['theme']])) |
---|
56 | { |
---|
57 | $template->assign( |
---|
58 | 'THEME_ABOUT',l10n('Theme: '.$user['theme']) |
---|
59 | ); |
---|
60 | } |
---|
61 | |
---|
62 | if ( isset($conf['gallery_url']) ) |
---|
63 | { |
---|
64 | $template->assign( |
---|
65 | array( |
---|
66 | 'GALLERY_URL' => |
---|
67 | isset($page['gallery_url']) ? |
---|
68 | $page['gallery_url'] : $conf['gallery_url'], |
---|
69 | ) |
---|
70 | ); |
---|
71 | } |
---|
72 | |
---|
73 | |
---|
74 | $template->pparse('confirm_mail'); |
---|
75 | include(PHPWG_ROOT_PATH.'include/page_tail.php'); |
---|
76 | ?> |
---|