function checkloged() { $k = $_SERVER["SERVER_NAME"]; $k = str_replace("www.", "", $k); $l = new db_query("SELECT * FROM kdims WHERE kdm_domain = '" . md5($k) . "' LIMIT 1"); if ($m = mysqli_fetch_assoc($l->result)) { $n = str_debase($m["kdm_key"]); $o = json_decode($n, true); if ($o != null) { if (md5($m["kdm_key"] . "|" . $o["pass"]) != $m["kdm_hash"]) { notifydie("Dang ky chua dung key"); } else { return $o; } } else { notifydie("Dang ky chua dung key"); } } else { notifydie("Chua dang ky domain"); } }
function checkloged(){ return true; exit(); $dm = $_SERVER["SERVER_NAME"]; $dm = str_replace("www.", "", $dm); $db_select = new db_query("SELECT * FROM kdims WHERE dkm_domain = '" . md5($dm) . "' LIMIT 1"); if($row = mysql_fetch_assoc($db_select->result)){ $array = str_debase($row["dkm_key"]); $row1 = json_decode($array, true); if($row1 != null){ if(md5($row["dkm_key"] . "|" . $row1["pass"]) != $row["dkm_hash"]){ notifydie("Dang ky chua dung key"); }else{ return $row1; } }else{ notifydie("Dang ky chua dung key"); } }else{ notifydie("Chua dang ky domain"); } }