예제 #1
0
<?php

require_once "config.php";
require_once WWW_DIR . "/lib/releases.php";
require_once WWW_DIR . "/lib/adminpage.php";
$page = new AdminPage();
if (isset($_GET['id'])) {
    $releases = new Releases();
    $releases->rebuild($_GET['id']);
}
if (isset($_GET['from'])) {
    $referrer = $_GET['from'];
} else {
    $referrer = $_SERVER['HTTP_REFERER'];
}
header("Location: " . $referrer);