Vergleich admin/modules/tools/system_health.php - 1.8.8 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 238Zeile 238
		$table->construct_cell($lang->please_wait);
$table->construct_row();


		$table->construct_cell($lang->please_wait);
$table->construct_row();


		$table->output($converting_table." {$mybb->input['table']}");

		$table->output($lang->sprintf($lang->converting_table, $mybb->input['table']));


$db->set_table_prefix($old_table_prefix);



$db->set_table_prefix($old_table_prefix);


Zeile 280Zeile 280
		$db->write_query("ALTER TABLE {$mybb->input['table']} DEFAULT CHARACTER SET {$character_set} COLLATE {$collation}");

// Fetch any fulltext keys

		$db->write_query("ALTER TABLE {$mybb->input['table']} DEFAULT CHARACTER SET {$character_set} COLLATE {$collation}");

// Fetch any fulltext keys

 
		$fulltext_to_create = array();

		if($db->supports_fulltext($mybb->input['table']))
{
$table_structure = $db->show_create_table($mybb->input['table']);

		if($db->supports_fulltext($mybb->input['table']))
{
$table_structure = $db->show_create_table($mybb->input['table']);

Zeile 357Zeile 358
		}

// Any fulltext indexes to recreate?

		}

// Any fulltext indexes to recreate?

		if(is_array($fulltext_to_create))

		foreach($fulltext_to_create as $name => $fields)

		{

		{

			foreach($fulltext_to_create as $name => $fields)
{
$db->create_fulltext_index($mybb->input['table'], $fields, $name);
}

			$db->create_fulltext_index($mybb->input['table'], $fields, $name);




		}

$db->set_table_prefix($old_table_prefix);

		}

$db->set_table_prefix($old_table_prefix);

Zeile 438Zeile 436
		exit;
}


		exit;
}


	if($mybb->input['table'] || $mybb->input['do'] == "all")

	if(!empty($mybb->input['table']) || $mybb->input['do'] == "all")

	{
if(!empty($mybb->input['mb4']) && version_compare($db->get_version(), '5.5.3', '<'))
{

	{
if(!empty($mybb->input['mb4']) && version_compare($db->get_version(), '5.5.3', '<'))
{

Zeile 549Zeile 547
			if($mybb->input['do'] == "all")
{
$table->construct_cell("<strong>".$lang->sprintf($lang->convert_all_to_utf, $charset)."</strong>");

			if($mybb->input['do'] == "all")
{
$table->construct_cell("<strong>".$lang->sprintf($lang->convert_all_to_utf, $charset)."</strong>");

			}

			}

			else
{
$table->construct_cell("<strong>".$lang->sprintf($lang->convert_to_utf8, $mybb->input['table'], $charset)."</strong>");
}

			else
{
$table->construct_cell("<strong>".$lang->sprintf($lang->convert_to_utf8, $mybb->input['table'], $charset)."</strong>");
}

		}

$table->construct_row();

		}

$table->construct_row();


$table->construct_cell($lang->notice_process_long_time);
$table->construct_row();


$table->construct_cell($lang->notice_process_long_time);
$table->construct_row();

Zeile 570Zeile 568
		{
$table->output($lang->convert_table.": {$mybb->input['table']}");
$buttons[] = $form->generate_submit_button($lang->convert_database_table);

		{
$table->output($lang->convert_table.": {$mybb->input['table']}");
$buttons[] = $form->generate_submit_button($lang->convert_database_table);

		}


		}


		$form->output_submit_wrapper($buttons);

		$form->output_submit_wrapper($buttons);





		$form->end();

		$form->end();





		$db->set_table_prefix($old_table_prefix);

$page->output_footer();

		$db->set_table_prefix($old_table_prefix);

$page->output_footer();





		exit;
}


		exit;
}


Zeile 587Zeile 585
	{
flash_message($lang->error_db_encoding_not_set, 'error');
admin_redirect("index.php?module=tools-system_health");

	{
flash_message($lang->error_db_encoding_not_set, 'error');
admin_redirect("index.php?module=tools-system_health");

	}

	}


$tables = $db->list_tables($mybb->config['database']['database']);



$tables = $db->list_tables($mybb->config['database']['database']);


Zeile 610Zeile 608
	$db->set_table_prefix($old_table_prefix);

$page->add_breadcrumb_item($lang->utf8_conversion, "index.php?module=tools-system_health&amp;action=utf8_conversion");

	$db->set_table_prefix($old_table_prefix);

$page->add_breadcrumb_item($lang->utf8_conversion, "index.php?module=tools-system_health&amp;action=utf8_conversion");





	$page->output_header($lang->system_health." - ".$lang->utf8_conversion);

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

	$page->output_header($lang->system_health." - ".$lang->utf8_conversion);

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

Zeile 625Zeile 623
		if($encoding == 'utf-8')
{
$convert_utf8mb4 = true;

		if($encoding == 'utf-8')
{
$convert_utf8mb4 = true;

		}

		}

		elseif($encoding != 'utf8mb4')
{
$convert_utf8 = true;

		elseif($encoding != 'utf8mb4')
{
$convert_utf8 = true;

Zeile 633Zeile 631
	}

if(count($unique) > 1)

	}

if(count($unique) > 1)

	{

	{

		$page->output_error("<p><em>{$lang->warning_multiple_encodings}</em></p>");
}

if(in_array('utf8mb4', $unique) && $mybb->config['database']['encoding'] != 'utf8mb4')
{
$page->output_error("<p><em>{$lang->warning_utf8mb4_config}</em></p>");

		$page->output_error("<p><em>{$lang->warning_multiple_encodings}</em></p>");
}

if(in_array('utf8mb4', $unique) && $mybb->config['database']['encoding'] != 'utf8mb4')
{
$page->output_error("<p><em>{$lang->warning_utf8mb4_config}</em></p>");

	}

	}


$table = new Table;
$table->construct_header($lang->table);


$table = new Table;
$table->construct_header($lang->table);

Zeile 672Zeile 670
		else
{
$status = "<img src=\"styles/{$page->style}/images/icons/tick.png\" alt=\"{$lang->ok}\" />";

		else
{
$status = "<img src=\"styles/{$page->style}/images/icons/tick.png\" alt=\"{$lang->ok}\" />";

		}

		}

		if(version_compare($db_version, '5.5.3', '<'))
{
$utf8mb4 = $lang->not_available;

		if(version_compare($db_version, '5.5.3', '<'))
{
$utf8mb4 = $lang->not_available;

Zeile 757Zeile 755
	while($task = $db->fetch_array($query))
{
$task['title'] = htmlspecialchars_uni($task['title']);

	while($task = $db->fetch_array($query))
{
$task['title'] = htmlspecialchars_uni($task['title']);

		$next_run = date($mybb->settings['dateformat'], $task['nextrun']).", ".date($mybb->settings['timeformat'], $task['nextrun']);

		$next_run = my_date('normal', $task['nextrun'], "", 2);

		$table->construct_cell("<strong>{$task['title']}</strong>");
$table->construct_cell($next_run, array("class" => "align_center"));


		$table->construct_cell("<strong>{$task['title']}</strong>");
$table->construct_cell($next_run, array("class" => "align_center"));


Zeile 850Zeile 848
		++$errors;
}


		++$errors;
}


	$uploadspath = $mybb->settings['uploadspath'];
if(my_substr($uploadspath, 0, 1) == '.')
{
$uploadspath = MYBB_ROOT . $mybb->settings['uploadspath'];
}
if(is_writable($uploadspath))

	$uploadspath_abs = mk_path_abs($mybb->settings['uploadspath']);
if(is_writable($uploadspath_abs))





	{
$message_upload = "<span style=\"color: green;\">{$lang->writable}</span>";

	{
$message_upload = "<span style=\"color: green;\">{$lang->writable}</span>";

	}

	}

	else

	else

	{

	{

		$message_upload = "<strong><span style=\"color: #C00\">{$lang->not_writable}</span></strong><br />{$lang->please_chmod_777}";
++$errors;

		$message_upload = "<strong><span style=\"color: #C00\">{$lang->not_writable}</span></strong><br />{$lang->please_chmod_777}";
++$errors;

	}

	}





	$avataruploadpath = $mybb->settings['avataruploadpath'];
if(my_substr($avataruploadpath, 0, 1) == '.')
{
$avataruploadpath = MYBB_ROOT . $mybb->settings['avataruploadpath'];
}
if(is_writable($avataruploadpath))

	$avataruploadpath_abs = mk_path_abs($mybb->settings['avataruploadpath']);
if(is_writable($avataruploadpath_abs))





	{
$message_avatar = "<span style=\"color: green;\">{$lang->writable}</span>";
}

	{
$message_avatar = "<span style=\"color: green;\">{$lang->writable}</span>";
}

Zeile 922Zeile 912

if($errors)
{


if($errors)
{

		$page->output_error("<p><em>{$errors} {$lang->error_chmod}</span></strong> {$lang->chmod_info} <a href=\"https://docs.mybb.com/1.8/administration/security/file-permissions\" target=\"_blank\">MyBB Docs</a>.</em></p>");

		$page->output_error("<p><em>{$errors} {$lang->error_chmod}</span></strong> {$lang->chmod_info} <a href=\"https://docs.mybb.com/1.8/administration/security/file-permissions\" target=\"_blank\" rel=\"noopener\">MyBB Docs</a>.</em></p>");

	}
else
{

	}
else
{