source: extensions/NBC_UserAdvManager/tags/2.12.2/ConfirmMail.php @ 4161

Revision 4161, 2.1 KB checked in by Eric, 10 years ago (diff)

[NBC_UserAdvManager] Buld Tag 2.12.2 from Branch 2.12 :
Bug 1221 fixed - Adding of a new funtion to populate the lastvisit table on Ghost Tracker activation

Bug 1224 fixed - Error in database after plugin activation

Bug 1225 fixed - "Reminder" status don't change from "false" to "true" after the sent of a reminder email

Some code beautify (SQL requests and HTML 4 strict for tpl)

  • Property svn:eol-style set to LF
Line 
1<?php
2//----------------------------------------------------------- include
3define('PHPWG_ROOT_PATH','./../../');
4include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
5include_once (NBC_UserAdvManager_PATH.'include/constants.php');
6include_once (NBC_UserAdvManager_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_UserAdvManager_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_UserAdvManager_PATH . 'ConfirmMail.tpl')));*/
51$template->set_filenames(
52  array(
53        'confirm_mail'=>NBC_UserAdvManager_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.