2) { $dls_num = get_dls($file); $total_dls += intval($dls_num); $dls = number_format($dls_num); $button_type = 'old-dl'; $cl_button_type = 'btn-sm'; $file_version = substr($file, strlen('Botania ')); $version_name = substr($file_version, 0, strlen($file_version) - strlen('.jar')); $mc_version = $versions[$version_name]; $version_name = str_replace('.', '-', $version_name); $dls_txt = 'Downloads'; if($dls_num == 0) $dls_txt = 'Downloads :('; elseif($dls_num == 1) $dls_txt = 'Download'; if($first) { $button_type = 'btn-lg'; $cl_button_type = ''; } if($last_version != $mc_version && !$first) $downloads_str .= "
Minecraft $mc_version
"; $downloads_str .= " $file Changelog Minecraft $mc_version $dls $dls_txt"; if($first) { $downloads_str .= '


Old Versions
'; $first = false; } else { $downloads_str .= '
'; $last_version = $mc_version; } } $total_dl_str = number_format($total_dls); print("
Botania has been downloaded a total of $total_dl_str times.
Botania is under a Creative Commons BY-NC-SA License, more info (for modpacks and other purposes) can be found in the footer.
Note that as of beta-22, Botania requires the Baubles API. If you have Thaumcraft installed, though, this is downloaded automatically.

Latest Download
"); print($downloads_str); ?>