![]() |
|
[SOLVED] CMS 3.8.1 profile + Cloudflare - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Website Scripting & Security (https://lckb.dev/forum/forumdisplay.php?fid=197) +---- Forum: LastChaos - CMS (https://lckb.dev/forum/forumdisplay.php?fid=182) +----- Forum: ToXiC Support (https://lckb.dev/forum/forumdisplay.php?fid=206) +----- Thread: [SOLVED] CMS 3.8.1 profile + Cloudflare (/showthread.php?tid=4095) |
- h0rus - 10-21-2014 Hi we're having problems with cms, seems that when we activated bussiness plan on cloudflare cms started working wrong, profile section is not working, so alias changing or password changing are impossible. thank you! - Sutz - 10-21-2014 I had a problem with this before with cloudflare but the free version but I fixed it in 3.8.1 never tested on bussiness - Sutz - 10-22-2014 FIXED: Edit Core/functions.php Change function get_real_ip_noimport(){ if (isset($_SERVER["HTTP_CLIENT_IP"])) return $_SERVER["HTTP_CLIENT_IP"]; elseif (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) return $_SERVER["HTTP_X_FORWARDED_FOR"]; elseif (isset($_SERVER["HTTP_X_FORWARDED"])) return $_SERVER["HTTP_X_FORWARDED"]; elseif (isset($_SERVER["HTTP_FORWARDED_FOR"])) return $_SERVER["HTTP_FORWARDED_FOR"]; elseif (isset($_SERVER["HTTP_FORWARDED"])) return $_SERVER["HTTP_FORWARDED"]; else return $_SERVER["REMOTE_ADDR"]; } - Sutz - 10-22-2014 to function get_real_ip_noimport(){ if (isset($_SERVER["HTTP_CLIENT_IP"])) return $_SERVER["HTTP_CLIENT_IP"]; elseif (isset($_SERVER["HTTP_X_FORWARDED"])) return $_SERVER["HTTP_X_FORWARDED"]; elseif (isset($_SERVER["HTTP_FORWARDED"])) return $_SERVER["HTTP_FORWARDED"]; else return $_SERVER["REMOTE_ADDR"]; } This will fix the bug of view profile behind cloudflare. - Jaiz - 10-22-2014 how is the bug fix with vote? on 3.6.1(2)? Users can still vote but if they voted its checked that they voted but the cash didnt arrive..? - h0rus - 10-23-2014 Thank you ToXiC L33T everything runs great, Thank you! - Sutz - 10-23-2014 how is the bug fix with vote? on 3.6.1(2)? Users can still vote but if they voted its checked that they voted but the cash didnt arrive..? check your scripts 3.6.1/2 I think gives reward points not cash but its a simple edit in vote4us.php |