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

Last change on this file since 5610 was 5593, checked in by Eric, 15 years ago

[NBC_UserAdvManager]

  • Code refactoring for Piwigo 2.1 compliance
  • Bug 1508 fixed : Plugin displayed name doesn't show "nbc_" prefix any more
  • Bug 1551 fixed : There was a problem on very first time installation
  • Several translation fixes
  • Template files storage : All admin's templates are now in a "template" directory with css file
  • Property svn:eol-style set to LF
File size: 2.0 KB
Line 
1<?php
2//----------------------------------------------------------- include
3define('PHPWG_ROOT_PATH','./../../');
4include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
5include_once (UAM_PATH.'include/constants.php');
6include_once (UAM_PATH.'include/functions.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', UAM_PATH);
13
14if (isset($_GET['key']))
15{
16
17  global $conf;
18 
19  $conf_UAM_ConfirmMail = unserialize($conf['UserAdvManager_ConfirmMail']);
20
21  if (VerifyConfirmMail($_GET['key']))
22  {
23    $template->assign(
24                        array(
25                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[5],
26                        )
27                );
28  } 
29  else
30  { 
31    $template->assign(
32                        array(
33                                'CONFIRM_MAIL_MESSAGE' => $conf_UAM_ConfirmMail[6],
34                        )
35                );
36  }
37}
38
39/**
40 * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)
41 * for example for clear theme:
42  $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.
43  ' A standard template/theme of PhpWebgallery.';
44 *
45 * Don't forget php tags !!!
46 *
47 * Another way is to code it thru the theme itself in ./themeconf.inc.php
48 */
49
50$title= l10n('confirm_mail_page_title');
51$page['body_id'] = 'theAboutPage';
52include(PHPWG_ROOT_PATH.'include/page_header.php');
53
54@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
55  '/theme/'.$user['theme'].'/themeconf.inc.php');
56
57$template->set_filenames(
58  array(
59        'confirm_mail'=>UAM_PATH.'ConfirmMail.tpl',
60        )
61);
62if (isset($lang['Theme: '.$user['theme']]))
63{
64  $template->assign(
65        'THEME_ABOUT',l10n('Theme: '.$user['theme'])
66  );
67}
68
69if ( isset($conf['gallery_url']) )
70        {
71        $template->assign(
72                array(
73        'GALLERY_URL' =>
74                isset($page['gallery_url']) ?
75                        $page['gallery_url'] : $conf['gallery_url'],
76                )
77        );
78}
79
80
81$template->pparse('confirm_mail');
82include(PHPWG_ROOT_PATH.'include/page_tail.php');
83?>
Note: See TracBrowser for help on using the repository browser.