<?php require 'includes/master.inc.php'; $Auth->requireAdmin('login.php'); $nav = 'applications'; $v = new Version($_GET['id']); if (!$v->ok()) { redirect('index.php'); } $app = new Application($v->app_id); if (!$app->ok()) { redirect('index.php'); } if (isset($_POST['btnDelete'])) { $v->delete(); redirect('versions.php?id=' . $app->id); } $version_number = $v->version_number; $human_version = $v->human_version; $release_notes = $v->release_notes; $url = $v->url; $signature = $v->signature; $filesize = $v->filesize; include 'inc/header.inc.php'; ?> <div id="bd"> <div id="yui-main"> <div class="yui-b"><div class="yui-g"> <div class="block tabs spaces">