Vergleich admin/modules/config/languages.php - 1.8.14 - 1.8.33

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 94Zeile 94
			log_admin_action($editlang);

flash_message($lang->success_langprops_updated, 'success');

			log_admin_action($editlang);

flash_message($lang->success_langprops_updated, 'success');

			admin_redirect("index.php?module=config-languages&action=edit&lang=".htmlspecialchars_uni($editlang)."&editwith=".htmlspecialchars_uni($editwith));

			admin_redirect("index.php?module=config-languages&action=edit&lang=".htmlspecialchars_uni($editlang)."&editwith=".htmlspecialchars_uni($editlang));

		}
else
{

		}
else
{

Zeile 181Zeile 181
{
// Validate input
$editlang = basename($mybb->input['lang']);

{
// Validate input
$editlang = basename($mybb->input['lang']);

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









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

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


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



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


Zeile 189Zeile 196
	if(file_exists(MYBB_ROOT."inc/languages/".$editlang.".php"))
{
// Then validate language pack folders (and try to fix them if missing)

	if(file_exists(MYBB_ROOT."inc/languages/".$editlang.".php"))
{
// Then validate language pack folders (and try to fix them if missing)

		@mkdir($folder);
@mkdir($folder."admin");







		if(!is_dir($folder))
{
@mkdir($folder);
}
if(!is_dir($folder."admin"))
{
@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');
admin_redirect("index.php?module=config-languages");
}

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

Zeile 277Zeile 290
			}

if($editsuccess == true)

			}

if($editsuccess == true)

			{
// Log admin action

			{
// Log admin action

				log_admin_action($editlang);

flash_message($lang->success_quickphrases_updated, 'success');

				log_admin_action($editlang);

flash_message($lang->success_quickphrases_updated, 'success');

Zeile 303Zeile 316

$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);

Zeile 314Zeile 327

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


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

	foreach($quick_phrases as $file => $phrases)
{

	foreach($quick_phrases as $file => $phrases)
{

		if(file_exists($folder.$file) && !is_writable($folder.$file) || !is_writable($folder))
{
$no_write = 1;
}

		if(file_exists($folder.$file) && !is_writable($folder.$file) || !is_writable($folder))
{
$no_write = 1;
}

	}

	}


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

foreach($quick_phrases as $file => $phrases)

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

foreach($quick_phrases as $file => $phrases)

Zeile 337Zeile 350
		if((int)$langinfo['rtl'] > 0)
{
$quickphrases_dir_class = " langeditor_rtl";

		if((int)$langinfo['rtl'] > 0)
{
$quickphrases_dir_class = " langeditor_rtl";

		}


		}


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

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

Zeile 362Zeile 375

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


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





	$page->output_footer();
}

	$page->output_footer();
}





if($mybb->input['action'] == "edit")
{
// Validate input
$editlang = basename($mybb->input['lang']);

if($mybb->input['action'] == "edit")
{
// Validate input
$editlang = basename($mybb->input['lang']);

 

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


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

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


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

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


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










	$editwith = basename($mybb->get_input('editwith'));

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


$editwithfolder = '';


	if($editwith)
{
$editwithfolder = MYBB_ROOT."inc/languages/".$editwith."/";

	if($editwith)
{
$editwithfolder = MYBB_ROOT."inc/languages/".$editwith."/";

Zeile 386Zeile 414
	if(file_exists(MYBB_ROOT."inc/languages/".$editlang.".php"))
{
// Then validate edited language pack folders (and try to fix them if missing)

	if(file_exists(MYBB_ROOT."inc/languages/".$editlang.".php"))
{
// Then validate edited language pack folders (and try to fix them if missing)

		@mkdir($folder);
@mkdir($folder."admin");
}







		if(!is_dir($folder))
{
@mkdir($folder);
}
if(!is_dir($folder."admin"))
{
@mkdir($folder."admin");
}
}


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


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

Zeile 409Zeile 443
	{
// Validate input
$file = basename($mybb->input['file']);

	{
// Validate input
$file = basename($mybb->input['file']);

		if($mybb->input['inadmin'] == 1)









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

if($mybb->get_input('inadmin') == 1)

		{
$file = 'admin/'.$file;
}

		{
$file = 'admin/'.$file;
}

Zeile 432Zeile 473
			@include $editfile;
$valid_keys = (array)$l;
unset($l);

			@include $editfile;
$valid_keys = (array)$l;
unset($l);

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









if(!empty($editwithfile))
{
@include $editwithfile;
}
if(!empty($l))
{
$valid_keys = array_merge($valid_keys, (array)$l);
}

			unset($l);

			unset($l);

 

$contents_wfile = null;


// 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)

			{

			{

				$contents_wfile .= "\$l['".$key."'] = ".var_export($mybb->input['edit'][$key], true).";\n";
}


				$contents_wfile .= "\$l['".$key."'] = ".var_export($mybb->input['edit'][$key], true).";\n";
}


Zeile 473Zeile 523
				fclose($fp);

$plugins->run_hooks("admin_config_languages_edit_commit");

				fclose($fp);

$plugins->run_hooks("admin_config_languages_edit_commit");





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

				// Log admin action
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=".htmlspecialchars_uni($editlang)."&editwith=".htmlspecialchars_uni($editwith));

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

			}

			}

			else

			else

			{

			{

				$errors[] = $lang->error_cannot_write_to_file;
}
}


				$errors[] = $lang->error_cannot_write_to_file;
}
}


		unset($langinfo);
@include MYBB_ROOT."inc/languages/".$editwith.".php";
$editwith_dir_class = " langeditor_ltr";
if((int)$langinfo['rtl'] > 0)
{
$editwith_dir_class = " langeditor_rtl";
}




		if(!empty($editwith))
{
unset($langinfo);
@include MYBB_ROOT."inc/languages/".$editwith.".php";
$editwith_dir_class = " langeditor_ltr";
if((int)$langinfo['rtl'] > 0)
{
$editwith_dir_class = " langeditor_rtl";
}
}

		unset($langinfo);
@include MYBB_ROOT."inc/languages/".$editlang.".php";
$editlang_dir_class = " langeditor_ltr";
if((int)$langinfo['rtl'] > 0)
{
$editlang_dir_class = " langeditor_rtl";

		unset($langinfo);
@include MYBB_ROOT."inc/languages/".$editlang.".php";
$editlang_dir_class = " langeditor_ltr";
if((int)$langinfo['rtl'] > 0)
{
$editlang_dir_class = " langeditor_rtl";

		}


		}


		// Build and output form with edited phrases

// Get file being edited in an array

		// Build and output form with edited phrases

// Get file being edited in an array

		@include $editfile;
$editvars = (array)$l;

		$editvars = array();


		unset($l);

		unset($l);

 
		@include $editfile;
if(isset($l))
{
$editvars = (array)$l;
unset($l);
}


$withvars = array();
// Get edit with file in an array if exists


$withvars = array();
// Get edit with file in an array if exists

Zeile 536Zeile 594
		if($errors)
{
$page->output_inline_error($errors);

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

		}


		}


		// Check if file is writable, before allowing submission
$no_write = null;
if(file_exists($editfile) && !is_writable($editfile) || !is_writable($folder))

		// Check if file is writable, before allowing submission
$no_write = null;
if(file_exists($editfile) && !is_writable($editfile) || !is_writable($folder))

Zeile 572Zeile 630
				// Count {x} in left and right variable
$withvars_value_cbvCount = preg_match_all("/{[ \t]*\d+[ \t]*}/", $withvars[$key], $matches);
$editvars_value_cbvCount = preg_match_all("/{[ \t]*\d+[ \t]*}/", $editvars[$key], $matches);

				// Count {x} in left and right variable
$withvars_value_cbvCount = preg_match_all("/{[ \t]*\d+[ \t]*}/", $withvars[$key], $matches);
$editvars_value_cbvCount = preg_match_all("/{[ \t]*\d+[ \t]*}/", $editvars[$key], $matches);





				// If left contain something but right is empty or only spaces || count of {x} are different betwin left and right
if($withvars[$key] && !$editvars[$key] || $withvars_value_cbvCount != $editvars_value_cbvCount)
{

				// If left contain something but right is empty or only spaces || count of {x} are different betwin left and right
if($withvars[$key] && !$editvars[$key] || $withvars_value_cbvCount != $editvars_value_cbvCount)
{

Zeile 604Zeile 662

$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%'));

				}
}

}

				}
}

}

		else
{
// Editing individually

		else
{
// Editing individually

Zeile 619Zeile 677
				if(my_strtolower($langinfo['charset']) == "utf-8")
{
$value = preg_replace_callback("#%u([0-9A-F]{1,4})#i", 'encode_language_string_utf8', $value);

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

				}

				}

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

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

Zeile 667Zeile 725
		require MYBB_ROOT."inc/languages/".$editlang.".php";

$table = new Table;

		require MYBB_ROOT."inc/languages/".$editlang.".php";

$table = new Table;

		if($editwithfolder)
{

		if($editwithfolder)
{

			$table->construct_header(preg_replace("<\?|\?>", "<span>?</span>", htmlspecialchars_uni($languages[$editwith])));

			$table->construct_header(preg_replace("<\?|\?>", "<span>?</span>", htmlspecialchars_uni($languages[$editwith])));

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

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

			$table->construct_header($lang->issues, array("class" => "align_center", "width" => 100));

			$table->construct_header($lang->issues, array("class" => "align_center", "width" => 100));

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

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

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

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

		}

		}


// Get files in main folder
$filenames = array();


// Get files in main folder
$filenames = array();

Zeile 691Zeile 749
				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 704Zeile 762
			$edit_colspan = 5;
$filenameswith = array();
if($handle = opendir($editwithfolder))

			$edit_colspan = 5;
$filenameswith = array();
if($handle = opendir($editwithfolder))

			{

			{

				while(false !== ($file = readdir($handle)))
{
if(preg_match("#\.lang\.php$#", $file))

				while(false !== ($file = readdir($handle)))
{
if(preg_match("#\.lang\.php$#", $file))

Zeile 716Zeile 774
				sort($filenameswith);
}
}

				sort($filenameswith);
}
}





		if($editwithfolder)
{
$files_left = array_diff($filenameswith, $filenames);
$files_right = array_diff($filenames, $filenameswith);
$files_both = array_intersect($filenameswith, $filenames);

		if($editwithfolder)
{
$files_left = array_diff($filenameswith, $filenames);
$files_right = array_diff($filenames, $filenameswith);
$files_both = array_intersect($filenameswith, $filenames);





			foreach($files_left as $key => $file)

			foreach($files_left as $key => $file)

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

$icon_issues = "<span class='langeditor_ok' title='".$lang->issues_ok."'></span>";
if(count($editvars_left) >0)







			{
$editvars_left = array();

unset($l);
@include $editwithfolder.$file;
if(isset($l))
{
$editvars_left = (array)$l;
unset($l);
}

$icon_issues = "<span class='langeditor_ok' title='".$lang->issues_ok."'></span>";
if(count($editvars_left) > 0)

				{
$icon_issues = "<span class='langeditor_warning' title='".$lang->issues_warning."'></span>";
}

				{
$icon_issues = "<span class='langeditor_warning' title='".$lang->issues_warning."'></span>";
}

Zeile 744Zeile 808
			}
foreach($files_right as $key => $file)
{

			}
foreach($files_right as $key => $file)
{

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

				$editvars_right = array();


				unset($l);

				unset($l);

 
				@include $folder.$file;
if(isset($l))
{
$editvars_right = (array)$l;
unset($l);
}


$icon_issues = "<span class='langeditor_ok' title='".$lang->issues_ok."'></span>";


$icon_issues = "<span class='langeditor_ok' title='".$lang->issues_ok."'></span>";

				if(count($editvars_right >0))

				if(count($editvars_right) > 0)

				{
$icon_issues = "<span class='langeditor_nothingtocompare' title='".$lang->issues_nothingtocompare."'></span>";
}

				{
$icon_issues = "<span class='langeditor_nothingtocompare' title='".$lang->issues_nothingtocompare."'></span>";
}

Zeile 763Zeile 833
			}
foreach($files_both as $key => $file)
{

			}
foreach($files_both as $key => $file)
{

 
				$editvars_right = $editvars_left = array();

unset($l);

				@include $editwithfolder.$file;

				@include $editwithfolder.$file;

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








				if(isset($l))
{
$editvars_left = (array)$l;
unset($l);
}
@include $folder.$file;
if(isset($l))
{
$editvars_right = (array)$l;
unset($l);
}


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

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

Zeile 792Zeile 871
				}

$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=".htmlspecialchars_uni($editlang)."&amp;editwith=".htmlspecialchars_uni($editwith)."&amp;file=".htmlspecialchars_uni($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=".htmlspecialchars_uni($editlang)."&amp;editwith=".htmlspecialchars_uni($editwith)."&amp;file=".htmlspecialchars_uni($file)."\">{$lang->edit}</a>", array("class" => "langeditor_edit"));
$table->construct_row();

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

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

 
				unset($l);

				@include $folder.$file;

				@include $folder.$file;

				$editvars_count = (array)$l;





				$editvars_count = array();
if(isset($l))
{
$editvars_count = (array)$l;
}

				unset($l);

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

				unset($l);

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

Zeile 818Zeile 902
		}

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

		}

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





		if($langinfo['admin'] != 0)
{
$table = new Table;

		if($langinfo['admin'] != 0)
{
$table = new Table;

Zeile 842Zeile 926
			if($handle = opendir($folder."admin"))
{
while(false !== ($file = readdir($handle)))

			if($handle = opendir($folder."admin"))
{
while(false !== ($file = readdir($handle)))

				{

				{

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

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

Zeile 865Zeile 949
						if(preg_match("#\.lang\.php$#", $file))
{
$adminfilenameswith[] = $file;

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

						}

						}

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

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

Zeile 877Zeile 961
				$files_left = array_diff($adminfilenameswith, $adminfilenames);
$files_right = array_diff($adminfilenames, $adminfilenameswith);
$files_both = array_intersect($adminfilenameswith, $adminfilenames);

				$files_left = array_diff($adminfilenameswith, $adminfilenames);
$files_right = array_diff($adminfilenames, $adminfilenameswith);
$files_both = array_intersect($adminfilenameswith, $adminfilenames);





				foreach($files_left as $key => $file)
{
@include $editwithfolder."admin/".$file;
$editvars_left = (array)$l;
unset($l);

				foreach($files_left as $key => $file)
{
@include $editwithfolder."admin/".$file;
$editvars_left = (array)$l;
unset($l);





					$icon_issues = "<span class='langeditor_ok' title='".$lang->issues_ok."'></span>";
if(count($editvars_left) >0)
{
$icon_issues = "<span class='langeditor_warning' title='".$lang->issues_warning."'></span>";

					$icon_issues = "<span class='langeditor_ok' title='".$lang->issues_ok."'></span>";
if(count($editvars_left) >0)
{
$icon_issues = "<span class='langeditor_warning' title='".$lang->issues_warning."'></span>";

					}


					}


					$table->construct_cell(htmlspecialchars_uni($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(htmlspecialchars_uni($file), array("class" => "langeditor_editwithfile"));
$table->construct_cell(count($editvars_left), array("class" => "langeditor_phrases"));
$table->construct_cell("", array("class" => "langeditor_editfile"));

Zeile 898Zeile 982
					$table->construct_row();
}
foreach($files_right as $key => $file)

					$table->construct_row();
}
foreach($files_right as $key => $file)

				{
@include $folder."admin/".$file;
$editvars_right = (array)$l;
unset($l);

				{
@include $folder."admin/".$file;
$editvars_right = (array)$l;
unset($l);


$icon_issues = "<span class='langeditor_ok' title='".$lang->issues_ok."'></span>";


$icon_issues = "<span class='langeditor_ok' title='".$lang->issues_ok."'></span>";

					if(count($editvars_right >0))

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

					{
$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(htmlspecialchars_uni($file), array("class" => "langeditor_editfile"));
$table->construct_cell($icon_issues, array("class" => "langeditor_issues"));
$table->construct_cell("<a href=\"index.php?module=config-languages&amp;action=edit&amp;lang=".htmlspecialchars_uni($editlang)."&amp;editwith=".htmlspecialchars_uni($editwith)."&amp;file={$config['admindir']}/".htmlspecialchars_uni($file)."&amp;inadmin=1\">{$lang->edit}</a>", array("class" => "langeditor_edit"));
$table->construct_row();

					$table->construct_cell(htmlspecialchars_uni($file), array("class" => "langeditor_editfile"));
$table->construct_cell($icon_issues, array("class" => "langeditor_issues"));
$table->construct_cell("<a href=\"index.php?module=config-languages&amp;action=edit&amp;lang=".htmlspecialchars_uni($editlang)."&amp;editwith=".htmlspecialchars_uni($editwith)."&amp;file={$config['admindir']}/".htmlspecialchars_uni($file)."&amp;inadmin=1\">{$lang->edit}</a>", array("class" => "langeditor_edit"));
$table->construct_row();

				}
foreach($files_both as $key => $file)
{

				}
foreach($files_both as $key => $file)
{

Zeile 961Zeile 1045

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


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

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

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

					$table->construct_row();
}
}

					$table->construct_row();
}
}

Zeile 1017Zeile 1101

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


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

			$author = "<a href=\"".htmlspecialchars_uni($langinfo['website'])."\" target=\"_blank\">".htmlspecialchars_uni($langinfo['author'])."</a>";

			$author = "<a href=\"".htmlspecialchars_uni($langinfo['website'])."\" target=\"_blank\" rel=\"noopener\">".htmlspecialchars_uni($langinfo['author'])."</a>";

		}
else
{

		}
else
{