<?php
/***************************************************************************
- * Copyright (C) 2003-2004 Polytechnique.org *
+ * Copyright (C) 2003-2006 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
// {{{ import class definitions
-require_once("xml-rpc-client.inc.php");
+require_once 'platal/xmlrpc-client.inc.php';
// }}}
// {{{ function lists_xmlrpc
{
global $globals;
- $dom = empty($fqdn) ? $globals->mail->domain : $fqdn;
+ $dom = is_null($fqdn) ? $globals->mail->domain : $fqdn;
$url = "http://$uid:$pass@{$globals->lists->rpchost}:{$globals->lists->rpcport}/$dom";
$client = new xmlrpc_client($url);
return $client;
$membres = Array();
foreach($members as $mem) {
- list($m, $dom) = split('@',$mem);
+ list($m, $dom) = explode('@',$mem);
if ($dom == $globals->mail->domain || $dom == $globals->mail->domain2) {
$res = $globals->xdb->query('SELECT prenom,IF(nom_usage="", nom, nom_usage), promo
FROM auth_user_md5 AS u