X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fnotifs.inc.php;h=bae71b021c6040498249617edba759d831867d37;hb=e0ee31204dbb8e43870716190e4549257416fcb8;hp=33ae8ebc9839ca7ff4c3439b81dc643ecc477d09;hpb=de08a5eb35a0daa5ea1817532f02367e0f0edbec;p=platal.git diff --git a/include/notifs.inc.php b/include/notifs.inc.php index 33ae8eb..bae71b0 100644 --- a/include/notifs.inc.php +++ b/include/notifs.inc.php @@ -1,6 +1,6 @@ updateNbNotifs(); } // }}} @@ -138,19 +138,21 @@ function select_notifs($mail, $uid=null, $last=null, $iterator=true) // {{{ global $prf_desc; -$prf_desc = array('nom' => 'Son patronyme', +$prf_desc = array('search_names' => 'L\'un de ses noms', 'freetext' => 'Le texte libre', 'mobile' => 'Son numéro de téléphone portable', 'nationalite' => 'Sa nationalité', + 'nationalite2' => 'Sa seconde nationalité', + 'nationalite3' => 'Sa troisième nationalité', 'nick' => 'Son surnom', - 'web' => 'L\'adresse de son site web', - 'appli1' => 'Son école d\'application', - 'appli2' => 'Son école de post-application', + 'networking' => 'La liste de ses adresses de networking', + 'edus' => 'Ses formations', 'addresses' => 'Ses adresses', 'section' => 'Sa section sportive', 'binets' => 'La liste de ses binets', 'medals' => 'Ses décorations', 'cv' => 'Son Curriculum Vitae', + 'corps' => 'Son Corps d\'État', 'jobs' => 'Ses informations professionnelles', 'photo' => 'Sa photographie'); @@ -446,7 +448,7 @@ class NoninsNotifs public function add($p) { - XDB::execute('INSERT INTO watch_nonins (uid,ni_id) VALUES({?},{?})', $this->_uid, $p); + XDB::execute('INSERT IGNORE INTO watch_nonins (uid,ni_id) VALUES({?},{?})', $this->_uid, $p); $res = XDB::query('SELECT prenom,IF(nom_usage="",nom,nom_usage) AS nom,promo,user_id FROM auth_user_md5 WHERE user_id={?}', $p);