GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Why did php language redirect script wont work !! GRRRR (https://gfy.com/showthread.php?t=195640)

pantymaniac 11-10-2003 09:57 AM

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: :mad: :mad: :mad: :mad: :mad:

JamesK 11-10-2003 10:00 AM

thanks for the script

pantymaniac 11-10-2003 10:02 AM

Quote:

Originally posted by Wildcard
thanks for the script

well , it doesnt work :Graucho

Calvinguy 11-10-2003 10:22 AM

Probably the browser return the languagecode together with a iso-code

Calvinguy 11-10-2003 10:24 AM

Take a look at stristr in the phpmanual

4Pics 11-10-2003 10:39 AM

What does print $route; show?

I'll try it and see what I get

TheJimmy 11-10-2003 10:58 AM

BossHawg used to have a nice one up somewhere on pornresource but I can't find the link now :(

TheJimmy 11-10-2003 11:09 AM

try this...

http://sourceforge.net/projects/l-redirector/

pantymaniac 11-10-2003 11:15 AM

thanks for da help but

i want to know why the one i gave dont working

must work like a charm :(


All times are GMT -7. The time now is 05:01 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123