stats.php 376 B

1234567891011121314
  1. <?php
  2. class stats {
  3. public function __construct() {
  4. $this->db = new db();
  5. }
  6. public function log($clientIP,$ip,$action,$token) {
  7. $dbAction = $this->db->prepare("INSERT IGNORE INTO stats (clientip,ip,action,token) VALUES (?,?,?,?)");
  8. $dbAction->bind_param('iiss',$clientIP,$ip,$action,$token);
  9. return $dbAction->execute();
  10. }
  11. }