[9266] | 1 | <?php |
---|
| 2 | //----------------------------------------------------------- include |
---|
| 3 | define('PHPWG_ROOT_PATH','./../../'); |
---|
| 4 | |
---|
| 5 | include_once( PHPWG_ROOT_PATH.'include/common.inc.php' ); |
---|
| 6 | |
---|
| 7 | include_once (UAM_PATH.'include/constants.php'); |
---|
| 8 | include_once (UAM_PATH.'include/functions.inc.php'); |
---|
| 9 | |
---|
| 10 | $title= l10n('UAM_Deleted_Account_Redirection_Page'); |
---|
| 11 | $page['body_id'] = 'theAboutPage'; |
---|
| 12 | include(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 | |
---|
| 18 | global $user, $lang, $conf, $errors; |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | $conf_UAM = unserialize($conf['UserAdvManager']); |
---|
| 22 | |
---|
[11018] | 23 | if (isset($conf_UAM[31]) and $conf_UAM[31] <> '') |
---|
[9266] | 24 | { |
---|
| 25 | // Management of Extension flags ([mygallery], [myurl]) - [username] flag can't be used here |
---|
| 26 | $patterns[] = '#\[mygallery\]#i'; |
---|
| 27 | $replacements[] = $conf['gallery_title']; |
---|
| 28 | $patterns[] = '#\[myurl\]#i'; |
---|
| 29 | $replacements[] = $conf['gallery_url']; |
---|
| 30 | |
---|
| 31 | if (function_exists('get_user_language_desc')) |
---|
| 32 | { |
---|
[11018] | 33 | $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[31])); |
---|
[9266] | 34 | } |
---|
[11018] | 35 | else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[31])); |
---|
[9266] | 36 | } |
---|
| 37 | |
---|
| 38 | $template->assign( |
---|
| 39 | array( |
---|
| 40 | 'GALLERY_URL' => make_index_url(), |
---|
[9924] | 41 | 'CUSTOM_REDIR_MSG' => $custom_text, |
---|
[9266] | 42 | ) |
---|
| 43 | ); |
---|
| 44 | |
---|
| 45 | if (isset($lang['Theme: '.$user['theme']])) |
---|
| 46 | { |
---|
| 47 | $template->assign( |
---|
| 48 | 'THEME_ABOUT',l10n('Theme: '.$user['theme']) |
---|
| 49 | ); |
---|
| 50 | } |
---|
| 51 | |
---|
| 52 | $template->set_filenames( |
---|
| 53 | array( |
---|
| 54 | 'UAM_RedirPage'=>dirname(__FILE__).'/template/del_account.tpl', |
---|
| 55 | ) |
---|
| 56 | ); |
---|
| 57 | |
---|
| 58 | $template->pparse('UAM_RedirPage'); |
---|
| 59 | include(PHPWG_ROOT_PATH.'include/page_tail.php'); |
---|
| 60 | ?> |
---|