Location: PHPKode > projects > Fretsweb > fretsweb-1.2/fretsweb/admin/changestatus.php
<?php

/*
Fretsweb - A Frets on Fire chart server
Copyright (C) 2009, Daan Sprenkels

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

require_once "common.php";

//Login Test
session_start();
if($_SESSION['in'] < 1)
{
	header('location: login.php?need=moderator');
	die();
}

include_once "status.php";

if (isset($_GET['action']) && $_GET['action'] == 'open')
{
	header("location: index.php");
	contest_status_open();
}

if (isset($_GET['action']) && $_GET['action'] == 'close')
{
	header("location: index.php");
	contest_status_close();
}

// close DB
mysql_close( $db_link );
?>

Return current item: Fretsweb