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

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

[NBC_UserAdvManager]

  • Bug 1474 fixed : Customizable text for ConfirmMail.tpl
  • Bug 1467 fixed : FCK Editor's functionnalities are available on registration's confirmation return page customization fields
  • Bug 1508 fixed : Plugin's name'll now be UserAdvManager (deletion of "nbc_" in code and PEM). Plugin's name is correctly displayed in plugins manager.
  • Property svn:eol-style set to LF
File size: 2.1 KB
Line 
1<?php
2//----------------------------------------------------------- include
3define('PHPWG_ROOT_PATH','./../../');
4include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
5include_once (UAM_PATH.'include/constants.php');
6include_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);
12load_language('plugin.lang', UAM_PATH);
13
14if (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  //$refresh_txt = l10n('ConfirmMail_redirection');
39  //$refresh_time = '10';
40  //redirect(make_index_url(),'',$refresh_time);
41}
42
43/**
44 * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)
45 * for example for clear theme:
46  $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.
47  ' A standard template/theme of PhpWebgallery.';
48 *
49 * Don't forget php tags !!!
50 *
51 * Another way is to code it thru the theme itself in ./themeconf.inc.php
52 */
53
54$title= l10n('confirm_mail_page_title');
55$page['body_id'] = 'theAboutPage';
56include(PHPWG_ROOT_PATH.'include/page_header.php');
57
58@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
59  '/theme/'.$user['theme'].'/themeconf.inc.php');
60
61$template->set_filenames(
62  array(
63        'confirm_mail'=>UAM_PATH.'ConfirmMail.tpl',
64        )
65);
66if (isset($lang['Theme: '.$user['theme']]))
67{
68  $template->assign(
69        'THEME_ABOUT',l10n('Theme: '.$user['theme'])
70  );
71}
72
73if ( isset($conf['gallery_url']) )
74        {
75        $template->assign(
76                array(
77        'GALLERY_URL' =>
78                isset($page['gallery_url']) ?
79                        $page['gallery_url'] : $conf['gallery_url'],
80                )
81        );
82}
83
84
85$template->pparse('confirm_mail');
86include(PHPWG_ROOT_PATH.'include/page_tail.php');
87?>
Note: See TracBrowser for help on using the repository browser.