Commit 1032e283 authored by Ayolo's avatar Ayolo
Browse files

ceci ne servira plus

parent f1017aaf
<?php
/** @file
*
* @brief Accès au site du congrès pour la box ATTENTION
*
*/
/* Copyright 2006
* - Laurent COLNAT <laurent POINT colnat CHEZ utbm POINT fr>
*
* 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("congres","ingersed","localhost","congres");
}
function check_if_registered($email)
{
$req = new requete($this->db,"SELECT `email` FROM `congres2006_inscription` WHERE `email` = '".
mysql_real_escape_string(utf8_decode($email))."'");
return ($req && ($req->lines == 1))
}
}
?>
<?php
/** @file
*
* @brief Accès au site du congrès pour la box ATTENTION
*
*/
/* Copyright 2006
* - Laurent COLNAT <laurent POINT colnat CHEZ utbm POINT fr>
*
* 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("congres","mpd_congres","localhost","congres");
}
function check_if_registered($email)
{
$req = new requete($this->db,"SELECT `email` FROM `congres2006_inscription` WHERE `email` = '".
mysql_real_escape_string(utf8_decode($email))."'");
return ($req && ($req->lines == 1))
}
}
?>
<?php
/** @file
*
* @brief Accès au site e l'integ 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 integ
{
var $db;
function integ()
{
$this->db = new mysql("integ","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 e l'integ 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 integ
{
var $db;
function integ()
{
$this->db = new mysql("","","","");
}
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));
}
}
?>
...@@ -424,21 +424,6 @@ class site extends interfaceweb ...@@ -424,21 +424,6 @@ class site extends interfaceweb
} }
} }
/* Pour le congres ...
require_once($topdir . "include/congres.inc.php");
$congres_box = new congres();
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 (!$integ_box->check_if_registered($this->user->email))
$elements[] = "<b><a href=\"/integ/2007/preparainage.php?nom=".$this->user->nom."&prenom=".$this->user->prenom."&email=".$this->user->email."&branche=".$UserBranches[$this->user->branche]."\">Souhaitez vous préparainer un futur étudiant ?</a></b>";
*/
$cotiz = new cotisation($this->db); $cotiz = new cotisation($this->db);
$cotiz->load_lastest_by_user ( $this->user->id ); $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