andre 4 жил өмнө
parent
commit
4d7c76c0f5
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      stats.php

+ 5 - 0
stats.php

@@ -1,6 +1,11 @@
 <?php
 
 class stats {
+
+    public function __construct() {
+        $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);