phpBB

Code Changes

File: includes/acp/acp_bbcodes.php

  Unmodified   Added   Modified   Removed
Line 33Line 33
		// Set up general vars
$action = request_var('action', '');
$bbcode_id = request_var('bbcode', 0);

		// Set up general vars
$action = request_var('action', '');
$bbcode_id = request_var('bbcode', 0);

 
		$submit = $request->is_set_post('submit');


$this->tpl_name = 'acp_bbcodes';
$this->page_title = 'ACP_BBCODES';
$form_key = 'acp_bbcodes';

add_form_key($form_key);


$this->tpl_name = 'acp_bbcodes';
$this->page_title = 'ACP_BBCODES';
$form_key = 'acp_bbcodes';

add_form_key($form_key);

 

if ($submit && !check_form_key($form_key))
{
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}


// Set up mode-specific vars
switch ($action)


// Set up mode-specific vars
switch ($action)

Line 364Line 370
		*
* @event core.acp_bbcodes_display_form
* @var string action Type of the action: modify|create

		*
* @event core.acp_bbcodes_display_form
* @var string action Type of the action: modify|create

		* @var	string	sql_ary			The SQL array to get custom bbcode data

		* @var	array	sql_ary			The SQL array to get custom bbcode data

		* @var	array	template_data	Array with form template data
* @var string u_action The u_action link
* @since 3.1.0-a3

		* @var	array	template_data	Array with form template data
* @var string u_action The u_action link
* @since 3.1.0-a3

Line 409Line 415
	{
$bbcode_match = trim($bbcode_match);
$bbcode_tpl = trim($bbcode_tpl);

	{
$bbcode_match = trim($bbcode_match);
$bbcode_tpl = trim($bbcode_tpl);

		$utf8 = strpos($bbcode_match, 'INTTEXT') !== false;




// Allow unicode characters for URL|LOCAL_URL|RELATIVE_URL|INTTEXT tokens
$utf8 = preg_match('/(URL|LOCAL_URL|RELATIVE_URL|INTTEXT)/', $bbcode_match);


$utf8_pcre_properties = phpbb_pcre_utf8_support();



$utf8_pcre_properties = phpbb_pcre_utf8_support();