|
@@ -6,11 +6,14 @@ class action {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public function getList() {
|
|
public function getList() {
|
|
|
|
|
+ $list = array();
|
|
|
$dbAction = $this->db->prepare("SELECT ip FROM list UNION SELECT ip FROM blacklist ORDER BY ip ASC");
|
|
$dbAction = $this->db->prepare("SELECT ip FROM list UNION SELECT ip FROM blacklist ORDER BY ip ASC");
|
|
|
$dbAction->execute();
|
|
$dbAction->execute();
|
|
|
$dbAction->store_result();
|
|
$dbAction->store_result();
|
|
|
- $dbAction->bind_result($list);
|
|
|
|
|
- $dbAction->fetch_array();
|
|
|
|
|
|
|
+ $dbAction->bind_result($ip);
|
|
|
|
|
+ while($dbAction->fetch()) {
|
|
|
|
|
+ array_push($list,long2ip($ip));
|
|
|
|
|
+ };
|
|
|
return $list;
|
|
return $list;
|
|
|
}
|
|
}
|
|
|
|
|
|