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
Cloudflare SSL Logout after login
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2022-04-12 18:17:44
hello Traders i have a issue
after i add cloudflare to website , logmeof aster 10 12 sec any ideas how to resolve this?
2022-04-13 10:38:03
Have you edited the the getip function in functions.php and announce.php
https://torrenttrader.uk/topic?topicid=10351
2022-04-13 11:01:46
check link
https://torrenttrader.uk/topic?topicid=4745
2022-04-13 20:06:47
leech24:
check linkhttps://torrenttrader.uk/topic?topicid=4745
M-jay many many thx

this worked for meee!!!!
/== Updated getip with validation
function getip()
{
  if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
      $ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
      return $ip;
  }
  foreach (array(
      'HTTP_CLIENT_IP',
      'HTTP_X_FORWARDED_FOR',
      'HTTP_X_FORWARDED',
      'HTTP_X_CLUSTER_CLIENT_IP',
      'HTTP_FORWARDED_FOR',
      'HTTP_FORWARDED',
      'HTTP_CF_CONNECTING_IP',
      'REMOTE_ADDR'
  ) as $key) {
      if (array_key_exists($key, $_SERVER) === true) {
          foreach (array_map('trim', explode(',', $_SERVER[$key])) as $ip) {
              if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false) {
                  return $ip;
              }
          }
      }
  }
}


                 
2022-05-07 16:06:59
This is about the only solution out there, although edited - This is a MUST in your global functions file.
2025-03-31 10:22:52
Have same problem :)) the code worked but something changed any ideea
2025-03-31 11:00:48
FIXED !
2025-04-07 10:10:26
SAME THING but in FIREFOX Browser !

//== Updated getip with validation for Cloudflare
function getip()
{
 if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
     $ip = $_SERVER['HTTP_CF_CONNECTING_IP'];
     return $ip;
 }
 foreach (array(
     'HTTP_CLIENT_IP',
     'HTTP_X_FORWARDED_FOR',
     'HTTP_X_FORWARDED',
     'HTTP_X_CLUSTER_CLIENT_IP',
     'HTTP_FORWARDED_FOR',
     'HTTP_FORWARDED',
     'HTTP_CF_CONNECTING_IP',
     'REMOTE_ADDR'
 ) as $key) {
     if (array_key_exists($key, $_SERVER) === true) {
         foreach (array_map('trim', explode(',', $_SERVER[$key])) as $ip) {
             if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false) {
                 return $ip;
             }
         }
     }
 }
}


This is SET

session
Session Support enabled
Registered save handlers files user
Registered serializer handlers php_serialize php php_binary wddx
Directive Local Value Master Value
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain dfsdfhsjdfhskjdfhsjdfhksfhsdfkjshdfkshd [deleted]
session.cookie_httponly On On
session.cookie_lifetime 3600 3600
session.cookie_path / /
session.cookie_secure On On
session.entropy_file /dev/urandom /dev/urandom
session.entropy_length 32 32
session.gc_divisor 1000 1000
session.gc_maxlifetime 3600 3600
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /var/lib/php/session no value
session.serialize_handler php php
session.upload_progress.cleanup On On
session.upload_progress.enabled On On
session.upload_progress.freq 1% 1%
session.upload_progress.min_freq 1 1
session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix upload_progress_ upload_progress_
session.use_cookies On On
session.use_only_cookies On On
session.use_strict_mode Off Off
session.use_trans_sid 0 0

.htacces

php_flag display_errors off
AddCharset utf-8 .html .css .php .txt .js

<IfModule mod_rewrite.c>
   # Redirecționează tot traficul HTTP la HTTPS
   RewriteEngine On
   RewriteCond %{HTTPS} off
   RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>


don't know what to do
Cloudflare is on FULL STRICT
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: 6
  • Members: 0
  • Guests online: 6
  • Comments: 3
  • Messages: 1,728