oups
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Fri, 3 Dec 2004 18:23:37 +0000 (18:23 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:28 +0000 (23:26 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-39

include/lists.inc.php

index f986cbc..5111089 100644 (file)
@@ -29,10 +29,10 @@ require_once("xml-rpc-client.inc.php");
 function &lists_xmlrpc($uid, $pass, $fqdn=null)
 {
     global $globals;
-    
+
     $dom = empty($fqdn) ? $globals->mail->domain : $fqdn;
-    $url = "http://$uid:$pass/{$globals->lists->rpchost}:{$globals->lists->rpcport}/$dom";
-    $client = new xmlrpc_client("http://{$_SESSION['uid']}:{$_SESSION['password']}@localhost:4949/polytechnique.org");
+    $url = "http://$uid:$pass@{$globals->lists->rpchost}:{$globals->lists->rpcport}/$dom";
+    $client = new xmlrpc_client($url);
     return $client;
 }