|
@@ -6,9 +6,9 @@ class stats {
|
|
|
$this->db = new db();
|
|
$this->db = new db();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public function log($ip,$action,$token) {
|
|
|
|
|
- $dbAction = $this->db->prepare("INSERT IGNORE INTO stats (ip,action,token) VALUES (?,?,?)");
|
|
|
|
|
- $dbAction->bind_param('iss',$ip,$action,$token);
|
|
|
|
|
|
|
+ public function log($clientIP,$ip,$action,$token) {
|
|
|
|
|
+ $dbAction = $this->db->prepare("INSERT IGNORE INTO stats (clientip,ip,action,token) VALUES (?,?,?,?)");
|
|
|
|
|
+ $dbAction->bind_param('iiss',$clientIP,$ip,$action,$token);
|
|
|
return $dbAction->execute();
|
|
return $dbAction->execute();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|