discourse-legacysite-perl/site/slowtwitch.com/www/tick/staticify.php
2024-06-17 22:27:49 +10:00

22 lines
510 B
PHP

<?require ("global.php");?>
<?php
$stageID = 0;
if (isset($_GET['ID']))
{
$stageID = $_GET['ID'];
$staticify($stageID);
header("Location: /tick/stages.php");
} else {
// if nothing specified, rebuild all ongoing stages for the default event
$query = "SELECT ID FROM events WHERE default_flag = 'yes'";
$results = mysql_query($query, $db);
while ($r = mysql_fetch_array($results)) {
$eventID = $r['ID'];
}
staticify_all($eventID);
header("Location: /tick/events.php");
}
?>