X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fuserset.inc.php;h=ab77c016429e9ea1af5698daeb3bd8beb308c469;hb=f70f2bcdc077c220e40ecebaf569e097f6028743;hp=63921604cb679b50dfbf8cde0fbdae33a0c28284;hpb=8d118e58bc57a28c36862b2ef526ba9fe5c6bb74;p=platal.git diff --git a/include/userset.inc.php b/include/userset.inc.php index 6392160..ab77c01 100644 --- a/include/userset.inc.php +++ b/include/userset.inc.php @@ -19,7 +19,6 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -require_once('xorg.misc.inc.php'); require_once('user.func.inc.php'); global $globals; @@ -186,7 +185,8 @@ class MinificheView extends MultipageView ad1.text AS app1text, ad1.url AS app1url, ai1.type AS app1type, adr.city, gp.a2, gp.pays AS countrytxt, gr.name AS region, IF(u.nom_usage<>'',u.nom_usage,u.nom) AS sortkey, - COUNT(em.email) > 0 AS actif" . (S::logged() ? ", c.contact AS contact" : ''); + (COUNT(em.email) > 0 OR FIND_IN_SET('googleapps', u.mail_storage) > 0) AS actif" . + (S::logged() ? ", c.contact AS contact" : ''); } public function joins() @@ -230,7 +230,7 @@ class MentorView extends MultipageView public function fields() { return "m.uid, u.prenom, u.nom, u.promo, - a.alias AS bestalias, m.expertise, mp.pid, + a.alias AS forlife, m.expertise, mp.pid, ms.secteur, ms.ss_secteur"; } @@ -269,7 +269,7 @@ class TrombiView extends MultipageView return 'include/plview.trombi.tpl'; } - public function apply(PlatalPage &$page) + public function apply(PlPage &$page) { if (!empty($GLOBALS['IS_XNET_SITE'])) { global $globals; @@ -306,7 +306,7 @@ class GeolocView implements PlView return $args; } - public function apply(PlatalPage &$page) + public function apply(PlPage &$page) { require_once 'geoloc.inc.php'; require_once '../modules/search/search.inc.php'; @@ -404,7 +404,7 @@ class GadgetView implements PlView : ""); } - public function apply(PlatalPage &$page) + public function apply(PlPage &$page) { $page->assign_by_ref('set', $this->set->get($this->fields(), $this->joins(), null, null, null, 5, 0));