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 = ''; } $div_id = 'version-' . str_replace('.', '-', $mc_version); if($last_version != $mc_version && !$first) $downloads_str .= "

Minecraft $mc_version (hide)
"; $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; } } $downloads_str .= '
'; $total_dl_str = number_format($total_dls); $mod_launch = strtotime('2014-02-28 17:32:22'); $current_time = time(); $days_passed = ($current_time - $mod_launch) / 86400; $days_int = round($days_passed); $daily_dls = round($total_dls / $days_passed, 2); print("
Botania has been downloaded a total of $total_dl_str times over $days_int days. (About $daily_dls dls/day)
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); $nekos = '


'; foreach(str_split($total_dls) as $num) $nekos .= ""; $nekos .= '
.jars served, whatcha waiting for? (back to top)
'; print($nekos); ?>