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

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

[NBC_UserAdvManager] Pre-2.13.4 for testing only:

  • Bug 1303 and 1387 fixed : There is a bug in Piwigo 2.0.8 about switch_lang() function. This may be fixed in the next Piwigo release. These UAM fix are available only for Piwigo 2.0.8 and have to be recoded for the next Piwigo release. (Thx to Rub and cljosse for their usefull help).
  • Bug 1444 fixed
  • Bug 1445 pre-fixed : Begining of plugin's admin panel improvement. Add of new help language files (FR for the moment), deletion of ConfirmMail tab, mix all config in one tab, add of cuetips. This is for testing !
  • 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 (NBC_UAM_PATH.'include/constants.php');
6include_once (NBC_UAM_PATH.'include/functions_UserAdvManager.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', NBC_UAM_PATH);
13
14if (isset($_GET['key']))
15{
16
17  if (VerifyConfirmMail($_GET['key']))
18    $template->assign(
19                        array(
20                                'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_ok'),
21                        )
22                );
23  else 
24    $template->assign(
25                        array(
26                                'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_bad'),
27                        )
28                );       
29//    redirect(make_index_url());
30}
31
32/**
33 * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)
34 * for example for clear theme:
35  $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.
36  ' A standard template/theme of PhpWebgallery.';
37 *
38 * Don't forget php tags !!!
39 *
40 * Another way is to code it thru the theme itself in ./themeconf.inc.php
41 */
42
43$title= l10n('confirm_mail_page_title');
44$page['body_id'] = 'theAboutPage';
45include(PHPWG_ROOT_PATH.'include/page_header.php');
46
47@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
48  '/theme/'.$user['theme'].'/themeconf.inc.php');
49
50/* $template->set_filenames(array('confirm_mail' => realpath(NBC_UAM_PATH . 'ConfirmMail.tpl')));*/
51$template->set_filenames(
52  array(
53        'confirm_mail'=>NBC_UAM_PATH.'ConfirmMail.tpl',
54        )
55);
56if ( isset($lang['Theme: '.$user['theme']]) )
57{
58  $template->assign(
59        'THEME_ABOUT',l10n('Theme: '.$user['theme'])
60  );
61}
62
63if ( isset($conf['gallery_url']) )
64        {
65        $template->assign(
66                array(
67        'GALLERY_URL' =>
68                isset($page['gallery_url']) ?
69                        $page['gallery_url'] : $conf['gallery_url'],
70                )
71        );
72}
73
74
75$template->pparse('confirm_mail');
76include(PHPWG_ROOT_PATH.'include/page_tail.php');
77?>
Note: See TracBrowser for help on using the repository browser.