Gallery 3 installed on Server requiring Proxy Server to access Internet

Blue Tongue
Blue Tongue's picture

Joined: 2005-09-13
Posts: 7
Posted: Tue, 2012-03-27 01:29

Hi all,

In Gallery 3.0.2, I was trying to install new languages by accessing Admin => Settings => Languages.
After I selected an additional language, I clicked Update Languages and then a small dialogue popped up and it said the update failed at @todo TRANSLATIONS_FETCH_REQUEST_FAILED

I noticed the problem must be related to the fact that my server is behind a proxy server.
I checked http://sourceforge.net/apps/trac/gallery/ticket/506 and saw below about how to hack the PHP code.

Quote:
I was able to have G3 working behind a proxy with a small hack of the MY_remote.php helper. (based on 2010/03/25 GIT)
In _encode_post_data, add the line :
$extra_headersProxy-Authorization? = 'Basic ' . base64_encode("$ProxyUsername:$ProxyPassword?");

In _parse_url_for_fsockopen, add the line :
$url_componentsfsockhost? = $ProxyAddress?;

And change $default_port to your proxy port number.

I am not a PHP programmer but I am happy to learn.
In our environment, to access the Internet, I only need to specify the proxy server name and proxy server port which is 3128.
Can you pleae let me know how I can specify them in the code?

Any help would be much appreciated!