diff --git a/.gitattributes b/.gitattributes index 51e9271c..9c8e962d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -170,6 +170,7 @@ bureau/admin/images/folderhta.png -text bureau/admin/images/ftp.png -text bureau/admin/images/help.png -text bureau/admin/images/home.png -text +bureau/admin/images/ip.png -text bureau/admin/images/lang.png -text bureau/admin/images/mail.png -text bureau/admin/images/minus.png -text diff --git a/bureau/admin/images/ip.png b/bureau/admin/images/ip.png new file mode 100644 index 00000000..889b57e7 Binary files /dev/null and b/bureau/admin/images/ip.png differ diff --git a/bureau/class/m_authip.php b/bureau/class/m_authip.php index eaf564ef..2572a9b8 100644 --- a/bureau/class/m_authip.php +++ b/bureau/class/m_authip.php @@ -138,11 +138,11 @@ class m_authip { /* * Fonction appelée par Alternc lors de la suppression d'un utilisateur * - * @param integer $l_uid uid de l'utilisater à supprimer * @return boolean Retourne TRUE */ - function alternc_del_member($l_uid) { - $db->query("SELECT id FROM authorised_ip WHERE uid ='$l_uid';"); + function alternc_del_member() { + global $cuid; + $db->query("SELECT id FROM authorised_ip WHERE uid ='$cuid';"); while ($db->next_record()) { $this->ip_delete($db->f('id')); }