Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-10-2003, 09:57 AM   #1
pantymaniac
Confirmed User
 
Join Date: Feb 2003
Location: In Your GF's Panty.
Posts: 1,192
Why this php language redirect script wont work !! GRRRRRRRRRRRR

Well i create a php called filter.php
i put this in it
After i add to my site like

(<)?php include("filter.php"); ?(>)

And when is my broser language is one below it works
very slowly but it redirect

when i make my browser language to english or german

page dont want to load ??

WTF WHY ???????


-----------------------------------

<?
$DEFAULT_ROUTE='http://www.domain.com/';
$redirect_map = array (
'zh' => 'http://www.domain.com/free.php',
'zh-cn' => 'http://www.domain.com/free.php',
'zh-tw' => 'http://www.domain.com/free.php',
'zh-sg' => 'http://www.domain.com/free.php',
'zh-mo' => 'http://www.domain.com/free.php',
'zh-hk' => 'http://www.domain.com/free.php',
'tr' => 'http://www.domain.com/free.php',
'ko' => 'http://www.domain.com/free.php',
'ru' => 'http://www.domain.com/free.php',
'ro' => 'http://www.domain.com/free.php',
'cs' => 'http://www.domain.com/free.php',
'fa' => 'http://www.domain.com/free.php',
'hu' => 'http://www.domain.com/free.php',
'pl' => 'http://www.domain.com/free.php',
'bg' => 'http://www.domain.com/free.php',
'ar' => 'http://www.domain.com/free.php',
'yu' => 'http://www.domain.com/free.php',
'mx' => 'http://www.domain.com/free.php',
'ee' => 'http://www.domain.com/free.php',
'ae' => 'http://www.domain.com/free.php',
'sa' => 'http://www.domain.com/free.php',
);
$route = ($redirect_map[$_SERVER['HTTP_ACCEPT_LANGUAGE']]) ? $redirect_map[$_SERVER['HTTP_ACCEPT_LANGUAGE']] : $DEFAULT_ROUTE;
//print $route;
header("Location: $route");
?>


-----------------:
mad:
__________________
This place is for RENT

Last edited by pantymaniac; 11-10-2003 at 10:00 AM..
pantymaniac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2003, 10:00 AM   #2
JamesK
hi
 
Industry Role:
Join Date: Jun 2002
Posts: 16,731
thanks for the script
__________________
M3Server - NATS Hosting
JamesK is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2003, 10:02 AM   #3
pantymaniac
Confirmed User
 
Join Date: Feb 2003
Location: In Your GF's Panty.
Posts: 1,192
Quote:
Originally posted by Wildcard
thanks for the script

well , it doesnt work
__________________
This place is for RENT
pantymaniac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2003, 10:22 AM   #4
Calvinguy
Confirmed User
 
Join Date: Oct 2002
Location: European Union
Posts: 1,752
Probably the browser return the languagecode together with a iso-code
Calvinguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2003, 10:24 AM   #5
Calvinguy
Confirmed User
 
Join Date: Oct 2002
Location: European Union
Posts: 1,752
Take a look at stristr in the phpmanual
Calvinguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2003, 10:39 AM   #6
4Pics
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Posts: 7,952
What does print $route; show?

I'll try it and see what I get
4Pics is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2003, 10:58 AM   #7
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
BossHawg used to have a nice one up somewhere on pornresource but I can't find the link now
__________________
Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2003, 11:09 AM   #8
TheJimmy
ICQ- five seven 0 2 5 5 0
 
Join Date: Jan 2001
Posts: 10,747
try this...

http://sourceforge.net/projects/l-redirector/
__________________
Investor with 5m - 15m USD to invest. Do you have a site or network of sites earning 50k - 200k a month income? Email your contact and preliminary data to: domain.cashventures (at) gmail.com....Please...no tire kickers...serious offers and inquiries only.
TheJimmy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-10-2003, 11:15 AM   #9
pantymaniac
Confirmed User
 
Join Date: Feb 2003
Location: In Your GF's Panty.
Posts: 1,192
thanks for da help but

i want to know why the one i gave dont working

must work like a charm
__________________
This place is for RENT
pantymaniac is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.