Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Closed Thread
  #1  
Old 15th April 2022, 08:29
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default undefined function gmp_strval()
Fatal error: Call to undefined function gmp_strval() in /var/www/html/backend/functions.php on line 1792

1792 line is return gmp_strval(gmp_init($ipv6long,2),10);
Code:
// Taken from php.net comments
function ip2long6($ipv6) {
  $ip_n = inet_pton($ipv6);
  $bits = 15; // 16 x 8 bit = 128bit
  while ($bits >= 0) {
    $bin = sprintf("%08b",(ord($ip_n[$bits])));
    $ipv6long = $bin.$ipv6long;
    $bits--;
  }
  return gmp_strval(gmp_init($ipv6long,2),10);
}

function long2ip6($ipv6long) {

  $bin = gmp_strval(gmp_init($ipv6long,10),2);
  if (strlen($bin) < 128) {
    $pad = 128 - strlen($bin);
    for ($i = 1; $i <= $pad; $i++) {
    $bin = "0".$bin;
    }
  }
  $bits = 0;
  while ($bits <= 7) {
    $bin_part = substr($bin,($bits*16),16);
    $ipv6 .= dechex(bindec($bin_part)).":";
    $bits++;
  }
  // compress

  return inet_ntop(inet_pton(substr($ipv6,0,-1)));
}
hello how can i resolve this error

Bump: Fix IT this problem was from CLOUDFLARE


Account Cloudflare Pseudo IPv4
Adds an IPv4 header to requests when a client is using IPv6, but the server only supports IPv4. was OFF
  #2  
Old 15th April 2022, 12:21
papad's Avatar
papad papad is offline
Administrator
 
Join Date: Feb 2013
P2P
Posts: 146
Default
Quote:
Bump: Fix IT this problem was from CLOUDFLAR
attention

Attention

Thanks Extremlym For Letting Us Know



Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 14:53. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.