Jelajahi Sumber

add duckdns and noip to cookie workaround #785

causefx 8 tahun lalu
induk
melakukan
f10ba2b62f
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      api/functions/normal-functions.php

+ 1 - 2
api/functions/normal-functions.php

@@ -27,7 +27,7 @@ function gravatar($email = '')
 // Cookie Custom Function
 // Cookie Custom Function
 function coookie($type, $name, $value = '', $days = -1, $http = true)
 function coookie($type, $name, $value = '', $days = -1, $http = true)
 {
 {
-    $badDomains = array('ddns.net','ddnsking.com','3utilities.com','bounceme.net','freedynamicdns.net','freedynamicdns.org','gotdns.ch','hopto.org','myddns.me','myftp.biz','myftp.org','myvnc.com','onthewifi.com','redirectme.net','serveblog.net','servecounterstrike.com','serveftp.com','servegame.com','servehalflife.com','servehttp.com','serveirc.com','serveminecraft.net','servemp3.com','servepics.com','servequake.com','sytes.net','viewdns.net','webhop.me','zapto.org');
+    $badDomains = array('ddns.net','ddnsking.com','3utilities.com','bounceme.net','duckdns.org','freedynamicdns.net','freedynamicdns.org','gotdns.ch','hopto.org','myddns.me','myftp.biz','myftp.org','myvnc.com','noip.com','onthewifi.com','redirectme.net','serveblog.net','servecounterstrike.com','serveftp.com','servegame.com','servehalflife.com','servehttp.com','serveirc.com','serveminecraft.net','servemp3.com','servepics.com','servequake.com','sytes.net','viewdns.net','webhop.me','zapto.org');
     if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == "https") {
     if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == "https") {
         $Secure = true;
         $Secure = true;
         $HTTPOnly = true;
         $HTTPOnly = true;
@@ -47,7 +47,6 @@ function coookie($type, $name, $value = '', $days = -1, $http = true)
     if ($Port !== false) {
     if ($Port !== false) {
         $Domain = substr($Domain, 0, $Port);
         $Domain = substr($Domain, 0, $Port);
     }
     }
-    $Port = strpos($Domain, ':');
     $check = substr_count($Domain, '.');
     $check = substr_count($Domain, '.');
     if ($check >= 3) {
     if ($check >= 3) {
         if (is_numeric($Domain[0])) {
         if (is_numeric($Domain[0])) {