* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: advanced_search.php,v 1.21 2004-10-29 01:24:20 x2000habouzit Exp $
+ $Id: advanced_search.php,v 1.22 2004-10-31 16:02:44 x2000chevalier Exp $
***************************************************************************/
require("auto.prepend.inc.php");
}
$promo1Field = new PromoSField('promo1','egal1',array('u.promo'),'');
$promo2Field = new PromoSField('promo2','egal2',array('u.promo'),'');
- $womanField = new RefSField('woman',array('FIND_IN_SET(i.flags,\'femme\')+1'),'','','');
+ $womanField = new RefSField('woman',array('FIND_IN_SET(u.flags,\'femme\')+1'),'','','');
$townField = new RefSField('ville',array('av.ville'),'adresses','av','u.user_id=av.uid',false);
$countryField = new RefSField('pays',array('ap.pays'),'adresses','ap','u.user_id=ap.uid');
$where = $fields->get_where_statement();
$sql = 'SELECT SQL_CALC_FOUND_ROWS
- DISTINCT u.matricule,i.matricule_ax,
+ DISTINCT u.matricule,u.matricule_ax,
1 AS inscrit,
u.nom,
u.prenom,
FROM auth_user_md5 AS u
'.$fields->get_select_statement().'
INNER JOIN aliases AS a ON (u.user_id = a.id AND a.type="a_vie")
- INNER JOIN identification AS i ON (i.matricule=u.matricule)
LEFT JOIN contacts AS c ON (c.uid='.((array_key_exists('uid',$_SESSION))?$_SESSION['uid']:0).' AND c.contact=u.user_id)
'.$globals->search_result_where_statement.'
'.(($where!='')?('WHERE '.$where):'').'
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: epouse.php,v 1.9 2004-10-19 22:05:09 x2000habouzit Exp $
+ $Id: epouse.php,v 1.10 2004-10-31 16:02:44 x2000chevalier Exp $
***************************************************************************/
require("auto.prepend.inc.php");
new_skinned_page('epouse.tpl', AUTH_MDP);
$res = $globals->db->query(
- "SELECT u.nom,u.epouse,i.flags,e.alias
+ "SELECT u.nom,u.epouse,u.flags,e.alias
FROM auth_user_md5 AS u
- LEFT JOIN identification AS i USING(matricule)
LEFT JOIN aliases AS e ON(u.user_id = e.id)
WHERE user_id=".$_SESSION['uid']);
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: fiche.php,v 1.17 2004-10-29 02:08:19 x2000habouzit Exp $
+ $Id: fiche.php,v 1.18 2004-10-31 16:02:44 x2000chevalier Exp $
***************************************************************************/
$where_clause = " WHERE u.matricule = '{$_REQUEST['mat']}'";
$reqsql = "SELECT u.prenom, u.nom, u.epouse, IF(gp.nat='',gp.pays,gp.nat) AS text,
- u.user_id, a.alias, a2.alias, u.matricule, i.deces != 0 as dcd,
- i.deces, u.date, u.cv, sections.text, u.mobile, u.web,
+ u.user_id, a.alias, a2.alias, u.matricule, u.deces != 0 as dcd,
+ u.deces, u.date, u.cv, sections.text, u.mobile, u.web,
u.libre, u.promo, c.uid IS NOT NULL, p.x, p.y
FROM auth_user_md5 AS u
INNER JOIN aliases AS a ON (u.user_id=a.id AND a.type='a_vie')
LEFT JOIN contacts AS c ON (c.uid = {$_SESSION['uid']} and c.contact = u.user_id)
INNER JOIN geoloc_pays AS gp ON (gp.a2 = u.nationalite)
INNER JOIN sections ON(sections.id = u.section)
- INNER JOIN identification AS i ON(u.matricule = i.matricule)
LEFT JOIN photo as p ON(p.uid = u.user_id)".$where_clause."
ORDER BY a2.type != 'epouse', LENGTH(a2.alias) LIMIT 1";
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: step3.php,v 1.1 2004-09-05 22:25:44 x2000habouzit Exp $
+ $Id: step3.php,v 1.2 2004-10-31 16:02:46 x2000chevalier Exp $
***************************************************************************/
require("auto.prepend.inc.php");
loginbis='$mailorg', username='$forlife'";
$globals->db->query($sql);
-$globals->db->query("UPDATE identification SET last_known_email='{$_REQUEST['email']}' WHERE matricule = $matricule");
+$globals->db->query("UPDATE auth_user_md5 SET last_known_email='{$_REQUEST['email']}' WHERE matricule = $matricule");
// si on venait de la page maj.php, on met a jour la table envoidirect
if(isset($_REQUEST['envoidirect']))
$globals->db->query("UPDATE envoidirect SET date_succes='NOW()' WHERE uid='{$_REQUEST['envoidirect']}'");
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: mescontacts.php,v 1.21 2004-10-29 02:04:23 x2000habouzit Exp $
+ $Id: mescontacts.php,v 1.22 2004-10-31 16:02:44 x2000chevalier Exp $
***************************************************************************/
require("auto.prepend.inc.php");
} else {
$sql = "SELECT contact AS id,
a.*, l.alias AS forlife,
- i.deces != 0 AS dcd, i.deces, i.matricule_ax, FIND_IN_SET('femme', i.flags) AS sexe,
+ u.deces != 0 AS dcd, u.deces, u.matricule_ax, FIND_IN_SET('femme', u.flags) AS sexe,
e.entreprise, es.label AS secteur, ef.fonction_fr AS fonction,
IF(n.nat='',n.pays,n.nat) AS nat, n.a2 AS iso3166,
ad0.text AS app0text, ad0.url AS app0url, ai0.type AS app0type,
IF(a.epouse<>'',a.epouse,a.nom) AS sortkey
FROM contacts AS c
INNER JOIN auth_user_md5 AS a ON (a.user_id = c.contact)
- INNER JOIN identification AS i ON (a.matricule = i.matricule)
INNER JOIN aliases AS l ON (a.user_id = l.id AND l.type='a_vie')
LEFT JOIN entreprises AS e ON (e.entrid = 0 AND e.uid = a.user_id)
LEFT JOIN emploi_secteur AS es ON (e.secteur = es.id)
* Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
***************************************************************************
- $Id: search.php,v 1.36 2004-10-25 20:27:52 x2000habouzit Exp $
+ $Id: search.php,v 1.37 2004-10-31 16:02:44 x2000chevalier Exp $
***************************************************************************/
require("auto.prepend.inc.php");
}
$promo1Field = new PromoSField('promo1','egal1',array('r.promo'),'');
$promo2Field = new PromoSField('promo2','egal2',array('r.promo'),'');
- $womanField = new RefSField('woman',array('FIND_IN_SET(i.flags,\'femme\')+1'),'','','');
+ $womanField = new RefSField('woman',array('FIND_IN_SET(u.flags,\'femme\')+1'),'','','');
$fields = new SFieldGroup(true,array($nameField,$firstnameField,$promo1Field,$promo2Field,$womanField));
if (!$nameField->length() && !$firstnameField->length()
$offset = new NumericSField('offset');
$sql = 'SELECT SQL_CALC_FOUND_ROWS
- DISTINCT r.matricule,i.matricule_ax,
+ DISTINCT r.matricule,u.matricule_ax,
u.nom!="" AS inscrit,
- UPPER(IF(u.nom!="",u.nom,i.nom)) AS nom,
- IF(u.prenom!="",u.prenom,i.prenom) AS prenom,
- IF(u.promo!="",u.promo,i.promo) AS promo,
+ UPPER(IF(u.nom!="",u.nom,u.nom_ini)) AS nom,
+ IF(u.prenom!="",u.prenom,u.prenom_ini) AS prenom,
+ u.promo AS promo,
a.alias AS forlife,
'.$globals->search_result_fields.'
c.uid AS contact
FROM '.($with_soundex?'recherche_soundex':'recherche').' AS r
- INNER JOIN identification AS i ON (i.matricule=r.matricule)
LEFT JOIN auth_user_md5 AS u ON (u.matricule=r.matricule)
LEFT JOIN aliases AS a ON (u.user_id = a.id AND a.type="a_vie")
LEFT JOIN contacts AS c ON (c.uid='.((array_key_exists('uid',$_SESSION))?$_SESSION['uid']:0).' AND c.contact=u.user_id)