source: extensions/UserAdvManager/trunk/GT_del_account.php @ 14371

Last change on this file since 14371 was 14371, checked in by Eric, 12 years ago

Bug 2572 fixed - Adding a local home icon on ConfirmMail, rejected and del_account pages
Bug 2620 fixed - Display of ConfirmMail, rejected and del_account pages have been improved

Merged from trunk to branch 2.4

  • Property svn:eol-style set to LF
File size: 1.8 KB
RevLine 
[9266]1<?php
2//----------------------------------------------------------- include
3define('PHPWG_ROOT_PATH','./../../');
4
5include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
6
7include_once (UAM_PATH.'include/constants.php');
8include_once (UAM_PATH.'include/functions.inc.php');
9
10$title= l10n('UAM_Deleted_Account_Redirection_Page');
11$page['body_id'] = 'theAboutPage';
12include(PHPWG_ROOT_PATH.'include/page_header.php');
13
14@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
15  '/theme/'.$user['theme'].'/themeconf.inc.php');
16
17
18global $user, $lang, $conf, $errors;
19 
20
21$conf_UAM = unserialize($conf['UserAdvManager']);
22
[11018]23if (isset($conf_UAM[23]) and $conf_UAM[23] <> '')
[9266]24{
25  // Management of Extension flags ([mygallery], [myurl]) - [username] flag can't be used here
[12271]26  // -----------------------------------------------------------------------------------------
[9266]27  $patterns[] = '#\[mygallery\]#i';
28  $replacements[] = $conf['gallery_title'];
29  $patterns[] = '#\[myurl\]#i';
30  $replacements[] = $conf['gallery_url'];
31
32  if (function_exists('get_user_language_desc'))
33  {
[11018]34    $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[23]));
[9266]35  }
[11018]36  else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[23]));
[9266]37}
[14371]38
39$Path_UAM = UAM_PATH; // Path to be used in template to reach the icons
40
[9266]41$template->assign(
42  array(
[14371]43    'UAM_PATH'             => $Path_UAM,
[9266]44    'GALLERY_URL'          => make_index_url(),
[9924]45    'CUSTOM_REDIR_MSG'     => $custom_text,
[9266]46  )
47);
48
49if (isset($lang['Theme: '.$user['theme']]))
50{
51  $template->assign(
52        'THEME_ABOUT',l10n('Theme: '.$user['theme'])
53  );
54}
55
56$template->set_filenames(
57  array(
58        'UAM_RedirPage'=>dirname(__FILE__).'/template/del_account.tpl',
59        )
60);
61
62$template->pparse('UAM_RedirPage');
63include(PHPWG_ROOT_PATH.'include/page_tail.php');
64?>
Note: See TracBrowser for help on using the repository browser.