source: extensions/NBC_UserAdvManager/branches/2.15/ConfirmMail.php @ 5634

Last change on this file since 5634 was 5634, checked in by Eric, 14 years ago

[NBC_UserAdvManager]

Merged from trunk to branches/2.15

  • Property svn:eol-style set to LF
File size: 2.1 KB
Line 
1<?php
2//----------------------------------------------------------- include
3define('PHPWG_ROOT_PATH','./../../');
4
5include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
6
7include_once (UAM_PATH.'include/constants.php');
8include_once (UAM_PATH.'include/functions.inc.php');
9
10// +-----------------------------------------------------------------------+
11// | Check Access and exit when user status is not ok                      |
12// +-----------------------------------------------------------------------+
13//check_status(ACCESS_NONE);
14load_language('plugin.lang', UAM_PATH);
15
16/**
17 * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)
18 * for example for clear theme:
19  $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.
20  ' A standard template/theme of PhpWebgallery.';
21 *
22 * Don't forget php tags !!!
23 *
24 * Another way is to code it thru the theme itself in ./themeconf.inc.php
25 */
26
27$title= l10n('confirm_mail_page_title');
28$page['body_id'] = 'theAboutPage';
29include(PHPWG_ROOT_PATH.'include/page_header.php');
30
31@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
32  '/theme/'.$user['theme'].'/themeconf.inc.php');
33
34if (isset($_GET['key']))
35{
36
37  global $conf;
38 
39  $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']);
40
41  if (VerifyConfirmMail($_GET['key']))
42  {
43    $status = true;
44   
45    $template->assign(
46                        array(
47        'STATUS'               => $status,
48                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[5],
49                        )
50                );
51  } 
52  else
53  {
54    $status = false;
55    $template->assign(
56                        array(
57        'STATUS'               => $status,
58                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[6],
59                        )
60                );
61  }
62}
63
64if (isset($lang['Theme: '.$user['theme']]))
65{
66  $template->assign(
67        'THEME_ABOUT',l10n('Theme: '.$user['theme'])
68  );
69}
70
71if ( isset($conf['gallery_url']) )
72        {
73        $template->assign(
74                array(
75        'GALLERY_URL' =>
76                isset($page['gallery_url']) ?
77                        $page['gallery_url'] : $conf['gallery_url'],
78                )
79        );
80}
81
82$template->set_filenames(
83  array(
84        'confirm_mail'=>dirname(__FILE__).'/template/ConfirmMail.tpl',
85        )
86);
87
88$template->pparse('confirm_mail');
89include(PHPWG_ROOT_PATH.'include/page_tail.php');
90?>
Note: See TracBrowser for help on using the repository browser.