Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
undefined function gmp_strval()
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Support

2022-04-15 05:41:29
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);
// 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

Last edited by Extremlym66 on 2022-04-15 05:57:32
2022-04-15 06:42:36
Sorry ! i resolve it 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
Screenshot 2022-04-15 at 09-40-54 Network extremlymtorrents.ws Extremlymtorrents's Account Cloudflar
File missing
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728