Commit 80bd28b0 authored by Ayolo's avatar Ayolo

oups pas la bonne version ...

parent 852b12d5
......@@ -2,7 +2,7 @@
/** @file
*
* @brief Accès au site du congrès pour la box ATTENTION
* @brief Accès au site e l'integ pour la box ATTENTION
*
*/
/* Copyright 2006
......@@ -29,7 +29,7 @@
require_once($topdir . "include/mysql.inc.php");
$UserBranches = array("TC" => "TC",
"GI" => "GI",
"GSP" => "IMAP",
......@@ -39,24 +39,20 @@ $UserBranches = array("TC" => "TC",
"Administration" => "Administration",
"Autre" => "Autre");
class congres
class integ
{
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))
}
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));
}
}
?>
......@@ -2,11 +2,11 @@
/** @file
*
* @brief Accès au site de l'integ pour la boite ATTENTION
* @brief Accès au site e l'integ pour la box ATTENTION
*
*/
/* Copyright 2006
* - Laurent COLNAT <simon POINT lopez CHEZ ayolo POINT org>
* - 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.
......@@ -29,7 +29,7 @@
require_once($topdir . "include/mysql.inc.php");
$UserBranches = array("TC" => "TC",
"GI" => "GI",
"GSP" => "IMAP",
......@@ -39,24 +39,20 @@ $UserBranches = array("TC" => "TC",
"Administration" => "Administration",
"Autre" => "Autre");
class congres
class integ
{
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))
}
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));
}
}
?>
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