require_once 'header.php'; $update = new Updates(); $report = new Report(); $html->title("Website Updates", '', "left"); echo "<div class='row'>"; echo "<div class='col-xs-12 col-sm-6'>"; if (isset($_GET['install'])) { touch('update.lock'); $release = str_replace("v", '', $_GET['install']); $dir = "includes/releases/BPU-{$release}/dist"; copy("{$dir}/install.php", "install.php"); unlink("{$dir}/install.php"); if (file_exists("{$dir}/config.php")) { unlink("{$dir}/config.php"); } $html->redirection("install.php?release=" . $_GET['install']); } else { $update->display_info(); } echo "</div>"; echo "<div class='col-xs-12 col-sm-6'>"; if (isset($_GET['download'])) { $update->transfer_release($_GET['download']); } else { if (!$update->differ) { $html->button("update.php?download={$update->latest_release}", "Download & Extract", "primary", $size = "lg"); } } echo "</div>"; echo "</div>"; require_once 'footer.php';