andre 4 lat temu
rodzic
commit
4b22db3f02
1 zmienionych plików z 1 dodań i 4 usunięć
  1. 1 4
      index.php

+ 1 - 4
index.php

@@ -9,7 +9,7 @@ class db extends mysqli {
     public function __construct() {
     public function __construct() {
         @parent::__construct($this->$host, $this->$user, $this->$pass, $this->$db);
         @parent::__construct($this->$host, $this->$user, $this->$pass, $this->$db);
         if($this->connect_errno){
         if($this->connect_errno){
-            die($db->connect_error);
+            die($this->connect_error);
         }
         }
     }
     }
 }
 }
@@ -17,9 +17,6 @@ $ip = trim($_GET['ip']);
 $token = trim($_GET['token']);
 $token = trim($_GET['token']);
 $action = trim($_GET['action']);
 $action = trim($_GET['action']);
 $db = new db();
 $db = new db();
-if ($db->connect_errno){
-    die($db->connect_error);
-}
 $db->set_charset('utf8');
 $db->set_charset('utf8');
 
 
 function checkToken($token,$db) {
 function checkToken($token,$db) {