MyBB Tutorials

Patch avatar url upload

Submitted by Akay, , Thread ID: 2104

Thread Closed
26-03-2015, 09:42 PM
This post was last modified: 26-03-2015, 09:43 PM by Akay
#1
First you want to go to inc/functions.php, at line 5584 (May be different if you use google SEO), you will look for a function called "fetch_remote_file". This function allows for a douchebag to get the real IP address of the forum.
In order to stop this, we will use this code.

This is within the section that says if(function_exists("curl_init")) for those of you who have edited their functions.php file, Insert the following at or near the beginning of this block.


PHP Code:
curl_setopt($chCURLOPT_PROXY"127.0.0.1");
curl_setopt($chCURLOPT_PROXYPORT"8080");
curl_setopt($chCURLOPT_PROXYTYPECURLPROXY_SOCKS5); 



Replace the IP address and port with the corresponding ones of your proxy. If it's an HTTP proxy, replace CURLPROXY_SOCKS5 with CURLPROXY_HTTP.

:yus:

Users browsing this thread: