Vergleich admin/modules/config/plugins.php - 1.6.15 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 105Zeile 105
			unset($tree['results']['result']);
$tree['results']['result'][0] = $only_plugin;
}

			unset($tree['results']['result']);
$tree['results']['result'][0] = $only_plugin;
}

	





require_once MYBB_ROOT . '/inc/class_parser.php';
$post_parser = new postParser();


		foreach($tree['results']['result'] as $result)
{

		foreach($tree['results']['result'] as $result)
{

 
			$result['name']['value'] = htmlspecialchars_uni($result['name']['value']);
$result['description']['value'] = htmlspecialchars_uni($result['description']['value']);
$result['author']['value'] = $post_parser->parse_message($result['author']['value'], array(
'allow_html' => true
)
);
$result['version']['value'] = htmlspecialchars_uni($result['version']['value']);
$result['download_url']['value'] = htmlspecialchars_uni(html_entity_decode($result['download_url']['value']));


			$table->construct_cell("<strong>{$result['name']['value']}</strong><br /><small>{$result['description']['value']}</small><br /><i><small>{$lang->created_by} {$result['author']['value']}</small></i>");
$table->construct_cell($result['version']['value'], array("class" => "align_center"));
$table->construct_cell("<strong><a href=\"http://mods.mybb.com/view/{$result['download_url']['value']}\" target=\"_blank\">{$lang->download}</a></strong>", array("class" => "align_center"));
$table->construct_row();
}

			$table->construct_cell("<strong>{$result['name']['value']}</strong><br /><small>{$result['description']['value']}</small><br /><i><small>{$lang->created_by} {$result['author']['value']}</small></i>");
$table->construct_cell($result['version']['value'], array("class" => "align_center"));
$table->construct_cell("<strong><a href=\"http://mods.mybb.com/view/{$result['download_url']['value']}\" target=\"_blank\">{$lang->download}</a></strong>", array("class" => "align_center"));
$table->construct_row();
}

	}

	}


if($table->num_rows() == 0)


if($table->num_rows() == 0)

	{

	{

		$table->construct_cell($lang->error_no_results_found, array("colspan" => 3));
$table->construct_row();
}

		$table->construct_cell($lang->error_no_results_found, array("colspan" => 3));
$table->construct_row();
}

Zeile 127Zeile 139
	{
$default_class = '';
$value = htmlspecialchars_uni($mybb->input['keywords']);

	{
$default_class = '';
$value = htmlspecialchars_uni($mybb->input['keywords']);

	}
else

	}
else

	{
$default_class = "search_default";
$value = $lang->search_for_plugins;

	{
$default_class = "search_default";
$value = $lang->search_for_plugins;

Zeile 245Zeile 257
	$tree = $parser->get_tree();

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

	$tree = $parser->get_tree();

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

	{

	{

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

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

Zeile 266Zeile 278
		}

flash_message($lang->error_communication_problem.$error_msg, 'error');

		}

flash_message($lang->error_communication_problem.$error_msg, 'error');

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


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


	$table = new Table;
$table->construct_header($lang->plugin);
$table->construct_header($lang->your_version, array("class" => "align_center", 'width' => 125));
$table->construct_header($lang->latest_version, array("class" => "align_center", 'width' => 125));
$table->construct_header($lang->controls, array("class" => "align_center", 'width' => 125));

	$table = new Table;
$table->construct_header($lang->plugin);
$table->construct_header($lang->your_version, array("class" => "align_center", 'width' => 125));
$table->construct_header($lang->latest_version, array("class" => "align_center", 'width' => 125));
$table->construct_header($lang->controls, array("class" => "align_center", 'width' => 125));

	

	

	if(!is_array($tree['plugins']['plugin']))
{
flash_message($lang->success_plugins_up_to_date, 'success');
admin_redirect("index.php?module=config-plugins");

	if(!is_array($tree['plugins']['plugin']))
{
flash_message($lang->success_plugins_up_to_date, 'success');
admin_redirect("index.php?module=config-plugins");

	}


	}


	if(array_key_exists("tag", $tree['plugins']['plugin']))
{
$only_plugin = $tree['plugins']['plugin'];

	if(array_key_exists("tag", $tree['plugins']['plugin']))
{
$only_plugin = $tree['plugins']['plugin'];

Zeile 292Zeile 304
	{
if(version_compare($names[$plugin['attributes']['guid']]['version'], $plugin['version']['value'], "<"))
{

	{
if(version_compare($names[$plugin['attributes']['guid']]['version'], $plugin['version']['value'], "<"))
{

 
			$plugin['download_url']['value'] = htmlspecialchars_uni($plugin['download_url']['value']);
$plugin['version']['value'] = htmlspecialchars_uni($plugin['version']['value']);


			$table->construct_cell("<strong>{$names[$plugin['attributes']['guid']]['name']}</strong>");
$table->construct_cell("{$names[$plugin['attributes']['guid']]['version']}", array("class" => "align_center"));
$table->construct_cell("<strong><span style=\"color: #C00\">{$plugin['version']['value']}</span></strong>", array("class" => "align_center"));

			$table->construct_cell("<strong>{$names[$plugin['attributes']['guid']]['name']}</strong>");
$table->construct_cell("{$names[$plugin['attributes']['guid']]['version']}", array("class" => "align_center"));
$table->construct_cell("<strong><span style=\"color: #C00\">{$plugin['version']['value']}</span></strong>", array("class" => "align_center"));