source: extensions/UserAdvManager/branches/2.30/rejected.php

Last change on this file was 13124, checked in by Eric, 13 years ago

Merged from trunk to branch 2.30

  • Property svn:eol-style set to LF
File size: 1.6 KB
Line 
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_Rejected_Loggin_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
23if (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';
30  $replacements[] = $conf['gallery_url'];
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}
38   
39$template->assign(
40  array(
41    'GALLERY_URL'          => make_index_url(),
42    'CUSTOM_REJECT_MSG'    => $custom_text,
43  )
44);
45
46if (isset($lang['Theme: '.$user['theme']]))
47{
48  $template->assign(
49        'THEME_ABOUT',l10n('Theme: '.$user['theme'])
50  );
51}
52
53$template->set_filenames(
54  array(
55        'UAM_RejectPage'=>dirname(__FILE__).'/template/rejected.tpl',
56        )
57);
58
59$template->pparse('UAM_RejectPage');
60include(PHPWG_ROOT_PATH.'include/page_tail.php');
61?>
Note: See TracBrowser for help on using the repository browser.