source: extensions/NBC_UserAdvManager/ConfirmMail.php @ 3393

Last change on this file since 3393 was 3352, checked in by Eric, 15 years ago

First commit

  • Property svn:eol-style set to LF
File size: 1.9 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
61$template->pparse('confirm_mail');
62include(PHPWG_ROOT_PATH.'include/page_tail.php');
63?>
Note: See TracBrowser for help on using the repository browser.