Mise à 1 du flag pour la mise à jour table recherche
authorx2000bedo <x2000bedo>
Sun, 15 Aug 2004 00:21:21 +0000 (00:21 +0000)
committerx2000bedo <x2000bedo>
Sun, 15 Aug 2004 00:21:21 +0000 (00:21 +0000)
Selon les prescriptions de Pierre quand :
- un admin touche à admin/utilisateur.php
- on valide un nom d'épouse

htdocs/admin/utilisateurs.php
include/valid_epouses.inc.php

index 6760f94..ae1f536 100644 (file)
@@ -241,6 +241,11 @@ foreach($_POST as $key => $val) {
                 my_error("<b>Failed:</b> $query");
                 break;
             }
+            
+            $f = fopen("/tmp/flag_recherche","w");
+            fputs($f,"1");
+            fclose($f);
+
             my_msg("\"$login\" updaté correctement.");
             // envoi du mail au webmaster
             $HEADER="From: ADMINISTRATION\nReply-To: webmaster@polytechnique.org\nX-Mailer: PHP/" . phpversion();
index 35a2ed2..3b63199 100644 (file)
@@ -77,6 +77,9 @@ class EpouseReq extends Validate {
         
         $alias = ($this->epouse ? $this->alias : "");
         $globals->db->query("UPDATE auth_user_md5 set epouse='".$this->epouse."',epouse_soundex='".soundex_fr($this->epouse)."',alias='".$this->alias."' WHERE user_id=".$this->uid);
+        $f = fopen("/tmp/flag_recherche","w");
+        fputs($f,"1");
+        fclose($f);
     }
 }