"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/admin/modules/config/plugins.php" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

plugins.php  (mybb_1821):plugins.php  (mybb_1822)
skipping to change at line 70 skipping to change at line 70
{ {
$mybb->input['page'] = 1; $mybb->input['page'] = 1;
$url_page = ""; $url_page = "";
} }
// Gets the major version code. i.e. 1410 -> 1400 or 121 -> 1200 // Gets the major version code. i.e. 1410 -> 1400 or 121 -> 1200
$major_version_code = round($mybb->version_code/100, 0)*100; $major_version_code = round($mybb->version_code/100, 0)*100;
// Convert to mods site version codes // Convert to mods site version codes
$search_version = ($major_version_code/100).'x'; $search_version = ($major_version_code/100).'x';
$contents = fetch_remote_file("https://community.mybb.com/xmlbrowse.php?t ype=plugins&version={$search_version}{$keywords}{$url_page}", $post_data); $contents = fetch_remote_file("https://community.mybb.com/xmlbrowse.php?a pi=2&type=plugins&version={$search_version}{$keywords}{$url_page}", $post_data);
if(!$contents) if(!$contents)
{ {
$page->output_inline_error($lang->error_communication_problem); $page->output_inline_error($lang->error_communication_problem);
$page->output_footer(); $page->output_footer();
exit; exit;
} }
$table = new Table; $table = new Table;
$table->construct_header($lang->plugin); $table->construct_header($lang->plugin);
skipping to change at line 110 skipping to change at line 110
$tree['results']['result'][0] = $only_plugin; $tree['results']['result'][0] = $only_plugin;
} }
require_once MYBB_ROOT . '/inc/class_parser.php'; require_once MYBB_ROOT . '/inc/class_parser.php';
$post_parser = new postParser(); $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['name']['value'] = htmlspecialchars_uni($result[' name']['value']);
$result['description']['value'] = htmlspecialchars_uni($r esult['description']['value']); $result['description']['value'] = htmlspecialchars_uni($r esult['description']['value']);
$result['author']['value'] = $post_parser->parse_message( $result['author']['url']['value'] = htmlspecialchars_uni(
$result['author']['value'], array( $result['author']['url']['value']);
'allow_html' => true $result['author']['name']['value'] = htmlspecialchars_uni
) ($result['author']['name']['value']);
);
$result['version']['value'] = htmlspecialchars_uni($resul t['version']['value']); $result['version']['value'] = htmlspecialchars_uni($resul t['version']['value']);
$result['download_url']['value'] = htmlspecialchars_uni(h tml_entity_decode($result['download_url']['value'])); $result['download_url']['value'] = htmlspecialchars_uni(h tml_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("<strong>{$result['name']['value'] }</strong><br /><small>{$result['description']['value']}</small><br /><i><small> {$lang->created_by} <a href=\"{$result['author']['url']['value']}\" target=\"_bl ank\" rel=\"noopener\">{$result['author']['name']['value']}</a></small></i>");
$table->construct_cell($result['version']['value'], array ("class" => "align_center")); $table->construct_cell($result['version']['value'], array ("class" => "align_center"));
$table->construct_cell("<strong><a href=\"https://communi ty.mybb.com/{$result['download_url']['value']}\" target=\"_blank\" rel=\"noopene r\">{$lang->download}</a></strong>", array("class" => "align_center")); $table->construct_cell("<strong><a href=\"https://communi ty.mybb.com/{$result['download_url']['value']}\" target=\"_blank\" rel=\"noopene r\">{$lang->download}</a></strong>", array("class" => "align_center"));
$table->construct_row(); $table->construct_row();
} }
} }
if($table->num_rows() == 0) if($table->num_rows() == 0)
{ {
$table->construct_cell($lang->error_no_results_found, array("cols pan" => 3)); $table->construct_cell($lang->error_no_results_found, array("cols pan" => 3));
$table->construct_row(); $table->construct_row();
 End of changes. 3 change blocks. 
7 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)