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
RevLine 
[3742]1<?php
2//----------------------------------------------------------- include
3define('PHPWG_ROOT_PATH','./../../');
[5634]4
[3742]5include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
[5634]6
[5181]7include_once (UAM_PATH.'include/constants.php');
8include_once (UAM_PATH.'include/functions.inc.php');
[3742]9
10// +-----------------------------------------------------------------------+
11// | Check Access and exit when user status is not ok                      |
12// +-----------------------------------------------------------------------+
13//check_status(ACCESS_NONE);
[5181]14load_language('plugin.lang', UAM_PATH);
[3742]15
[5634]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
[3858]34if (isset($_GET['key']))
[3742]35{
36
[5181]37  global $conf;
38 
39  $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']);
40
[3858]41  if (VerifyConfirmMail($_GET['key']))
[5181]42  {
[5634]43    $status = true;
44   
[3858]45    $template->assign(
46                        array(
[5634]47        'STATUS'               => $status,
[5181]48                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[5],
[3858]49                        )
50                );
[5181]51  } 
52  else
[5634]53  {
54    $status = false;
[3858]55    $template->assign(
56                        array(
[5634]57        'STATUS'               => $status,
[5181]58                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[6],
[3858]59                        )
[5181]60                );
61  }
[3742]62}
63
[5056]64if (isset($lang['Theme: '.$user['theme']]))
[3742]65{
66  $template->assign(
[3858]67        'THEME_ABOUT',l10n('Theme: '.$user['theme'])
68  );
[3742]69}
70
71if ( isset($conf['gallery_url']) )
72        {
73        $template->assign(
[3858]74                array(
75        'GALLERY_URL' =>
76                isset($page['gallery_url']) ?
77                        $page['gallery_url'] : $conf['gallery_url'],
78                )
79        );
[3742]80}
81
[5634]82$template->set_filenames(
83  array(
84        'confirm_mail'=>dirname(__FILE__).'/template/ConfirmMail.tpl',
85        )
86);
[3742]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.