source: extensions/UserAdvManager/branches/2.12/ConfirmMail.php @ 15907

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

[NBC_UserAdvManager] Merged from trunk to branch 2.12 :

  • Improving plugin upgrade process (database auto upgrade from branch 2.10 and 2.11 to new branch 2.12)
  • Adding new function (Ghost Tracker - Tracking of ghost users) from bug 1194 : fully functionnal.
  • Language files updated for new Ghost Tracker feature.
  • Some code improvement.
  • 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.