source: extensions/NBC_UserAdvManager/trunk/ConfirmMail.php @ 6354

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

[NBC_UserAdvManager]

  • Bug 1687 fixed: Case sensitivity function removed because intégrated Piwigo's core
  • Property svn:eol-style set to LF
File size: 1.8 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$title= l10n('confirm_mail_page_title');
17$page['body_id'] = 'theAboutPage';
18include(PHPWG_ROOT_PATH.'include/page_header.php');
19
20@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
21  '/theme/'.$user['theme'].'/themeconf.inc.php');
22
23
24if (isset($_GET['key']))
25{
26
27  global $conf;
28 
29  $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']);
30
31  if (VerifyConfirmMail($_GET['key']))
32  {
33    $status = true;
34   
35    $template->assign(
36                        array(
37        'STATUS'               => $status,
38                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[5],
39                        )
40                );
41  } 
42  else
43  {
44    $status = false;
45    $template->assign(
46                        array(
47        'STATUS'               => $status,
48                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[6],
49                        )
50                );
51  }
52}
53
54if (isset($lang['Theme: '.$user['theme']]))
55{
56  $template->assign(
57        'THEME_ABOUT',l10n('Theme: '.$user['theme'])
58  );
59}
60
61if ( isset($conf['gallery_url']) )
62        {
63        $template->assign(
64                array(
65        'GALLERY_URL' =>
66                isset($page['gallery_url']) ?
67                        $page['gallery_url'] : $conf['gallery_url'],
68                )
69        );
70}
71
72$template->set_filenames(
73  array(
74        'confirm_mail'=>dirname(__FILE__).'/template/ConfirmMail.tpl',
75        )
76);
77
78$template->pparse('confirm_mail');
79include(PHPWG_ROOT_PATH.'include/page_tail.php');
80?>
Note: See TracBrowser for help on using the repository browser.