Vergleich admin/modules/style/themes.php - 1.6.10 - 1.6.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 178Zeile 178
	$parser = new XMLParser($contents);
$tree = $parser->get_tree();


	$parser = new XMLParser($contents);
$tree = $parser->get_tree();


	if(!array_key_exists("results", $tree))

	if(!is_array($tree) || !isset($tree['results']))

	{
$page->output_inline_error($lang->error_communication_problem);
$page->output_footer();

	{
$page->output_inline_error($lang->error_communication_problem);
$page->output_footer();

Zeile 1302Zeile 1302
			$errors[] = $lang->error_missing_stylesheet_name;
}


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


		if(substr($mybb->input['name'], -4) != ".css")



		// Get 30 chars only because we don't want more than that
$mybb->input['name'] = my_substr($mybb->input['name'], 0, 30);
if(get_extension($mybb->input['name']) != "css")

		{
// Does not end with '.css'
$errors[] = $lang->sprintf($lang->error_missing_stylesheet_extension, $mybb->input['name']);

		{
// Does not end with '.css'
$errors[] = $lang->sprintf($lang->error_missing_stylesheet_extension, $mybb->input['name']);

Zeile 2209Zeile 2211
			$errors[] = $lang->error_missing_stylesheet_name;
}


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


		if(substr($mybb->input['name'], -4) != ".css")



		// Get 30 chars only because we don't want more than that
$mybb->input['name'] = my_substr($mybb->input['name'], 0, 30);
if(get_extension($mybb->input['name']) != "css")

		{
// Does not end with '.css'
$errors[] = $lang->sprintf($lang->error_missing_stylesheet_extension, $mybb->input['name']);

		{
// Does not end with '.css'
$errors[] = $lang->sprintf($lang->error_missing_stylesheet_extension, $mybb->input['name']);