Commit 852b12d5 authored by Ayolo's avatar Ayolo

bleh j'avais oubli de commiter ce bordel

parent 3a1829ba
<?php
/** @file
*
* @brief Accès au site du congrès pour la box ATTENTION
*
*/
/* Copyright 2006
* - Simon Lopez <simon POINT lopez CHEZ ayolo POINT org>
*
* Ce fichier fait partie du site de l'Association des 0tudiants de
* l'UTBM, http://ae.utbm.fr.
*
* 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 2 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
require_once($topdir . "include/mysql.inc.php");
$UserBranches = array("TC" => "TC",
"GI" => "GI",
"GSP" => "IMAP",
"GSC" => "GESC",
"GMC" => "GMC",
"Enseignant" => "Enseignant",
"Administration" => "Administration",
"Autre" => "Autre");
class congres
{
var $db;
function congres()
{
$this->db = new mysql("inetg","lecombev","localhost","integ");
}
function check_if_registered($email)
{
$req = new requete($this->db,"SELECT `email` FROM `2007_preparainage` WHERE `email` = '".
mysql_real_escape_string(utf8_decode($email))."'");
return ($req && ($req->lines == 1))
}
}
?>
<?php
/** @file
*
* @brief Accès au site de l'integ pour la boite ATTENTION
*
*/
/* Copyright 2006
* - Laurent COLNAT <simon POINT lopez CHEZ ayolo POINT org>
*
* Ce fichier fait partie du site de l'Association des 0tudiants de
* l'UTBM, http://ae.utbm.fr.
*
* 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 2 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
require_once($topdir . "include/mysql.inc.php");
$UserBranches = array("TC" => "TC",
"GI" => "GI",
"GSP" => "IMAP",
"GSC" => "GESC",
"GMC" => "GMC",
"Enseignant" => "Enseignant",
"Administration" => "Administration",
"Autre" => "Autre");
class congres
{
var $db;
function congres()
{
$this->db = new mysql("integ","mpd_integ","localhost","integ");
}
function check_if_registered($email)
{
$req = new requete($this->db,"SELECT `email` FROM `2007_preparainage` WHERE `email` = '".
mysql_real_escape_string(utf8_decode($email))."'");
return ($req && ($req->lines == 1))
}
}
?>
......@@ -11,6 +11,7 @@
* - Maxime Petazzoni <maxime POINT petazzoni CHEZ bulix POINT org>
* - Pierre Mauduit <pierre POINT mauduit CHEZ utbm POINT fr>
* - Julien Etelain <julien CHEZ pmad POINT net>
* - Simon Lopez <simon POINT lopez CHEZ ayolo POINT org>
*
* Ce fichier fait partie du site de l'Association des 0tudiants de
* l'UTBM, http://ae.utbm.fr.
......@@ -432,7 +433,13 @@ class site extends interfaceweb
if (!$congres_box->check_if_registered($this->user->email))
$elements[] = "Vous n'avez pas encore remplit votre <a href=\"/congres/congres2006/inscription.php?nom=".$this->user->nom."&prenom=".$this->user->prenom."&email=".$this->user->email."&branche=".$UserBranches[$this->user->branche]."\"><b>fiche d'inscription au congr&egrave;s</b></a>";
*/
/* Pour l'integ */
require_once($topdir . "include/integ.inc.php");
$integ_box = new integ();
if (!$congres_box->check_if_registered($this->user->email))
$elements[] = "Souhaitez vous préparainer un futur étudiant ? faites le <a href=\"/integ/2007/preparainage.php?nom=".$this->user->nom."&prenom=".$this->user->prenom."&email=".$this->user->email."&branche=".$UserBranches[$this->user->branche]."\"><b>ici</b></a>.";
$cotiz = new cotisation($this->db);
$cotiz->load_lastest_by_user ( $this->user->id );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment