From e21245f2ee5e3f7a39ae865c93e2f4bca6682f3a Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Thu, 17 Nov 2005 17:32:25 +0000 Subject: - some ucp changes (added the module info too) git-svn-id: file:///svn/phpbb/trunk@5302 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/ucp/ucp_prefs.php | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'phpBB/includes/ucp/ucp_prefs.php') diff --git a/phpBB/includes/ucp/ucp_prefs.php b/phpBB/includes/ucp/ucp_prefs.php index fef42f043f..8d59d04bd7 100644 --- a/phpBB/includes/ucp/ucp_prefs.php +++ b/phpBB/includes/ucp/ucp_prefs.php @@ -126,6 +126,26 @@ class ucp_prefs $style = (isset($style)) ? $style : $user->data['user_style']; $tz = (isset($tz)) ? $tz : $user->data['user_timezone']; + $dateformat_options = ''; + + foreach ($user->lang['dateformats'] as $format => $null) + { + $dateformat_options .= ''; + } + + $s_custom = false; + + $dateformat_options .= ''; + + $template->assign_vars(array( 'ERROR' => (sizeof($error)) ? implode('
', $error) : '', @@ -150,6 +170,9 @@ class ucp_prefs 'NOTIFY_BOTH' => ($notifymethod == NOTIFY_BOTH) ? 'checked="checked"' : '', 'DATE_FORMAT' => $dateformat, + 'S_DATEFORMAT_OPTIONS' => $dateformat_options, + 'S_CUSTOM_DATEFORMAT' => $s_custom, + 'DEFAULT_DATEFORMAT' => $config['default_dateformat'], 'S_LANG_OPTIONS' => language_select($lang), 'S_STYLE_OPTIONS' => style_select($style), @@ -417,4 +440,32 @@ class ucp_prefs } } +/** +* @package module_install +*/ +class ucp_prefs_info +{ + function module() + { + return array( + 'filename' => 'ucp_prefs', + 'title' => 'UCP_PREFS', + 'version' => '1.0.0', + 'modes' => array( + 'personal' => array('title' => 'UCP_PREFS_PERSONAL', 'auth' => ''), + 'view' => array('title' => 'UCP_PREFS_VIEW', 'auth' => ''), + 'post' => array('title' => 'UCP_PREFS_POST', 'auth' => ''), + ), + ); + } + + function install() + { + } + + function uninstall() + { + } +} + ?> \ No newline at end of file -- cgit v1.2.1