From: x2000bedo Date: Sun, 15 Aug 2004 00:21:21 +0000 (+0000) Subject: Mise à 1 du flag pour la mise à jour table recherche X-Git-Tag: xorg/old~1759 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=22332b5853620ce256dd844e3388aca25c9a8346;p=platal.git Mise à 1 du flag pour la mise à jour table recherche Selon les prescriptions de Pierre quand : - un admin touche à admin/utilisateur.php - on valide un nom d'épouse --- diff --git a/htdocs/admin/utilisateurs.php b/htdocs/admin/utilisateurs.php index 6760f94..ae1f536 100644 --- a/htdocs/admin/utilisateurs.php +++ b/htdocs/admin/utilisateurs.php @@ -241,6 +241,11 @@ foreach($_POST as $key => $val) { my_error("Failed: $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(); diff --git a/include/valid_epouses.inc.php b/include/valid_epouses.inc.php index 35a2ed2..3b63199 100644 --- a/include/valid_epouses.inc.php +++ b/include/valid_epouses.inc.php @@ -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); } }