"Fossies" - the Fresh Open Source Software Archive  

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

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

themes.php  (mybb_1821):themes.php  (mybb_1822)
skipping to change at line 171 skipping to change at line 171
{ {
$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=themes&version={$search_version}{$keywords}{$url_page}", $post_data); $contents = fetch_remote_file("https://community.mybb.com/xmlbrowse.php?a pi=2&type=themes&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->themes, array('colspan' => 2)); $table->construct_header($lang->themes, array('colspan' => 2));
skipping to change at line 211 skipping to change at line 211
} }
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['thumbnail']['value'] = htmlspecialchars_uni($res ult['thumbnail']['value']); $result['thumbnail']['value'] = htmlspecialchars_uni($res ult['thumbnail']['value']);
$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['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("<img src=\"https://community.mybb .com/{$result['thumbnail']['value']}\" alt=\"{$lang->theme_thumbnail}\" title=\" {$lang->theme_thumbnail}\"/>", array("class" => "align_center", "width" => 100)) ; $table->construct_cell("<img src=\"https://community.mybb .com/{$result['thumbnail']['value']}\" alt=\"{$lang->theme_thumbnail}\" title=\" {$lang->theme_thumbnail}\"/>", array("class" => "align_center", "width" => 100)) ;
$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("<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)