deprecated
authorx2000chevalier <x2000chevalier>
Sun, 31 Oct 2004 16:12:55 +0000 (16:12 +0000)
committerx2000chevalier <x2000chevalier>
Sun, 31 Oct 2004 16:12:55 +0000 (16:12 +0000)
scripts/FormatePrenomNOM2.php [deleted file]

diff --git a/scripts/FormatePrenomNOM2.php b/scripts/FormatePrenomNOM2.php
deleted file mode 100644 (file)
index 961344c..0000000
+++ /dev/null
@@ -1,61 +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
-        $Id: FormatePrenomNOM2.php,v 1.2 2004-08-31 11:19:51 x2000habouzit Exp $\r
- ***************************************************************************/\r
-\r
-require("xorg.common.inc.php");\r
-\r
-$result=mysql_query("SELECT matricule,prenom,nom FROM identification");\r
-\r
-while($myrow = mysql_fetch_array($result)) {\r
-\r
-       $prenom = rtrim($myrow["prenom"]);\r
-       $old_prenom = $prenom;\r
-       $nom = rtrim($myrow["nom"]);\r
-       $old_nom = $nom;\r
-       $uid = $myrow["matricule"];\r
-\r
-       $pre1=strtok($prenom,"-");\r
-       $pre2=strtok(" -");\r
-       $pre3=strtok(" -");\r
-       $pre1=ucwords(strtolower($pre1));\r
-       $pre2=ucwords(strtolower($pre2));\r
-       $pre3=ucwords(strtolower($pre3));\r
-       if ($pre3) {\r
-               $prenom = $pre1."-".$pre2."-".$pre3;\r
-       } else 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 identification SET prenom='$prenom',nom='$nom' WHERE matricule='$uid'");\r
-       }\r
-\r
-}\r
-\r
-?>\r