X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fuser.func.inc.php;h=d9232a3457f9ee30ea3dbde66dd2d7800ac91b56;hb=5d42c993d85a2f1fa3595eb1591a921c0f89d8cd;hp=a7b422ce087e40938b57e05065ce6449f15bd01a;hpb=faefdbb72b58e3b1867fc7bbdfe8e872d7e8cbc0;p=platal.git diff --git a/include/user.func.inc.php b/include/user.func.inc.php index a7b422c..d9232a3 100644 --- a/include/user.func.inc.php +++ b/include/user.func.inc.php @@ -87,8 +87,7 @@ function user_clear_all_subs($user_id, $really_del=true) // Defaut callback to call when a login is not found function _default_user_callback($login) { - global $page; - $page->trigError("Il n'y a pas d'utilisateur avec l'identifiant : $login"); + Platal::page()->trigError("Il n'y a pas d'utilisateur avec l'identifiant : $login"); return; } @@ -99,7 +98,7 @@ function _silent_user_callback($login) function get_user_login($data, $get_forlife = false, $callback = '_default_user_callback') { - global $globals, $page; + global $globals; if (is_numeric($data)) { $res = XDB::query("SELECT alias FROM aliases WHERE type='a_vie' AND id={?}", $data); @@ -171,7 +170,7 @@ function get_user_login($data, $get_forlife = false, $callback = '_default_user_ default: if (S::has_perms()) { $aliases = $res->fetchColumn(); - $page->trigError("Il y a $i utilisateurs avec cette adresse email : ".join(', ', $aliases)); + Platal::page()->trigError("Il y a $i utilisateurs avec cette adresse mail : ".join(', ', $aliases)); } else { $res->free(); } @@ -359,6 +358,7 @@ function get_user_details_adr($uid, $view = 'private') { gp.pays AS countrytxt,a.region, a.regiontxt, FIND_IN_SET('active', a.statut) AS active, a.adrid, FIND_IN_SET('res-secondaire', a.statut) AS secondaire, + FIND_IN_SET('courrier', a.statut) AS courier, a.pub, gp.display FROM adresses AS a LEFT JOIN geoloc_pays AS gp ON (gp.a2=a.country)