Vergleich admin/modules/config/languages.php - 1.8.6 - 1.8.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 44Zeile 44
		{
$info = str_replace("\\", "\\\\", $info);
$info = str_replace('$', '\$', $info);

		{
$info = str_replace("\\", "\\\\", $info);
$info = str_replace('$', '\$', $info);

			



			if($key == 'admin' || $key == 'rtl')
{
$info = (int)$info;
}

			if($key == 'admin' || $key == 'rtl')
{
$info = (int)$info;
}

			



			$newlanginfo[$key] = str_replace("\"", '\"', $info);
}


			$newlanginfo[$key] = str_replace("\"", '\"', $info);
}


Zeile 103Zeile 103
	}

$page->add_breadcrumb_item(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]), "index.php?module=config-languages&amp;action=edit&amp;lang={$editlang}");

	}

$page->add_breadcrumb_item(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]), "index.php?module=config-languages&amp;action=edit&amp;lang={$editlang}");

	$page->add_breadcrumb_item($lang->nav_editing_set);

	$page->add_breadcrumb_item($lang->nav_editing_set);


$page->output_header($lang->languages);



$page->output_header($lang->languages);


Zeile 132Zeile 132
		if($langinfo['admin'])
{
$mybb->input['info']['admin'] = 1;

		if($langinfo['admin'])
{
$mybb->input['info']['admin'] = 1;

		}
else

		}
else

		{
$mybb->input['info']['admin'] = 0;
}

		{
$mybb->input['info']['admin'] = 0;
}

Zeile 164Zeile 164
	if(!is_writable($file))
{
$no_write = 1;

	if(!is_writable($file))
{
$no_write = 1;

		$page->output_alert($lang->alert_note_cannot_write);
}

$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_language_file, array('disabled' => $no_write));

		$page->output_alert($lang->alert_note_cannot_write);
}

$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_language_file, array('disabled' => $no_write));


$form->output_submit_wrapper($buttons);
$form->end();


$form->output_submit_wrapper($buttons);
$form->end();

Zeile 197Zeile 197
	{
flash_message($lang->error_folders_fail, 'error');
admin_redirect("index.php?module=config-languages");

	{
flash_message($lang->error_folders_fail, 'error');
admin_redirect("index.php?module=config-languages");

	}

$plugins->run_hooks("admin_config_languages_quick_phrases");


	}

$plugins->run_hooks("admin_config_languages_quick_phrases");


	$quick_phrases = array(
'member.lang.php' => array(
'agreement' => $lang->quickphrases_agreement,

	$quick_phrases = array(
'member.lang.php' => array(
'agreement' => $lang->quickphrases_agreement,

Zeile 231Zeile 231
				unset($l);

foreach($phrases as $key => $value)

				unset($l);

foreach($phrases as $key => $value)

				{

				{

					// validation - we fetch from input only variables that are defined in $quick_phrases array
$contents_file[$key] = $mybb->input['edit'][$key];
}

					// validation - we fetch from input only variables that are defined in $quick_phrases array
$contents_file[$key] = $mybb->input['edit'][$key];
}

Zeile 244Zeile 244
					// Lets make nice credits header in language file
$lang_file_credits = "<?php\n/**\n";
$lang_file_credits .= " * MyBB Copyright 2014 MyBB Group, All Rights Reserved\n *\n";

					// Lets make nice credits header in language file
$lang_file_credits = "<?php\n/**\n";
$lang_file_credits .= " * MyBB Copyright 2014 MyBB Group, All Rights Reserved\n *\n";

					$lang_file_credits .= " * Website: http://www.mybb.com\n";
$lang_file_credits .= " * License: http://www.mybb.com/about/license\n *\n */\n\n";

					$lang_file_credits .= " * Website: https://mybb.com\n";
$lang_file_credits .= " * License: https://mybb.com/about/license\n *\n */\n\n";

					$lang_file_credits .= "// ".str_repeat('-',80)."\n";
$lang_file_credits .= "// MyBB Language Pack File.\n";
$lang_file_credits .= "// This file has been generated by MyBB - buildin language pack editor.\n";

					$lang_file_credits .= "// ".str_repeat('-',80)."\n";
$lang_file_credits .= "// MyBB Language Pack File.\n";
$lang_file_credits .= "// This file has been generated by MyBB - buildin language pack editor.\n";

Zeile 293Zeile 293
		'title' => $lang->language_files,
'link' => "index.php?module=config-languages&amp;action=edit&amp;lang=".$editlang,
'description' => $lang->language_files_desc

		'title' => $lang->language_files,
'link' => "index.php?module=config-languages&amp;action=edit&amp;lang=".$editlang,
'description' => $lang->language_files_desc

	);


	);


	$sub_tabs['quick_phrases'] = array(
'title' => $lang->quick_phrases,
'link' => "index.php?module=config-languages&amp;action=quick_phrases&amp;lang=".$editlang,
'description' => $lang->quick_phrases_desc
);

	$sub_tabs['quick_phrases'] = array(
'title' => $lang->quick_phrases,
'link' => "index.php?module=config-languages&amp;action=quick_phrases&amp;lang=".$editlang,
'description' => $lang->quick_phrases_desc
);





	$page->output_nav_tabs($sub_tabs, 'quick_phrases');

	$page->output_nav_tabs($sub_tabs, 'quick_phrases');





	$form = new Form('index.php?module=config-languages&amp;action=quick_phrases&amp;lang='.$editlang, 'post', 'quick_phrases');

	$form = new Form('index.php?module=config-languages&amp;action=quick_phrases&amp;lang='.$editlang, 'post', 'quick_phrases');





	if($errors)
{
$page->output_inline_error($errors);

	if($errors)
{
$page->output_inline_error($errors);

	}

$table = new Table;

	}

$table = new Table;


// Check if files are writable, before allowing submission
$no_write = null;


// Check if files are writable, before allowing submission
$no_write = null;

Zeile 325Zeile 325
	if($no_write)
{
$page->output_alert($lang->alert_note_cannot_write);

	if($no_write)
{
$page->output_alert($lang->alert_note_cannot_write);

	}

	}


$form_container = new FormContainer($lang->quick_phrases);



$form_container = new FormContainer($lang->quick_phrases);


Zeile 341Zeile 341

@include $folder.$file;
foreach($phrases as $phrase => $description)


@include $folder.$file;
foreach($phrases as $phrase => $description)

		{

		{

			$value = $l[$phrase];
if(my_strtolower($langinfo['charset']) == "utf-8")
{

			$value = $l[$phrase];
if(my_strtolower($langinfo['charset']) == "utf-8")
{

				$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $value);

				$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $value);

			}
else
{

			}
else
{

				$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $value);

				$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string', $value);

			}

$form_container->output_row($description, $phrase, $form->generate_text_area("edit[$phrase]", $value, array('id' => 'lang_'.$phrase, 'rows' => 2, 'class' => "langeditor_textarea_edit {$quickphrases_dir_class}")), 'lang_'.$phrase, array('width' => '50%'));

			}

$form_container->output_row($description, $phrase, $form->generate_text_area("edit[$phrase]", $value, array('id' => 'lang_'.$phrase, 'rows' => 2, 'class' => "langeditor_textarea_edit {$quickphrases_dir_class}")), 'lang_'.$phrase, array('width' => '50%'));

Zeile 373Zeile 373
	$folder = MYBB_ROOT."inc/languages/".$editlang."/";

$page->add_breadcrumb_item(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]), "index.php?module=config-languages&amp;action=edit&amp;lang={$editlang}");

	$folder = MYBB_ROOT."inc/languages/".$editlang."/";

$page->add_breadcrumb_item(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]), "index.php?module=config-languages&amp;action=edit&amp;lang={$editlang}");





	$editwith = basename($mybb->input['editwith']);
$editwithfolder = '';

	$editwith = basename($mybb->input['editwith']);
$editwithfolder = '';





	if($editwith)

	if($editwith)

	{

	{

		$editwithfolder = MYBB_ROOT."inc/languages/".$editwith."/";

		$editwithfolder = MYBB_ROOT."inc/languages/".$editwith."/";

	}

	}


// Validate that edited language pack really exists
if(file_exists(MYBB_ROOT."inc/languages/".$editlang.".php"))


// Validate that edited language pack really exists
if(file_exists(MYBB_ROOT."inc/languages/".$editlang.".php"))

Zeile 388Zeile 388
		// Then validate edited language pack folders (and try to fix them if missing)
@mkdir($folder);
@mkdir($folder."admin");

		// Then validate edited language pack folders (and try to fix them if missing)
@mkdir($folder);
@mkdir($folder."admin");

	}


	}


	if(!file_exists($folder) || !file_exists($folder."admin"))

	if(!file_exists($folder) || !file_exists($folder."admin"))

	{

	{

		flash_message($lang->error_folders_fail, 'error');

		flash_message($lang->error_folders_fail, 'error');

		admin_redirect("index.php?module=config-languages");
}


		admin_redirect("index.php?module=config-languages");
}


	// If we edit in compare mode, verify that at least folders of compared language exists
if($editwithfolder && (!file_exists($editwithfolder) || !file_exists($editwithfolder)))
{

	// If we edit in compare mode, verify that at least folders of compared language exists
if($editwithfolder && (!file_exists($editwithfolder) || !file_exists($editwithfolder)))
{

Zeile 404Zeile 404
	}

$plugins->run_hooks("admin_config_languages_edit");

	}

$plugins->run_hooks("admin_config_languages_edit");





	if(isset($mybb->input['file']))
{
// Validate input

	if(isset($mybb->input['file']))
{
// Validate input

Zeile 414Zeile 414
			$file = 'admin/'.$file;
}
$page->add_breadcrumb_item($file);

			$file = 'admin/'.$file;
}
$page->add_breadcrumb_item($file);





		$editfile = $folder.$file;
$withfile = '';

$editwithfile = '';

		$editfile = $folder.$file;
$withfile = '';

$editwithfile = '';

		if($editwithfolder)
{

		if($editwithfolder)
{

			$editwithfile = $editwithfolder.$file;
}


			$editwithfile = $editwithfolder.$file;
}


Zeile 434Zeile 434
			unset($l);
@include $editwithfile;
$valid_keys = array_merge($valid_keys, (array)$l);

			unset($l);
@include $editwithfile;
$valid_keys = array_merge($valid_keys, (array)$l);

			unset($l);


			unset($l);


			// Then fetch from input only valid keys
foreach($valid_keys as $key => $value)
{

			// Then fetch from input only valid keys
foreach($valid_keys as $key => $value)
{

Zeile 451Zeile 451
				// Lets make nice credits header in language file
$lang_file_credits = "<?php\n/**\n";
$lang_file_credits .= " * MyBB Copyright 2014 MyBB Group, All Rights Reserved\n *\n";

				// Lets make nice credits header in language file
$lang_file_credits = "<?php\n/**\n";
$lang_file_credits .= " * MyBB Copyright 2014 MyBB Group, All Rights Reserved\n *\n";

				$lang_file_credits .= " * Website: http://www.mybb.com\n";
$lang_file_credits .= " * License: http://www.mybb.com/about/license\n *\n */\n\n";

				$lang_file_credits .= " * Website: https://mybb.com\n";
$lang_file_credits .= " * License: https://mybb.com/about/license\n *\n */\n\n";

				$lang_file_credits .= "// ".str_repeat('-',80)."\n";
$lang_file_credits .= "// MyBB Language Pack File.\n";
$lang_file_credits .= "// This file has been generated by MyBB - buildin language pack editor.\n";

				$lang_file_credits .= "// ".str_repeat('-',80)."\n";
$lang_file_credits .= "// MyBB Language Pack File.\n";
$lang_file_credits .= "// This file has been generated by MyBB - buildin language pack editor.\n";

Zeile 544Zeile 544
		{
$no_write = 1;
$page->output_alert($lang->alert_note_cannot_write);

		{
$no_write = 1;
$page->output_alert($lang->alert_note_cannot_write);

		}

		}


$form_container = new FormContainer(htmlspecialchars_uni($file));
if($editwithfile && $withvars)


$form_container = new FormContainer(htmlspecialchars_uni($file));
if($editwithfile && $withvars)

Zeile 555Zeile 555
			$form_container->output_row_header(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]));

foreach($withvars as $key => $value)

			$form_container->output_row_header(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]));

foreach($withvars as $key => $value)

			{
if(my_strtolower($langinfo['charset']) == "utf-8")
{
$withvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $withvars[$key]);
$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $editvars[$key]);
}
else

			{
if(my_strtolower($langinfo['charset']) == "utf-8")
{
$withvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $withvars[$key]);
$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $editvars[$key]);
}
else

				{

				{

					$withvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $withvars[$key]);
$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $editvars[$key]);

					$withvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $withvars[$key]);
$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string', $editvars[$key]);

				}

// Find problems and differences in editfile in comparision to editwithfile

				}

// Find problems and differences in editfile in comparision to editwithfile

Zeile 577Zeile 577
				if($withvars[$key] && !$editvars[$key] || $withvars_value_cbvCount != $editvars_value_cbvCount)
{
$textarea_issue_class = " langeditor_textarea_issue";

				if($withvars[$key] && !$editvars[$key] || $withvars_value_cbvCount != $editvars_value_cbvCount)
{
$textarea_issue_class = " langeditor_textarea_issue";

				}
else

				}
else

				{
$textarea_issue_class = "";
}

				{
$textarea_issue_class = "";
}

Zeile 595Zeile 595
				{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

				{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

						$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $editvars[$key]);

						$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $editvars[$key]);

					}
else
{

					}
else
{

						$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $editvars[$key]);

						$editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string', $editvars[$key]);

					}

					}

						



					$form_container->output_row("", "", "", "", array('width' => '50%', 'skip_construct' => true));
$form_container->output_row($key, "", $form->generate_text_area("edit[$key]", $editvars[$key], array('id' => 'lang_'.$key, 'rows' => 2, 'class' => "langeditor_textarea_edit {$editlang_dir_class}")), 'lang_'.$key, array('width' => '50%'));
}

					$form_container->output_row("", "", "", "", array('width' => '50%', 'skip_construct' => true));
$form_container->output_row($key, "", $form->generate_text_area("edit[$key]", $editvars[$key], array('id' => 'lang_'.$key, 'rows' => 2, 'class' => "langeditor_textarea_edit {$editlang_dir_class}")), 'lang_'.$key, array('width' => '50%'));
}

Zeile 618Zeile 618
			{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

			{
if(my_strtolower($langinfo['charset']) == "utf-8")
{

					$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), $value);

					$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $value);

				}
else
{

				}
else
{

					$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $value);

					$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string', $value);

				}
$form_container->output_row($key, "", $form->generate_text_area("edit[$key]", $value, array('id' => 'lang_'.$key, 'rows' => 2, 'class' => "langeditor_textarea_edit {$editlang_dir_class}")), 'lang_'.$key, array('width' => '50%'));
}

				}
$form_container->output_row($key, "", $form->generate_text_area("edit[$key]", $value, array('id' => 'lang_'.$key, 'rows' => 2, 'class' => "langeditor_textarea_edit {$editlang_dir_class}")), 'lang_'.$key, array('width' => '50%'));
}

Zeile 642Zeile 642
	else
{
// Build and output list of available language files

	else
{
// Build and output list of available language files





		$page->output_header($lang->languages);

$sub_tabs['language_files'] = array(

		$page->output_header($lang->languages);

$sub_tabs['language_files'] = array(

Zeile 673Zeile 673
			$table->construct_header($lang->phrases, array("class" => "align_center", "width" => 100));
$table->construct_header(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]));
$table->construct_header($lang->issues, array("class" => "align_center", "width" => 100));

			$table->construct_header($lang->phrases, array("class" => "align_center", "width" => 100));
$table->construct_header(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]));
$table->construct_header($lang->issues, array("class" => "align_center", "width" => 100));

			$table->construct_header($lang->controls, array("class" => "align_center", "width" => 100));
}
else
{

			$table->construct_header($lang->controls, array("class" => "align_center", "width" => 100));
}
else
{

			$table->construct_header(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]));
$table->construct_header($lang->phrases, array("class" => "align_center", "width" => 100));
$table->construct_header($lang->controls, array("class" => "align_center", "width" => 100));

			$table->construct_header(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]));
$table->construct_header($lang->phrases, array("class" => "align_center", "width" => 100));
$table->construct_header($lang->controls, array("class" => "align_center", "width" => 100));

Zeile 691Zeile 691
				if(preg_match("#\.lang\.php$#", $file))
{
$filenames[] = $file;

				if(preg_match("#\.lang\.php$#", $file))
{
$filenames[] = $file;

				}
}

				}
}

			closedir($handle);
sort($filenames);
}

			closedir($handle);
sort($filenames);
}

Zeile 738Zeile 738
				$table->construct_cell($file, array("class" => "langeditor_editwithfile"));
$table->construct_cell(count($editvars_left), array("class" => "langeditor_phrases"));
$table->construct_cell("", array("class" => "langeditor_editfile"));

				$table->construct_cell($file, array("class" => "langeditor_editwithfile"));
$table->construct_cell(count($editvars_left), array("class" => "langeditor_phrases"));
$table->construct_cell("", array("class" => "langeditor_editfile"));

				$table->construct_cell($icon_issues, array("class" => "langeditor_issues"));

				$table->construct_cell($icon_issues, array("class" => "langeditor_issues"));

				$table->construct_cell("<a href=\"index.php?module=config-languages&amp;action=edit&amp;lang={$editlang}&amp;editwith={$editwith}&amp;file={$file}\">{$lang->edit}</a>", array("class" => "langeditor_edit"));
$table->construct_row();
}

				$table->construct_cell("<a href=\"index.php?module=config-languages&amp;action=edit&amp;lang={$editlang}&amp;editwith={$editwith}&amp;file={$file}\">{$lang->edit}</a>", array("class" => "langeditor_edit"));
$table->construct_row();
}

Zeile 752Zeile 752
				if(count($editvars_right >0))
{
$icon_issues = "<span class='langeditor_nothingtocompare' title='".$lang->issues_nothingtocompare."'></span>";

				if(count($editvars_right >0))
{
$icon_issues = "<span class='langeditor_nothingtocompare' title='".$lang->issues_nothingtocompare."'></span>";

				}


				}


				$table->construct_cell("", array("class" => "langeditor_editwithfile"));
$table->construct_cell("", array("class" => "langeditor_phrases"));
$table->construct_cell($file, array("class" => "langeditor_editfile"));

				$table->construct_cell("", array("class" => "langeditor_editwithfile"));
$table->construct_cell("", array("class" => "langeditor_phrases"));
$table->construct_cell($file, array("class" => "langeditor_editfile"));

Zeile 765Zeile 765
			{
@include $editwithfolder.$file;
$editvars_left = (array)$l;

			{
@include $editwithfolder.$file;
$editvars_left = (array)$l;

				unset($l);

				unset($l);

				@include $folder.$file;
$editvars_right = (array)$l;
unset($l);

				@include $folder.$file;
$editvars_right = (array)$l;
unset($l);





				$table->construct_cell($file, array("class" => "langeditor_editwithfile"));
$table->construct_cell(count($editvars_left), array("class" => "langeditor_phrases"));
$table->construct_cell($file, array("class" => "langeditor_editfile"));

				$table->construct_cell($file, array("class" => "langeditor_editwithfile"));
$table->construct_cell(count($editvars_left), array("class" => "langeditor_phrases"));
$table->construct_cell($file, array("class" => "langeditor_editfile"));

Zeile 799Zeile 799
		else
{
foreach($filenames as $key => $file)

		else
{
foreach($filenames as $key => $file)

			{

			{

				@include $folder.$file;
$editvars_count = (array)$l;
unset($l);

				@include $folder.$file;
$editvars_count = (array)$l;
unset($l);

Zeile 990Zeile 990
	);
$sub_tabs['find_language'] = array(
'title' => $lang->find_language_packs,

	);
$sub_tabs['find_language'] = array(
'title' => $lang->find_language_packs,

		'link' => "http://community.mybb.com/mods.php?action=browse&category=19",
'target' => "_blank"


		'link' => "https://community.mybb.com/mods.php?action=browse&category=19",
'link_target' => "_blank",
'link_rel' => "noopener"

	);

$plugins->run_hooks("admin_config_languages_start");

	);

$plugins->run_hooks("admin_config_languages_start");

Zeile 1016Zeile 1017

if(!empty($langinfo['website']))
{


if(!empty($langinfo['website']))
{

			$author = "<a href=\"{$langinfo['website']}\" target=\"_blank\">{$langinfo['author']}</a>";

			$author = "<a href=\"{$langinfo['website']}\" target=\"_blank\" rel=\"noopener\">{$langinfo['author']}</a>";

		}
else
{

		}
else
{

Zeile 1049Zeile 1050
	$table->output($lang->installed_language_packs);

$page->output_footer();

	$table->output($lang->installed_language_packs);

$page->output_footer();

 
}

/**
* Fixes url encoded unicode characters
*
* @param string $string The string to encode.
* @return string The encoded string.
*/
function encode_language_string_utf8($matches)
{
return dec_to_utf8(hexdec($matches[1]));
}

/**
* Fixes url encoded unicode characters
*
* @param string $string The string to encode.
* @return string The encoded string.
*/
function encode_language_string($matches)
{
return "&#".hexdec($matches[1]).";";

}

}