diff options
Diffstat (limited to 'phpBB/includes')
26 files changed, 43 insertions, 59 deletions
diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php index e710260b35..b0b9fdbd15 100644 --- a/phpBB/includes/acp/acp_attachments.php +++ b/phpBB/includes/acp/acp_attachments.php @@ -1222,7 +1222,6 @@ class acp_attachments  					'TOTAL_FILES'		=> $num_files,  					'TOTAL_SIZE'		=> get_formatted_filesize($total_size), -					'S_ON_PAGE'			=> $pagination->on_page($base_url, $num_files, $attachments_per_page, $start),  					'S_LIMIT_DAYS'		=> $s_limit_days,  					'S_SORT_KEY'		=> $s_sort_key,  					'S_SORT_DIR'		=> $s_sort_dir) diff --git a/phpBB/includes/acp/acp_groups.php b/phpBB/includes/acp/acp_groups.php index ec78e0b32b..7ecedcf51e 100644 --- a/phpBB/includes/acp/acp_groups.php +++ b/phpBB/includes/acp/acp_groups.php @@ -727,7 +727,6 @@ class acp_groups  					'S_GROUP_SPECIAL'	=> ($group_row['group_type'] == GROUP_SPECIAL) ? true : false,  					'S_ACTION_OPTIONS'	=> $s_action_options, -					'S_ON_PAGE'		=> $pagination->on_page($base_url, $total_members, $config['topics_per_page'], $start),  					'GROUP_NAME'	=> ($group_row['group_type'] == GROUP_SPECIAL) ? $user->lang['G_' . $group_row['group_name']] : $group_row['group_name'],  					'U_ACTION'			=> $this->u_action . "&g=$group_id", diff --git a/phpBB/includes/acp/acp_inactive.php b/phpBB/includes/acp/acp_inactive.php index 305ba9ac69..140815f06a 100644 --- a/phpBB/includes/acp/acp_inactive.php +++ b/phpBB/includes/acp/acp_inactive.php @@ -295,7 +295,6 @@ class acp_inactive  			'S_LIMIT_DAYS'	=> $s_limit_days,  			'S_SORT_KEY'	=> $s_sort_key,  			'S_SORT_DIR'	=> $s_sort_dir, -			'S_ON_PAGE'		=> $pagination->on_page($base_url, $inactive_count, $per_page, $start),  			'USERS_PER_PAGE'	=> $per_page,  			'U_ACTION'		=> $this->u_action . "&$u_sort_param&users_per_page=$per_page&start=$start", diff --git a/phpBB/includes/acp/acp_logs.php b/phpBB/includes/acp/acp_logs.php index 0ffea2737b..10852e3a68 100644 --- a/phpBB/includes/acp/acp_logs.php +++ b/phpBB/includes/acp/acp_logs.php @@ -138,8 +138,6 @@ class acp_logs  			'L_EXPLAIN'		=> $l_title_explain,  			'U_ACTION'		=> $this->u_action . "&$u_sort_param$keywords_param&start=$start", -			'S_ON_PAGE'		=> $pagination->on_page($base_url, $log_count, $config['topics_per_page'], $start), -  			'S_LIMIT_DAYS'	=> $s_limit_days,  			'S_SORT_KEY'	=> $s_sort_key,  			'S_SORT_DIR'	=> $s_sort_dir, diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index 2fa1f38bd3..3a5298fb58 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -385,6 +385,7 @@ class acp_profile  						'field_show_on_reg'	=> 0,  						'field_show_on_pm'	=> 0,  						'field_show_on_vt'	=> 0, +						'field_show_on_ml'	=> 0,  						'lang_name'			=> utf8_normalize_nfc(request_var('field_ident', '', true)),  						'lang_explain'		=> '',  						'lang_default_value'=> '') @@ -395,7 +396,7 @@ class acp_profile  				// $exclude contains the data we gather in each step  				$exclude = array( -					1	=> array('field_ident', 'lang_name', 'lang_explain', 'field_option_none', 'field_show_on_reg', 'field_show_on_pm', 'field_show_on_vt', 'field_required', 'field_show_novalue', 'field_hide', 'field_show_profile', 'field_no_view'), +					1	=> array('field_ident', 'lang_name', 'lang_explain', 'field_option_none', 'field_show_on_reg', 'field_show_on_pm', 'field_show_on_vt', 'field_show_on_ml', 'field_required', 'field_show_novalue', 'field_hide', 'field_show_profile', 'field_no_view'),  					2	=> array('field_length', 'field_maxlen', 'field_minlen', 'field_validation', 'field_novalue', 'field_default_value'),  					3	=> array('l_lang_name', 'l_lang_explain', 'l_lang_default_value', 'l_lang_options')  				); @@ -407,6 +408,7 @@ class acp_profile  					'field_show_on_reg',  					'field_show_on_pm',  					'field_show_on_vt', +					'field_show_on_ml',  					'field_show_profile',  					'field_hide',  				); @@ -620,6 +622,7 @@ class acp_profile  							'S_SHOW_ON_REG'		=> ($cp->vars['field_show_on_reg']) ? true : false,  							'S_SHOW_ON_PM'		=> ($cp->vars['field_show_on_pm']) ? true : false,  							'S_SHOW_ON_VT'		=> ($cp->vars['field_show_on_vt']) ? true : false, +							'S_SHOW_ON_MEMBERLIST'=> ($cp->vars['field_show_on_ml']) ? true : false,  							'S_FIELD_HIDE'		=> ($cp->vars['field_hide']) ? true : false,  							'S_SHOW_PROFILE'	=> ($cp->vars['field_show_profile']) ? true : false,  							'S_FIELD_NO_VIEW'	=> ($cp->vars['field_no_view']) ? true : false, @@ -880,6 +883,7 @@ class acp_profile  			'field_show_on_reg'		=> $cp->vars['field_show_on_reg'],  			'field_show_on_pm'		=> $cp->vars['field_show_on_pm'],  			'field_show_on_vt'		=> $cp->vars['field_show_on_vt'], +			'field_show_on_ml'		=> $cp->vars['field_show_on_ml'],  			'field_hide'			=> $cp->vars['field_hide'],  			'field_show_profile'	=> $cp->vars['field_show_profile'],  			'field_no_view'			=> $cp->vars['field_no_view'] diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php index bf11e4f8fe..87582dcedb 100644 --- a/phpBB/includes/acp/acp_users.php +++ b/phpBB/includes/acp/acp_users.php @@ -1174,7 +1174,6 @@ class acp_users  				$template->assign_vars(array(  					'S_FEEDBACK'	=> true, -					'S_ON_PAGE'		=> $pagination->on_page($base_url, $log_count, $config['topics_per_page'], $start),  					'S_LIMIT_DAYS'	=> $s_limit_days,  					'S_SORT_KEY'	=> $s_sort_key, @@ -1367,9 +1366,6 @@ class acp_users  					'yim'			=> request_var('yim', $user_row['user_yim']),  					'jabber'		=> utf8_normalize_nfc(request_var('jabber', $user_row['user_jabber'], true)),  					'website'		=> request_var('website', $user_row['user_website']), -					'location'		=> utf8_normalize_nfc(request_var('location', $user_row['user_from'], true)), -					'occupation'	=> utf8_normalize_nfc(request_var('occupation', $user_row['user_occ'], true)), -					'interests'		=> utf8_normalize_nfc(request_var('interests', $user_row['user_interests'], true)),  					'bday_day'		=> 0,  					'bday_month'	=> 0,  					'bday_year'		=> 0, @@ -1401,9 +1397,6 @@ class acp_users  						'website'		=> array(  							array('string', true, 12, 255),  							array('match', true, '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i')), -						'location'		=> array('string', true, 2, 100), -						'occupation'	=> array('string', true, 2, 500), -						'interests'		=> array('string', true, 2, 500),  						'bday_day'		=> array('num', true, 1, 31),  						'bday_month'	=> array('num', true, 1, 12),  						'bday_year'		=> array('num', true, 1901, gmdate('Y', time())), @@ -1431,9 +1424,6 @@ class acp_users  							'user_yim'		=> $data['yim'],  							'user_jabber'	=> $data['jabber'],  							'user_website'	=> $data['website'], -							'user_from'		=> $data['location'], -							'user_occ'		=> $data['occupation'], -							'user_interests'=> $data['interests'],  							'user_birthday'	=> $data['user_birthday'],  						); @@ -1483,9 +1473,6 @@ class acp_users  					'MSN'			=> $data['msn'],  					'JABBER'		=> $data['jabber'],  					'WEBSITE'		=> $data['website'], -					'LOCATION'		=> $data['location'], -					'OCCUPATION'	=> $data['occupation'], -					'INTERESTS'		=> $data['interests'],  					'S_BIRTHDAY_DAY_OPTIONS'	=> $s_birthday_day_options,  					'S_BIRTHDAY_MONTH_OPTIONS'	=> $s_birthday_month_options, @@ -2142,7 +2129,6 @@ class acp_users  				$template->assign_vars(array(  					'S_ATTACHMENTS'		=> true, -					'S_ON_PAGE'			=> $pagination->on_page($base_url, $num_attachments, $config['topics_per_page'], $start),  					'S_SORT_KEY'		=> $s_sort_key,  					'S_SORT_DIR'		=> $s_sort_dir,  				)); diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php index 374b8ff7f7..c2c7ca0abd 100644 --- a/phpBB/includes/constants.php +++ b/phpBB/includes/constants.php @@ -289,4 +289,3 @@ define('WORDS_TABLE',				$table_prefix . 'words');  define('ZEBRA_TABLE',				$table_prefix . 'zebra');  // Additional tables - diff --git a/phpBB/includes/db/schema_data.php b/phpBB/includes/db/schema_data.php index 2c1070f459..9d7153f6b6 100644 --- a/phpBB/includes/db/schema_data.php +++ b/phpBB/includes/db/schema_data.php @@ -771,6 +771,7 @@ $schema_data['phpbb_profile_fields'] = array(  		'field_show_on_reg'		=> array('BOOL', 0),  		'field_show_on_pm'		=> array('BOOL', 0),  		'field_show_on_vt'		=> array('BOOL', 0), +		'field_show_on_ml'		=> array('BOOL', 0),  		'field_show_profile'	=> array('BOOL', 0),  		'field_hide'			=> array('BOOL', 0),  		'field_no_view'			=> array('BOOL', 0), @@ -787,6 +788,9 @@ $schema_data['phpbb_profile_fields'] = array(  $schema_data['phpbb_profile_fields_data'] = array(  	'COLUMNS'		=> array(  		'user_id'				=> array('UINT', 0), +		'pf_phpbb_location'		=> array('VCHAR', ''), +		'pf_phpbb_interests'	=> array('TEXT_UNI', ''), +		'pf_phpbb_occupation'	=> array('TEXT_UNI', ''),  	),  	'PRIMARY_KEY'	=> 'user_id',  ); @@ -1163,15 +1167,12 @@ $schema_data['phpbb_users'] = array(  		'user_sig'					=> array('MTEXT_UNI', ''),  		'user_sig_bbcode_uid'		=> array('VCHAR:8', ''),  		'user_sig_bbcode_bitfield'	=> array('VCHAR:255', ''), -		'user_from'					=> array('VCHAR_UNI:100', ''),  		'user_icq'					=> array('VCHAR:15', ''),  		'user_aim'					=> array('VCHAR_UNI', ''),  		'user_yim'					=> array('VCHAR_UNI', ''),  		'user_msnm'					=> array('VCHAR_UNI', ''),  		'user_jabber'				=> array('VCHAR_UNI', ''),  		'user_website'				=> array('VCHAR_UNI:200', ''), -		'user_occ'					=> array('TEXT_UNI', ''), -		'user_interests'			=> array('TEXT_UNI', ''),  		'user_actkey'				=> array('VCHAR:32', ''),  		'user_newpasswd'			=> array('VCHAR_UNI:40', ''),  		'user_form_salt'			=> array('VCHAR_UNI:32', ''), diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index e14e9e27be..8e9cc3a950 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -21,8 +21,10 @@ if (!defined('IN_PHPBB'))  function generate_smilies($mode, $forum_id)  {  	global $db, $user, $config, $template, $phpbb_dispatcher; -	global $phpEx, $phpbb_root_path; +	global $phpEx, $phpbb_root_path, $phpbb_container; +	$base_url = append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id); +	$pagination = $phpbb_container->get('pagination');  	$start = request_var('start', 0);  	if ($mode == 'window') @@ -61,7 +63,8 @@ function generate_smilies($mode, $forum_id)  			'body' => 'posting_smilies.html')  		); -		generate_pagination(append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id), $smiley_count, $config['smilies_per_page'], $start); +		$start = $pagination->validate_start($start, $config['smilies_per_page'], $smiley_count); +		$pagination->generate_template_pagination($base_url, 'pagination', 'start', $smiley_count, $config['smilies_per_page'], $start);  	}  	$display_link = false; @@ -139,8 +142,8 @@ function generate_smilies($mode, $forum_id)  	{  		$template->assign_vars(array(  			'S_SHOW_SMILEY_LINK' 	=> true, -			'U_MORE_SMILIES' 		=> append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id)) -		); +			'U_MORE_SMILIES' 		=> $base_url, +		));  	}  	if ($mode == 'window') @@ -1476,6 +1479,22 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u  {  	global $db, $auth, $user, $config, $phpEx, $template, $phpbb_root_path, $phpbb_container, $phpbb_dispatcher; +	/** +	* Modify the data for post submitting +	* +	* @event core.modify_submit_post_data +	* @var	string	mode				Variable containing posting mode value +	* @var	string	subject				Variable containing post subject value +	* @var	string	username			Variable containing post author name +	* @var	int		topic_type			Variable containing topic type value +	* @var	array	poll				Array with the poll data for the post +	* @var	array	data				Array with the data for the post +	* @var	bool	update_message		Flag indicating if the post will be updated +	* @var	bool	update_search_index	Flag indicating if the search index will be updated +	* @since 3.1.0-a4 +	*/ +	extract($phpbb_dispatcher->trigger_event('core.modify_submit_post_data', compact(array('mode', 'subject', 'username', 'topic_type', 'poll', 'data', 'update_message', 'update_search_index')))); +  	// We do not handle erasing posts here  	if ($mode == 'delete')  	{ diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 17cdd0ce39..6682622d94 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -210,8 +210,6 @@ function user_add($user_row, $cp_data = false)  		'user_lastpage'			=> '',  		'user_posts'			=> 0,  		'user_colour'			=> '', -		'user_occ'				=> '', -		'user_interests'		=> '',  		'user_avatar'			=> '',  		'user_avatar_type'		=> '',  		'user_avatar_width'		=> 0, diff --git a/phpBB/includes/mcp/mcp_forum.php b/phpBB/includes/mcp/mcp_forum.php index a3b2184d48..7c1c61dae7 100644 --- a/phpBB/includes/mcp/mcp_forum.php +++ b/phpBB/includes/mcp/mcp_forum.php @@ -135,7 +135,6 @@ function mcp_forum_view($id, $mode, $action, $forum_info)  		'S_MCP_ACTION'			=> $url . "&i=$id&forum_action=$action&mode=$mode&start=$start" . (($merge_select) ? $selected_ids : ''), -		'PAGE_NUMBER'			=> $pagination->on_page($base_url, $forum_topics, $topics_per_page, $start),  		'TOTAL_TOPICS'			=> $user->lang('VIEW_FORUM_TOPICS', (int) $forum_topics),  	)); diff --git a/phpBB/includes/mcp/mcp_logs.php b/phpBB/includes/mcp/mcp_logs.php index ac7896606a..7bcb0fc477 100644 --- a/phpBB/includes/mcp/mcp_logs.php +++ b/phpBB/includes/mcp/mcp_logs.php @@ -177,7 +177,6 @@ class mcp_logs  		$pagination->generate_template_pagination($base_url, 'pagination', 'start', $log_count, $config['topics_per_page'], $start);  		$template->assign_vars(array( -			'PAGE_NUMBER'		=> $pagination->on_page($base_url, $log_count, $config['topics_per_page'], $start),  			'TOTAL'				=> $user->lang('TOTAL_LOGS', (int) $log_count),  			'L_TITLE'			=> $user->lang['MCP_LOGS'], diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index d9197da07e..016094c5d4 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -34,6 +34,7 @@ class mcp_main  	{  		global $auth, $db, $user, $template, $action;  		global $config, $phpbb_root_path, $phpEx, $request; +		global $phpbb_dispatcher;  		$quickmod = ($mode == 'quickmod') ? true : false; @@ -151,6 +152,16 @@ class mcp_main  				mcp_restore_topic($topic_ids);  			break; + +			default: +				/** +				* This event allows you to handle custom quickmod options +				* +				* @event core.modify_quickmod_actions +				* @since 3.1.0-a4 +				*/ +				$phpbb_dispatcher->dispatch('core.modify_quickmod_actions'); +			break;  		}  		switch ($mode) diff --git a/phpBB/includes/mcp/mcp_notes.php b/phpBB/includes/mcp/mcp_notes.php index 055ca0e882..28de8724be 100644 --- a/phpBB/includes/mcp/mcp_notes.php +++ b/phpBB/includes/mcp/mcp_notes.php @@ -229,7 +229,6 @@ class mcp_notes  			'L_TITLE'			=> $user->lang['MCP_NOTES_USER'], -			'PAGE_NUMBER'		=> $pagination->on_page($base_url, $log_count, $config['topics_per_page'], $start),  			'TOTAL_REPORTS'		=> $user->lang('LIST_REPORTS', (int) $log_count),  			'RANK_TITLE'		=> $rank_title, diff --git a/phpBB/includes/mcp/mcp_pm_reports.php b/phpBB/includes/mcp/mcp_pm_reports.php index d0801a2b47..008984b1c3 100644 --- a/phpBB/includes/mcp/mcp_pm_reports.php +++ b/phpBB/includes/mcp/mcp_pm_reports.php @@ -309,7 +309,6 @@ class mcp_pm_reports  					'S_MCP_ACTION'			=> $this->u_action,  					'S_CLOSED'				=> ($mode == 'pm_reports_closed') ? true : false, -					'PAGE_NUMBER'			=> $pagination->on_page($base_url, $total, $config['topics_per_page'], $start),  					'TOTAL'					=> $total,  					'TOTAL_REPORTS'			=> $user->lang('LIST_REPORTS', (int) $total),  					) diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 9f9c22a5c5..a46c4bd499 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -547,7 +547,6 @@ class mcp_queue  					'S_TOPICS'				=> $is_topics,  					'S_RESTORE'				=> $is_restore, -					'PAGE_NUMBER'			=> $pagination->on_page($base_url, $total, $config['topics_per_page'], $start),  					'TOPIC_ID'				=> $topic_id,  					'TOTAL'					=> $user->lang(((!$is_topics) ? 'VIEW_TOPIC_POSTS' : 'VIEW_FORUM_TOPICS'), (int) $total),  				)); diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index 954f8a8349..8026e071cd 100644 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -423,7 +423,6 @@ class mcp_reports  					'S_FORUM_OPTIONS'		=> $forum_options,  					'S_CLOSED'				=> ($mode == 'reports_closed') ? true : false, -					'PAGE_NUMBER'			=> $pagination->on_page($base_url, $total, $config['topics_per_page'], $start),  					'TOPIC_ID'				=> $topic_id,  					'TOTAL'					=> $total,  					'TOTAL_REPORTS'			=> $user->lang('LIST_REPORTS', (int) $total), diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index a4c561a3bf..cdb88bf2bf 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -343,7 +343,6 @@ function mcp_topic_view($id, $mode, $action)  		'RETURN_TOPIC'		=> sprintf($user->lang['RETURN_TOPIC'], '<a href="' . append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f={$topic_info['forum_id']}&t={$topic_info['topic_id']}&start=$start") . '">', '</a>'),  		'RETURN_FORUM'		=> sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", "f={$topic_info['forum_id']}&start=$start") . '">', '</a>'), -		'PAGE_NUMBER'		=> $pagination->on_page($base_url, $total, $posts_per_page, $start),  		'TOTAL_POSTS'		=> $user->lang('VIEW_TOPIC_POSTS', (int) $total),  	));  } diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php index e39bddec5b..d396d004dc 100644 --- a/phpBB/includes/mcp/mcp_warn.php +++ b/phpBB/includes/mcp/mcp_warn.php @@ -186,7 +186,6 @@ class mcp_warn  			'S_SELECT_SORT_KEY'		=> $s_sort_key,  			'S_SELECT_SORT_DAYS'	=> $s_limit_days, -			'PAGE_NUMBER'		=> $pagination->on_page($base_url, $user_count, $config['topics_per_page'], $start),  			'TOTAL_USERS'		=> $user->lang('LIST_USERS', (int) $user_count),  		));  	} diff --git a/phpBB/includes/ucp/ucp_attachments.php b/phpBB/includes/ucp/ucp_attachments.php index e687ee9cdc..6a5b48a181 100644 --- a/phpBB/includes/ucp/ucp_attachments.php +++ b/phpBB/includes/ucp/ucp_attachments.php @@ -178,7 +178,6 @@ class ucp_attachments  		$pagination->generate_template_pagination($base_url, 'pagination', 'start', $num_attachments, $config['topics_per_page'], $start);  		$template->assign_vars(array( -			'PAGE_NUMBER'			=> $pagination->on_page($base_url, $num_attachments, $config['topics_per_page'], $start),  			'TOTAL_ATTACHMENTS'		=> $num_attachments,  			'L_TITLE'				=> $user->lang['UCP_ATTACHMENTS'], diff --git a/phpBB/includes/ucp/ucp_groups.php b/phpBB/includes/ucp/ucp_groups.php index a17c87e5a1..373d9433b2 100644 --- a/phpBB/includes/ucp/ucp_groups.php +++ b/phpBB/includes/ucp/ucp_groups.php @@ -821,7 +821,6 @@ class ucp_groups  						$template->assign_vars(array(  							'S_LIST'			=> true,  							'S_ACTION_OPTIONS'	=> $s_action_options, -							'S_ON_PAGE'			=> $pagination->on_page($template, $user, $base_url, $total_members, $config['topics_per_page'], $start),  							'U_ACTION'			=> $this->u_action . "&g=$group_id",  							'S_UCP_ACTION'		=> $this->u_action . "&g=$group_id", diff --git a/phpBB/includes/ucp/ucp_main.php b/phpBB/includes/ucp/ucp_main.php index b9f951ace6..3ccf3e3545 100644 --- a/phpBB/includes/ucp/ucp_main.php +++ b/phpBB/includes/ucp/ucp_main.php @@ -195,9 +195,6 @@ class ucp_main  					'POSTS_DAY'			=> $user->lang('POST_DAY', $posts_per_day),  					'POSTS_PCT'			=> $user->lang('POST_PCT', $percentage), -					'OCCUPATION'	=> (!empty($row['user_occ'])) ? $row['user_occ'] : '', -					'INTERESTS'		=> (!empty($row['user_interests'])) ? $row['user_interests'] : '', -  //					'S_GROUP_OPTIONS'	=> $group_options,  					'U_SEARCH_USER'		=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", 'author_id=' . $user->data['user_id'] . '&sr=posts') : '', @@ -674,7 +671,6 @@ class ucp_main  			$pagination->generate_template_pagination($this->u_action, 'pagination', 'start', $topics_count, $config['topics_per_page'], $start);  			$template->assign_vars(array( -				'PAGE_NUMBER'	=> $pagination->on_page($this->u_action, $topics_count, $config['topics_per_page'], $start),  				'TOTAL_TOPICS'	=> $user->lang('VIEW_FORUM_TOPICS', (int) $topics_count),  			));  		} diff --git a/phpBB/includes/ucp/ucp_notifications.php b/phpBB/includes/ucp/ucp_notifications.php index c5963a1ebc..7c487b9073 100644 --- a/phpBB/includes/ucp/ucp_notifications.php +++ b/phpBB/includes/ucp/ucp_notifications.php @@ -154,7 +154,6 @@ class ucp_notifications  				$pagination->generate_template_pagination($base_url, 'pagination', 'start', $notifications['total_count'], $config['topics_per_page'], $start);  				$template->assign_vars(array( -					'PAGE_NUMBER'	=> $pagination->on_page($base_url, $notifications['total_count'], $config['topics_per_page'], $start),  					'TOTAL_COUNT'	=> $notifications['total_count'],  					'U_MARK_ALL'	=> $base_url . '&mark=all&token=' . generate_link_hash('mark_all_notifications_read'),  				)); diff --git a/phpBB/includes/ucp/ucp_pm_viewfolder.php b/phpBB/includes/ucp/ucp_pm_viewfolder.php index 0ea94835f2..a567283543 100644 --- a/phpBB/includes/ucp/ucp_pm_viewfolder.php +++ b/phpBB/includes/ucp/ucp_pm_viewfolder.php @@ -458,7 +458,6 @@ function get_pm_from($folder_id, $folder, $user_id)  	$pagination->generate_template_pagination($base_url, 'pagination', 'start', $pm_count, $config['topics_per_page'], $start);  	$template->assign_vars(array( -		'PAGE_NUMBER'		=> $pagination->on_page($base_url, $pm_count, $config['topics_per_page'], $start),  		'TOTAL_MESSAGES'	=> $user->lang('VIEW_PM_MESSAGES', (int) $pm_count),  		'POST_IMG'		=> (!$auth->acl_get('u_sendpm')) ? $user->img('button_topic_locked', 'POST_PM_LOCKED') : $user->img('button_pm_new', 'POST_NEW_PM'), diff --git a/phpBB/includes/ucp/ucp_pm_viewmessage.php b/phpBB/includes/ucp/ucp_pm_viewmessage.php index 4ec2adcc16..e513b8ade2 100644 --- a/phpBB/includes/ucp/ucp_pm_viewmessage.php +++ b/phpBB/includes/ucp/ucp_pm_viewmessage.php @@ -188,7 +188,6 @@ function view_message($id, $mode, $folder_id, $msg_id, $folder, $message_row)  		'AUTHOR_AVATAR'		=> (isset($user_info['avatar'])) ? $user_info['avatar'] : '',  		'AUTHOR_JOINED'		=> $user->format_date($user_info['user_regdate']),  		'AUTHOR_POSTS'		=> (int) $user_info['user_posts'], -		'AUTHOR_FROM'		=> (!empty($user_info['user_from'])) ? $user_info['user_from'] : '',  		'ONLINE_IMG'		=> (!$config['load_onlinetrack']) ? '' : ((isset($user_info['online']) && $user_info['online']) ? $user->img('icon_user_online', $user->lang['ONLINE']) : $user->img('icon_user_offline', $user->lang['OFFLINE'])),  		'S_ONLINE'			=> (!$config['load_onlinetrack']) ? false : ((isset($user_info['online']) && $user_info['online']) ? true : false), diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php index 6ddc6833b7..8def48b1b4 100644 --- a/phpBB/includes/ucp/ucp_profile.php +++ b/phpBB/includes/ucp/ucp_profile.php @@ -270,9 +270,6 @@ class ucp_profile  					'yim'			=> request_var('yim', $user->data['user_yim']),  					'jabber'		=> utf8_normalize_nfc(request_var('jabber', $user->data['user_jabber'], true)),  					'website'		=> request_var('website', $user->data['user_website']), -					'location'		=> utf8_normalize_nfc(request_var('location', $user->data['user_from'], true)), -					'occupation'	=> utf8_normalize_nfc(request_var('occupation', $user->data['user_occ'], true)), -					'interests'		=> utf8_normalize_nfc(request_var('interests', $user->data['user_interests'], true)),  				);  				if ($config['allow_birthdays']) @@ -307,9 +304,6 @@ class ucp_profile  						'website'		=> array(  							array('string', true, 12, 255),  							array('match', true, '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i')), -						'location'		=> array('string', true, 2, 100), -						'occupation'	=> array('string', true, 2, 500), -						'interests'		=> array('string', true, 2, 500),  					);  					if ($config['allow_birthdays']) @@ -355,9 +349,6 @@ class ucp_profile  							'user_yim'		=> $data['yim'],  							'user_jabber'	=> $data['jabber'],  							'user_website'	=> $data['website'], -							'user_from'		=> $data['location'], -							'user_occ'		=> $data['occupation'], -							'user_interests'=> $data['interests'],  							'user_notify_type'	=> $data['notify'],  						); @@ -426,9 +417,6 @@ class ucp_profile  					'MSN'		=> $data['msn'],  					'JABBER'	=> $data['jabber'],  					'WEBSITE'	=> $data['website'], -					'LOCATION'	=> $data['location'], -					'OCCUPATION'=> $data['occupation'], -					'INTERESTS'	=> $data['interests'],  				));  				// Get additional profile fields and assign them to the template block var 'profile_fields'  | 
