mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
spam attempts
This commit is contained in:
parent
8725ea8911
commit
6542bf43e1
@ -45,6 +45,7 @@ class Spamadmin extends CI_Controller
|
|||||||
{
|
{
|
||||||
$this->db->where('ip_address', $ip_address);
|
$this->db->where('ip_address', $ip_address);
|
||||||
$this->db->delete('pastes');
|
$this->db->delete('pastes');
|
||||||
|
$paste_count = $this->db->affected_rows();
|
||||||
|
|
||||||
if ($this->input->post('block_ip'))
|
if ($this->input->post('block_ip'))
|
||||||
{
|
{
|
||||||
@ -57,6 +58,7 @@ class Spamadmin extends CI_Controller
|
|||||||
$this->db->insert('blocked_ips', array(
|
$this->db->insert('blocked_ips', array(
|
||||||
'ip_address' => $ip_address,
|
'ip_address' => $ip_address,
|
||||||
'blocked_at' => mktime() ,
|
'blocked_at' => mktime() ,
|
||||||
|
'spam_attempts' => $paste_count,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user