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