From 619f489296ceac99e2b2a66a319dbdee5b8decd5 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Wed, 19 Oct 2005 20:22:41 +0000 Subject: [PATCH] cleanups git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@114 839d8a87-29fc-0310-9880-83ba4fa771e5 --- Makefile | 2 + htdocs/groupex/export-econfiance.php.orig | 71 ------------------------------- 2 files changed, 2 insertions(+), 71 deletions(-) delete mode 100644 htdocs/groupex/export-econfiance.php.orig diff --git a/Makefile b/Makefile index 4371c43..47b08fc 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,8 @@ get-wiki: fi build-wiki: wiki/local/farmconfig.php wiki/pub/skins/empty spool/wiki.d + @sed -e 's/exit;/\/\/exit;/g' wiki/pmwiki.php > wiki/pmwiki.php.new + @mv wiki/pmwiki.php.new wiki/pmwiki.php wiki: get-wiki build-wiki spool/uploads htdocs/uploads htdocs/wiki wiki/cookbook/e-protect.php diff --git a/htdocs/groupex/export-econfiance.php.orig b/htdocs/groupex/export-econfiance.php.orig deleted file mode 100644 index 2861e28..0000000 --- a/htdocs/groupex/export-econfiance.php.orig +++ /dev/null @@ -1,71 +0,0 @@ -core->econfiance; - -if (isset($_SESSION["chall"]) && $_SESSION["chall"] != "" && $_GET["PASS"] == md5($_SESSION["chall"].$cle)) { - - $res = $globals->xdb->query("SELECT password FROM auth_user_md5 WHERE user_id=10154"); - $pass = $res->fetchOneCell(); - - $client =& lists_xmlrpc(10154, $pass, "x-econfiance.polytechnique.org"); - $members = $client->get_members('membres'); - if(is_array($members)) { - $membres = Array(); - foreach($members[1] as $member) { - if(preg_match('/^([^.]*.[^.]*.(\d\d\d\d))@polytechnique.org$/', $member[1], $matches)) { - $membres[] = "a.alias='{$matches[1]}'"; - } - } - } - - $where = join(' OR ',$membres); - - $all = $globals->xdb->iterRow( - "SELECT u.prenom,u.nom,a.alias - FROM auth_user_md5 AS u - INNER JOIN aliases AS a ON ( u.user_id = a.id AND a.type!='homonyme' ) - WHERE $where - ORDER BY nom"); - - $res = "\n\n\n\n"; - - while (list ($prenom1,$nom1,$email1) = $all->next()) { - $res .= "\n"; - $res .= "\t$nom1\n"; - $res .= "\t$prenom1\n"; - $res .= "\t$email1\n"; - $res .= "\n\n"; - } - - $res .= "\n\n"; - - echo $res; -} - -?> -- 2.1.4