discourse-legacysite-perl/site/slowtwitch.com/www/tick/staticify.php

22 lines
510 B
PHP
Raw Normal View History

2024-06-17 12:27:49 +00:00
<?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");
}
?>