Vergleich admin/modules/config/languages.php - 1.8.2 - 1.8.11

  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 178Zeile 178
}

if($mybb->input['action'] == "quick_phrases")

}

if($mybb->input['action'] == "quick_phrases")

{
// Validate input
$editlang = basename($mybb->input['lang']);
$folder = MYBB_ROOT."inc/languages/".$editlang."/";

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

{
// Validate input
$editlang = basename($mybb->input['lang']);
$folder = MYBB_ROOT."inc/languages/".$editlang."/";

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


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


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

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 391Zeile 391
	}

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

	}

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

	{

	{

		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");
}

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 475Zeile 475
				$plugins->run_hooks("admin_config_languages_edit_commit");

// Log admin action

				$plugins->run_hooks("admin_config_languages_edit_commit");

// Log admin action

				log_admin_action($editlang, $editfile, (int)$mybb->input['inadmin']);

				log_admin_action($editlang, $editfile, $mybb->get_input('inadmin', MyBB::INPUT_INT));


flash_message($lang->success_langfile_updated, 'success');
admin_redirect("index.php?module=config-languages&action=edit&lang={$editlang}&editwith={$editwith}");


flash_message($lang->success_langfile_updated, 'success');
admin_redirect("index.php?module=config-languages&action=edit&lang={$editlang}&editwith={$editwith}");

Zeile 532Zeile 532
		echo $form->generate_hidden_field("file", htmlspecialchars_uni($file));
echo $form->generate_hidden_field("lang", $editlang);
echo $form->generate_hidden_field("editwith", $editwith);

		echo $form->generate_hidden_field("file", htmlspecialchars_uni($file));
echo $form->generate_hidden_field("lang", $editlang);
echo $form->generate_hidden_field("editwith", $editwith);

		echo $form->generate_hidden_field("inadmin", (int)$mybb->input['inadmin']);

		echo $form->generate_hidden_field("inadmin", $mybb->get_input('inadmin', MyBB::INPUT_INT));

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

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

Zeile 601Zeile 601
					{
$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", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $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 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",

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

		'target' => "_blank"
);


		'target' => "_blank"
);