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
RevLine 
[3742]1<?php
2//----------------------------------------------------------- include
3define('PHPWG_ROOT_PATH','./../../');
[5633]4
[3742]5include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
[5633]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
[5633]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
[6354]23
[3858]24if (isset($_GET['key']))
[3742]25{
26
[5181]27  global $conf;
28 
29  $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']);
30
[3858]31  if (VerifyConfirmMail($_GET['key']))
[5181]32  {
[5633]33    $status = true;
34   
[3858]35    $template->assign(
36                        array(
[5633]37        'STATUS'               => $status,
[5181]38                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[5],
[3858]39                        )
40                );
[5181]41  } 
42  else
[5633]43  {
44    $status = false;
[3858]45    $template->assign(
46                        array(
[5633]47        'STATUS'               => $status,
[5181]48                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[6],
[3858]49                        )
[5181]50                );
51  }
[3742]52}
53
[5056]54if (isset($lang['Theme: '.$user['theme']]))
[3742]55{
56  $template->assign(
[3858]57        'THEME_ABOUT',l10n('Theme: '.$user['theme'])
58  );
[3742]59}
60
61if ( isset($conf['gallery_url']) )
62        {
63        $template->assign(
[3858]64                array(
65        'GALLERY_URL' =>
66                isset($page['gallery_url']) ?
67                        $page['gallery_url'] : $conf['gallery_url'],
68                )
69        );
[3742]70}
71
[5633]72$template->set_filenames(
73  array(
74        'confirm_mail'=>dirname(__FILE__).'/template/ConfirmMail.tpl',
75        )
76);
[3742]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.