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