<html> <head> <? require('../class/ccdc.class.php'); $con = ccdc::pconnect(); mysql_select_db('ccdc'); $numteams = ccdc::numteams($con); $currteam = $_GET['team']; $here = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; if(empty($currteam)) { header('location:?team=1'); } else { if($currteam < $numteams) { print '<meta http-equiv="refresh" content="15;url=http://' . $here . '?team=' . ($currteam +1) . '">'; } else { print '<meta http-equiv="refresh" content="15;url=http://' . $here . '?team=1">'; } } // Get current team's id