[13121] | 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_Rejected_Loggin_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 | |
---|
| 23 | if (isset($conf_UAM[40]) and $conf_UAM[40] <> '') |
---|
| 24 | { |
---|
| 25 | // Management of Extension flags ([mygallery], [myurl]) |
---|
| 26 | // --------------------------------------------------- |
---|
| 27 | $patterns[] = '#\[mygallery\]#i'; |
---|
| 28 | $replacements[] = $conf['gallery_title']; |
---|
| 29 | $patterns[] = '#\[myurl\]#i'; |
---|
[14730] | 30 | $replacements[] = get_gallery_home_url(); |
---|
[13121] | 31 | |
---|
| 32 | if (function_exists('get_user_language_desc')) |
---|
| 33 | { |
---|
| 34 | $custom_text = get_user_language_desc(preg_replace($patterns, $replacements, $conf_UAM[40])); |
---|
| 35 | } |
---|
| 36 | else $custom_text = l10n(preg_replace($patterns, $replacements, $conf_UAM[40])); |
---|
| 37 | } |
---|
[14371] | 38 | |
---|
| 39 | $Path_UAM = UAM_PATH; // Path to be used in template to reach the icons |
---|
| 40 | |
---|
[13121] | 41 | $template->assign( |
---|
| 42 | array( |
---|
[14371] | 43 | 'UAM_PATH' => $Path_UAM, |
---|
[13121] | 44 | 'CUSTOM_REJECT_MSG' => $custom_text, |
---|
| 45 | ) |
---|
| 46 | ); |
---|
| 47 | |
---|
| 48 | if (isset($lang['Theme: '.$user['theme']])) |
---|
| 49 | { |
---|
| 50 | $template->assign( |
---|
| 51 | 'THEME_ABOUT',l10n('Theme: '.$user['theme']) |
---|
| 52 | ); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | $template->set_filenames( |
---|
| 56 | array( |
---|
| 57 | 'UAM_RejectPage'=>dirname(__FILE__).'/template/rejected.tpl', |
---|
| 58 | ) |
---|
| 59 | ); |
---|
| 60 | |
---|
| 61 | $template->pparse('UAM_RejectPage'); |
---|
| 62 | include(PHPWG_ROOT_PATH.'include/page_tail.php'); |
---|
| 63 | ?> |
---|