#
a53dea92 |
| 24-May-2003 |
Andrew Lindeman |
this is a better way to do that
|
#
ea491396 |
| 24-May-2003 |
Jacques Marneweck |
- Quickfix to get rasmus IP to lookup.
|
#
81aba117 |
| 17-May-2003 |
Gabor Hojtsy |
Move real ip identification code to a new function, i2c_realip(), as we need to call it from elsewhere too...
|
#
0259bf27 |
| 17-May-2003 |
Gabor Hojtsy |
A country should only be valid, if we have a name to display for it (we don't have a name for XEU for example, which is not a country)
|
#
661cd648 |
| 17-May-2003 |
Gabor Hojtsy |
Add new mirror_setcookie() function to set a cookie for all mirror sites, and use it for country and last language cookies set by our code Also add code to remember the last sear
Add new mirror_setcookie() function to set a cookie for all mirror sites, and use it for country and last language cookies set by our code Also add code to remember the last search term and selected search option in a cookie (JS code will come to handle this on the client side)
show more ...
|
#
d9e8dfe2 |
| 08-May-2003 |
Gabor Hojtsy |
Fix. [/me is dreaming about a staging server :((]
|
#
e4e12bea |
| 08-May-2003 |
Gabor Hojtsy |
Implement IP storage in cookie to help those behind firewalls to get their real country now [And also to let guys get Netherlands on their laptops these days at Amsterdam ;)] Als
Implement IP storage in cookie to help those behind firewalls to get their real country now [And also to let guys get Netherlands on their laptops these days at Amsterdam ;)] Also some tabs -> spaces
show more ...
|
#
c935aa40 |
| 06-May-2003 |
Jacques Marneweck |
* Patched to really work with $_SERVER['HTTP_X_FORWARDED_FOR'] where the user uses a proxy and that proxy goes via n+1 proxies on the way to one of the php.net mirrors. * We also i
* Patched to really work with $_SERVER['HTTP_X_FORWARDED_FOR'] where the user uses a proxy and that proxy goes via n+1 proxies on the way to one of the php.net mirrors. * We also ignore RFC 1918 IP addresses that are listed in $_SERVER['HTTP_X_FORWARDED_FOR'] seeing that indicates the user is on a private network. Incase there are only RFC 1918 IP's in $_SERVER['HTTP_X_FORWARDED_FOR'] we use $_SERVER['REMOTE_ADDR'] Anyways I might have broken something I'll keep an eye on this before I head to bed. It's currently 02h10 GMT +0200 here. --jm
show more ...
|
#
22e36440 |
| 04-May-2003 |
Gabor Hojtsy |
Use built in functions instead of user defined stuff. Jome suggested this (from ip2nation). My test showed that it does the same as our i2c_ip2number
|
#
14f886ad |
| 03-May-2003 |
Gabor Hojtsy |
Let the country validity check at one place, as we will need it more then once
|
#
06f99808 |
| 03-May-2003 |
Gabor Hojtsy |
Let's have a var, named $COUNTRY which identifies the user's country (much like what $LANG 'does' for the language)
|
#
09b6cda9 |
| 02-May-2003 |
Sara Golemon |
Some mirrors (us2 for example) run PHP versions prior to 4.2 which do not allow ommitting the maxlen parameter from fgets()
|
#
94552cee |
| 02-May-2003 |
Gabor Hojtsy |
Drop out a few spaces, and simulate cookie setting for the first time the cookie is set
|
#
a3e05de0 |
| 02-May-2003 |
Gabor Hojtsy |
Add first ip-to-country code for testing. Also add testing code to the sitemap (which is not a publicly linked page, so can be used for testing I assume)
|