+++ /dev/null
-<?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