<?php
/*
 * Gasell: Copyright 2005 Linux-Nantes Association <contact@linux-nantes.fr.eu.org>
 *
 * You should have received a copy of the GNU Public
 * License along with this package; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Authors: Raude-Morvan Damien (DrazziB) <drazzib@drazzib.com>
 *
 * Histoire
 *  * 18/12/2005 DrazziB : Création de l'action
 */

/**
 * Cloturer une participation
 *
 * @param string $args['code'] : code de la participation a cloturer
 */

require_once GASELL_BASE . '/lib/Participation.php';

/* On verifie que le code est transmis dans l'URL. */
if ($args['code'] == NULL)
 {
	$this->errorMessage("Vous devez pr&eacute;cisez le code de la participation !");
	$result = false;
 }
else
 {
	/* Cloture d'une participation */
	$result = Participation::Cloturer($args['code']);
 }
?>