|
|
@@ -5,6 +5,18 @@ class action {
|
|
|
$this->db = new db();
|
|
|
}
|
|
|
|
|
|
+ public function getUser() {
|
|
|
+ $list = array();
|
|
|
+ $dbAction = $this->db->prepare("SELECT * FROM clients");
|
|
|
+ $dbAction->execute();
|
|
|
+ $dbAction->store_result();
|
|
|
+ $dbAction->bind_result($user);
|
|
|
+ while($dbAction->fetch()) {
|
|
|
+ array_push($list,$user);
|
|
|
+ };
|
|
|
+ return $list;
|
|
|
+ }
|
|
|
+
|
|
|
public function getWhiteList() {
|
|
|
$list = array();
|
|
|
$dbAction = $this->db->prepare("SELECT ip FROM whitelist ORDER BY ip ASC");
|