mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 12:31:06 -05:00
implemented changes proposed in #422.
This commit is contained in:
parent
6bf8243634
commit
cf2b0e3731
@ -85,8 +85,20 @@ class Spamadmin extends CI_Controller
|
||||
$data = $this->pastes->getSpamLists('spamadmin/' . $ip_address, $seg = 3, $ip_address);
|
||||
$data['ip_address'] = $ip_address;
|
||||
$ip = explode('.', $ip_address);
|
||||
$ip_firstpart = $ip[0] . '.' . $ip[1] . '.';
|
||||
$data['ip_range'] = $ip_firstpart . '*.*';
|
||||
|
||||
if (count($ip) > 1)
|
||||
{
|
||||
$ip_firstpart = $ip[0] . '.' . $ip[1] . '.';
|
||||
$data['ip_range'] = $ip_firstpart . '*.*';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// ipv6
|
||||
$ip = explode(':', $ip_address);
|
||||
$ip_firstpart = $ip[0] . ':' . $ip[1] . ':' . $ip[2] . ':' . $ip[3] . ':' . $ip[4] . ':' . $ip[5] . ':' . $ip[6];
|
||||
$data['ip_range'] = $ip_firstpart . ':*';
|
||||
}
|
||||
|
||||
//view
|
||||
$this->load->view('spam_detail', $data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user