109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
{
return $this->db->delete('membres_sessions', $this->db->where('id_membre', $user_id));
}
// Ajout de la gestion de LOCAL_LOGIN
public function isLogged()
{
if (empty($_SESSION['user']) && defined('\Garradin\LOCAL_LOGIN')
&& is_int(\Garradin\LOCAL_LOGIN) && \Garradin\LOCAL_LOGIN > 0)
{
$this->create(\Garradin\LOCAL_LOGIN);
}
return parent::isLogged();
}
|
|
|
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
{
return $this->db->delete('membres_sessions', $this->db->where('id_membre', $user_id));
}
// Ajout de la gestion de LOCAL_LOGIN
public function isLogged()
{
if (empty($_COOKIE[$this->cookie_name]) && defined('\Garradin\LOCAL_LOGIN')
&& is_int(\Garradin\LOCAL_LOGIN) && \Garradin\LOCAL_LOGIN > 0)
{
$this->create(\Garradin\LOCAL_LOGIN);
}
return parent::isLogged();
}
|