obsolete since ages
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 12 Apr 2005 14:51:43 +0000 (14:51 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:24 +0000 (23:28 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-532

bin/FormatePrenomNOM.php [deleted file]

diff --git a/bin/FormatePrenomNOM.php b/bin/FormatePrenomNOM.php
deleted file mode 100644 (file)
index 422d1d4..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php echo "L'usage de cette page est réservé à un root"; exit; ?>\r
-<?php\r
-/***************************************************************************\r
- *  Copyright (C) 2003-2004 Polytechnique.org                              *\r
- *  http://opensource.polytechnique.org/                                   *\r
- *                                                                         *\r
- *  This program is free software; you can redistribute it and/or modify   *\r
- *  it under the terms of the GNU General Public License as published by   *\r
- *  the Free Software Foundation; either version 2 of the License, or      *\r
- *  (at your option) any later version.                                    *\r
- *                                                                         *\r
- *  This program is distributed in the hope that it will be useful,        *\r
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *\r
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *\r
- *  GNU General Public License for more details.                           *\r
- *                                                                         *\r
- *  You should have received a copy of the GNU General Public License      *\r
- *  along with this program; if not, write to the Free Software            *\r
- *  Foundation, Inc.,                                                      *\r
- *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *\r
- ***************************************************************************/\r
-\r
-require("xorg.inc.php");\r
-\r
-$res = $globals->dbx->iterator('SELECT user_id,prenom,nom FROM auth_user_md5');\r
-\r
-while ($myrow = $res->next()) {\r
-\r
-    $old_prenom = $prenom = $myrow["prenom"];\r
-    $old_nom    = $nom    = $myrow["nom"];\r
-    $uid        = $myrow["user_id"];\r
-\r
-    $pre1 = strtok($prenom,"-");\r
-    $pre2 = strtok(" ");\r
-    $pre1 = ucwords(strtolower($pre1));\r
-    $pre2 = ucwords(strtolower($pre2));\r
-    if ($pre2) {\r
-        $prenom = $pre1."-".$pre2;\r
-    } else {\r
-        $prenom = $pre1;\r
-    }\r
-    $nom = strtoupper(strtr($nom,"éèëêàäâïîôöùûüç","eeeeaaaiioouuuc"));\r
-\r
-    if ($old_prenom!=$prenom || $old_nom!=$nom) {\r
-        echo "$old_prenom $old_nom >>>>> $prenom $nom<br>"; \r
-        $prenom = addslashes($prenom);\r
-        $nom = addslashes($nom);\r
-        //mysql_query("UPDATE auth_user_md5 SET prenom='$prenom',nom='$nom' WHERE user_id=$uid");\r
-    }\r
-}\r
-\r
-?>\r