Vergleich admin/modules/config/plugins.php - 1.8.2 - 1.8.21

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 54Zeile 54

if($mybb->input['page'])
{


if($mybb->input['page'])
{

		$url_page = "&page=".$mybb->get_input('page', 1);

		$url_page = "&page=".$mybb->get_input('page', MyBB::INPUT_INT);

	}
else
{

	}
else
{

Zeile 67Zeile 67
	// Convert to mods site version codes
$search_version = ($major_version_code/100).'x';


	// Convert to mods site version codes
$search_version = ($major_version_code/100).'x';


	$contents = fetch_remote_file("http://community.mybb.com/xmlbrowse.php?type=plugins&version={$search_version}{$keywords}{$url_page}", $post_data);

	$contents = fetch_remote_file("https://community.mybb.com/xmlbrowse.php?type=plugins&version={$search_version}{$keywords}{$url_page}", $post_data);


if(!$contents)
{


if(!$contents)
{

Zeile 99Zeile 99
			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>{$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://community.mybb.com/{$result['download_url']['value']}\" target=\"_blank\">{$lang->download}</a></strong>", array("class" => "align_center"));

			$table->construct_cell("<strong><a href=\"https://community.mybb.com/{$result['download_url']['value']}\" target=\"_blank\" rel=\"noopener\">{$lang->download}</a></strong>", array("class" => "align_center"));

			$table->construct_row();
}
}

			$table->construct_row();
}
}

Zeile 131Zeile 143
	echo "<input type=\"submit\" class=\"search_button\" value=\"{$lang->search}\" />\n";
echo "<script type=\"text/javascript\">
var form = $(\"#search_form\");

	echo "<input type=\"submit\" class=\"search_button\" value=\"{$lang->search}\" />\n";
echo "<script type=\"text/javascript\">
var form = $(\"#search_form\");

		form.submit(function()

		form.on('submit', function()

		{
var search = $(\"#search_keywords\");
if(search.val() == '' || search.val() == '{$lang->search_for_plugins}')
{

		{
var search = $(\"#search_keywords\");
if(search.val() == '' || search.val() == '{$lang->search_for_plugins}')
{

				search.focus();

				search.trigger('focus');

				return false;
}
});

var search = $(\"#search_keywords\");

				return false;
}
});

var search = $(\"#search_keywords\");

		search.focus(function()

		search.on('focus', function()

		{
var searched_focus = $(this);
if(searched_focus.val() == '{$lang->search_for_plugins}')
{
searched_focus.removeClass(\"search_default\");
searched_focus.val(\"\");

		{
var searched_focus = $(this);
if(searched_focus.val() == '{$lang->search_for_plugins}')
{
searched_focus.removeClass(\"search_default\");
searched_focus.val(\"\");

			}
});

search.blur(function()

			}
}).on('blur', function()



		{
var searched_blur = $(this);
if(searched_blur.val() == \"\")

		{
var searched_blur = $(this);
if(searched_blur.val() == \"\")

Zeile 173Zeile 183

// Recommended plugins = Default; Otherwise search results & pagination
if($mybb->request_method == "post")


// Recommended plugins = Default; Otherwise search results & pagination
if($mybb->request_method == "post")

	{
$table->output("<span style=\"float: right;\"><small><a href=\"http://community.mybb.com/mods.php?action=browse&category=plugins\" target=\"_blank\">{$lang->browse_all_plugins}</a></small></span>".$lang->sprintf($lang->browse_results_for_mybb, $mybb->version));
}

	{
$table->output("<span style=\"float: right;\"><small><a href=\"https://community.mybb.com/mods.php?action=browse&category=plugins\" target=\"_blank\" rel=\"noopener\">{$lang->browse_all_plugins}</a></small></span>".$lang->sprintf($lang->browse_results_for_mybb, $mybb->version));
}

	else
{

	else
{

		$table->output("<span style=\"float: right;\"><small><a href=\"http://community.mybb.com/mods.php?action=browse&category=plugins\" target=\"_blank\">{$lang->browse_all_plugins}</a></small></span>".$lang->sprintf($lang->recommended_plugins_for_mybb, $mybb->version));

		$table->output("<span style=\"float: right;\"><small><a href=\"https://community.mybb.com/mods.php?action=browse&category=plugins\" target=\"_blank\" rel=\"noopener\">{$lang->browse_all_plugins}</a></small></span>".$lang->sprintf($lang->recommended_plugins_for_mybb, $mybb->version));

	}

echo "<br />".draw_admin_pagination($mybb->input['page'], 15, $tree['results']['attributes']['total'], "index.php?module=config-plugins&amp;action=browse{$keywords}&amp;page={page}");

	}

echo "<br />".draw_admin_pagination($mybb->input['page'], 15, $tree['results']['attributes']['total'], "index.php?module=config-plugins&amp;action=browse{$keywords}&amp;page={page}");

Zeile 222Zeile 232
			}
}
$plugins->hooks = $active_hooks;

			}
}
$plugins->hooks = $active_hooks;

	}

	}


if(empty($info))
{
flash_message($lang->error_vcheck_no_supported_plugins, 'error');


if(empty($info))
{
flash_message($lang->error_vcheck_no_supported_plugins, 'error');

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

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





	$url = "http://community.mybb.com/version_check.php?";

	$url = "https://community.mybb.com/version_check.php?";

	$url .= http_build_query(array("info" => $info))."&";
require_once MYBB_ROOT."inc/class_xml.php";
$contents = fetch_remote_file($url);

	$url .= http_build_query(array("info" => $info))."&";
require_once MYBB_ROOT."inc/class_xml.php";
$contents = fetch_remote_file($url);

Zeile 240Zeile 250
		flash_message($lang->error_vcheck_communications_problem, 'error');
admin_redirect("index.php?module=config-plugins");
}

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

 

$contents = trim($contents);


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


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

Zeile 293Zeile 305

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


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

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


			if($is_vulnerable)
{
$table->construct_cell("<div class=\"error\" id=\"flash_message\">

			if($is_vulnerable)
{
$table->construct_cell("<div class=\"error\" id=\"flash_message\">

Zeile 312Zeile 328
			}
else
{

			}
else
{

				$table->construct_cell("<strong><a href=\"http://community.mybb.com/{$plugin['download_url']['value']}\" target=\"_blank\">{$lang->download}</a></strong>", array("class" => "align_center"));

				$table->construct_cell("<strong><a href=\"https://community.mybb.com/{$plugin['download_url']['value']}\" target=\"_blank\" rel=\"noopener\">{$lang->download}</a></strong>", array("class" => "align_center"));

			}
$table->construct_row();
}

			}
$table->construct_row();
}

Zeile 572Zeile 588
	$page->output_footer();
}


	$page->output_footer();
}


 
/**
* @return array
*/

function get_plugins_list()
{
// Get a list of the plugin files which exist in the plugins directory

function get_plugins_list()
{
// Get a list of the plugin files which exist in the plugins directory

Zeile 593Zeile 612
	return $plugins_list;
}


	return $plugins_list;
}


 
/**
* @param array $plugin_list
*/

function build_plugin_list($plugin_list)
{
global $lang, $mybb, $plugins, $table;

function build_plugin_list($plugin_list)
{
global $lang, $mybb, $plugins, $table;