* @package Schoorbs * @license http://www.gnu.org/licenses/gpl.html GNU General Public License */ ## Includes ## /** The Schoorbs configuration file */ require_once 'config.inc.php'; /** The global include for webscripts */ require_once 'schoorbs-includes/global.web.php'; ## Vars ## /** day, month, year */ list($day, $month, $year) = input_DayMonthYear(); ## Main ## switch ($default_view) { case 'month': header('Location: month-view.php?year='.$year.'&month='.$month); break; case 'week': header('Location: week-view.php?year='.$year.'&month='.$month.'&day='.$day); break; default: header('Location: day-view.php?day='.$day.'&month='.$month.'&year='.$year); }