source: extensions/UserAdvManager/branches/2.10/ConfirmMail.php @ 18717

Last change on this file since 18717 was 3740, checked in by Eric, 15 years ago

2.10.9e : Compatibility improvement with PHP 5.3 - Some old functions will be deprecated.
ereg() was replaced by preg_match()
eregi() was replace by preg_match() with "i" moderator
split() was replace by preg_split()

  • 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_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(array(
19      'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_ok'),
20    ));
21  else 
22    $template->assign(array(
23      'CONFIRM_MAIL_MESSAGE' => l10n('confirm_mail_bad'),
24    ));
25     
26   
27//    redirect(make_index_url());
28}
29
30/**
31 * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)
32 * for example for clear theme:
33  $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.
34  ' A standard template/theme of PhpWebgallery.';
35 *
36 * Don't forget php tags !!!
37 *
38 * Another way is to code it thru the theme itself in ./themeconf.inc.php
39 */
40
41$title= l10n('confirm_mail_page_title');
42$page['body_id'] = 'theAboutPage';
43include(PHPWG_ROOT_PATH.'include/page_header.php');
44
45@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
46  '/theme/'.$user['theme'].'/themeconf.inc.php');
47
48/* $template->set_filenames(array('confirm_mail' => realpath(NBC_UserAdvManager_PATH . 'ConfirmMail.tpl')));*/
49$template->set_filenames(
50  array(
51    'confirm_mail'=>NBC_UserAdvManager_PATH.'ConfirmMail.tpl',
52    )
53  );
54if ( isset($lang['Theme: '.$user['theme']]) )
55{
56  $template->assign(
57    'THEME_ABOUT',l10n('Theme: '.$user['theme'])
58    );
59}
60
61if ( isset($conf['gallery_url']) )
62        {
63        $template->assign(
64                array(
65                'GALLERY_URL' =>
66                         isset($page['gallery_url']) ?
67                              $page['gallery_url'] : $conf['gallery_url'],
68                 )
69         );
70}
71
72
73$template->pparse('confirm_mail');
74include(PHPWG_ROOT_PATH.'include/page_tail.php');
75?>
Note: See TracBrowser for help on using the repository browser.