include ("forixinc.php");
include ("ng_util.php");
include ("gp_util.php");
include ("nc_util.php");
include ("ci_util.php");
include ("pi_util.php");
include ("co_util.php");
include ("mo_util.php");
include ("pa_util.php");
include ("pn_util.php");
include ("util.php");
$iw=intval(get_arg("w"));
if ($iw>0)
{
$args="z=2&k=0"."&l=".$lin;
}
$ano=strtolower(trim(get_arg("y")));
$gprix=strtolower(trim(get_arg("gp")));
$circ=strtolower(trim(get_arg("cir")));
$driver=strtolower(trim(get_arg("dri")));
$make=strtolower(trim(get_arg("mak")));
$engine=strtolower(trim(get_arg("eng")));
$pneu=strtolower(trim(get_arg("tyr")));
$modo=strtolower(trim(get_arg("cmd")));
$modo=str_replace("+"," ",$modo);
if (strlen($ano)==0 && strlen($gprix)==0 && strlen($circ)==0 && strlen($driver)==0 && strlen($make)==0 && strlen($engine)==0 && strlen($pneu)==0 && strlen($modo)==0)
{
log_page($REF_FORIX,0,0);
fxhead("Forix: How to link");
tab_ini();
tab_bar(2);
?>
How to link to
|
tab_bar(6);
?>
We recommend that all direct links to Forix are made through this page:
"http://www.forix.com/asp/forix.asp".
Parameters will specify the entities and commands as shown below.
A search interface is also available at http://www.forix.com/asp/search.asp
|
tab_bor();?>
Language |
lang |
= english (default)
= afrikaans
= armenian
= basque
= belarusian
= bulgarian
= catalan
= chinese (Big5)
= gbchinese (GB)
= croatian
= czech
= danish
= dutch
= esperanto
|
= estonian
= faroese
= finnish
= french
= german
= greek
= hungarian
= icelandic
= italian
= japanese
= korean
= latvian
= lithuanian
= maltese
|
= malay
= norwegian
= polish
= portuguese
= romanian
= russian
= serbian
= slovak
= slovene
= spanish
= swedish
= turkish
= ukrainian
|
|
tab_bor();?>
Main pages |
|
Examples |
Croatian main page
$Query="lang=cro&cmd=main";
?> http://www.forix.com/asp/forix.asp? echo $Query; ?>
English main page
http://www.forix.com/asp/forix.asp?cmd=main
|
tab_bor();?>
Championships |
y |
= year (50 to echo $anoFin-1900; ?> or 1950 to echo $anoFin; ?>) |
cmd |
= file (default)
= grands+prix
= wins
= pole+postions
= fastest+laps
= drivers+championship
= constructors+championship
= active+drivers
= photo+gallery
|
|
Examples |
List of winners in 1967
http://www.forix.com/asp/forix.asp?y=67&cmd=win
Constructors championship for 1980, in swedish
http://www.forix.com/asp/forix.asp?lang=swedish&y=1980&cmd=con
|
tab_bor();?>
Grands Prix |
gp |
cmd |
= file (default)
= grands+prix+events
= wins
= pole+positions
= fastest+laps
|
|
Examples |
Winners of the European Grand Prix
http://www.forix.com/asp/forix.asp?gp=europe&cmd=win
|
tab_bor();?>
Grand Prix event |
y |
= year (50 to echo $anoFin-1900; ?> or 1950 to echo $anoFin; ?>) |
gp |
cmd |
= file (default)
= entry+list
= classification
= starting+grid
= fastest+laps
= photo+gallery
|
|
Examples |
Starting grid for 1984-Portugal, in portuguese
http://www.forix.com/asp/forix.asp?lang=por&y=84&gp=portugal&cmd=sta
File for 1997-Japan
http://www.forix.com/asp/forix.asp?y=97&gp=japan
|
tab_bor();?>
Circuits |
cir |
cmd |
= file (default)
= grands+prix+events
= wins
= pole+postions
= fastest+laps
|
|
Examples |
Pole positions in Jerez, in spanish
http://www.forix.com/asp/forix.asp?cir=jerez&cmd=pol&lang=spanish
Grands Prix held at Dijon-Prenois, in french
http://www.forix.com/asp/forix.asp?lang=fre&cir=dijon&cmd=gra
|
tab_bor();?>
Circuit version |
y |
= year (50 to echo $anoFin-1900; ?> or 1950 to echo $anoFin; ?>) |
cir |
cmd |
= file (default)
|
|
Examples |
Estoril track in 1984
http://www.forix.com/asp/forix.asp?cir=estoril&y=1984
Estoril track in 1995
http://www.forix.com/asp/forix.asp?y=95&cir=estoril&cmd=file
|
tab_bor();?>
Makes |
mak |
= free format make name (use '+' as word separator) |
cmd |
= file (default)
= wins
= pole+postions
= fastest+laps
= photo+gallery
|
|
Examples |
Lotus File
http://www.forix.com/asp/forix.asp?mak=lotus
Alfa Romeo wins, in Italian
http://www.forix.com/asp/forix.asp?lang=ital&mak=alfa+romeo&cmd=win
|
tab_bor();?>
Engines |
eng |
= free format engine name (use '+' as word separator) |
cmd |
= file (default)
= wins
= pole+postions
= fastest+laps
|
|
Examples |
Honda pole positions, in Japanese
http://www.forix.com/asp/forix.asp?lang=japan&eng=honda&cmd=pole
Mercedes file in German
http://www.forix.com/asp/forix.asp?lang=germ&eng=mercedes
|
tab_bor();?>
Drivers |
dri |
= free format driver name (use '+' as word separator) |
cmd |
= file (default)
= participations
= wins
= pole+postions
= fastest+laps
= podiums
= front row
= photo+gallery
|
|
Examples |
File of Jackie Stewart
http://www.forix.com/asp/forix.asp?dri=ja+stew
Participations of Bernie Ecclestone
http://www.forix.com/asp/forix.asp?dri=bernie&cmd=par
Podiums of Emerson Fittipaldi, in portuguese
http://www.forix.com/asp/forix.asp?lang=por&dri=em+fitti&cmd=pod
|
tab_bor();?>
Driver participation |
y |
= year (50 to echo $anoFin-1900; ?> or 1950 to echo $anoFin; ?>) |
gp |
dri |
= free format driver name (use '+' as word separator) |
|
Examples |
Ronnie Peterson in France-73, swedish
http://www.forix.com/asp/forix.asp?lang=swe&y=73&gp=france&dri=ro+peter
Michael Schumacher in Japan-97
http://www.forix.com/asp/forix.asp?y=97&gp=japan&dri=mi+schu
|
tab_bor();?>
Tyres |
tyr |
cmd |
= file (default)
= wins
= pole+postions
= fastest+laps
|
|
Examples |
Goodyear's page
http://www.forix.com/asp/forix.asp?tyr=goodyear
Bridgestone's pole positions in japanese
http://www.forix.com/asp/forix.asp?lang=japan&tyr=bridgestone&cmd=pol
|
}
else
{
log_page($REF_FORIX,0,1);
$rcp=-1;
$rng=-1;
$rgp=-1;
$rnc=-1;
$rci=-1;
$rpi=-1;
$rcm=-1;
$rpn=-1;
if (strlen($ano)>0)
{
$rcp=intval($ano);
if ($rcp<$anoIni)
{
$rcp=$rcp+1900;
}
if ($rcp<$anoIni || $rcp>$anoFin)
{
$rcp=-1;
}
}
if ($rcp>0 && strlen($gprix)==0 && strlen($circ)==0)
{
$cmd=$cmdCPfic;
if (strlen($modo)>0)
{
if (!(strpos("grands prix",$modo) === false))
{
$cmd=$cmdCPgpr;
}
else
if (!(strpos("wins",$modo) === false))
{
$cmd=$cmdCPvit;
}
else
if (!(strpos("pole positions",$modo) === false))
{
$cmd=$cmdCPpol;
}
else
if (!(strpos("fastest laps",$modo) === false))
{
$cmd=$cmdCPvmr;
}
else
if (!(strpos("active drivers",$modo) === false))
{
$cmd=$cmdCPpia;
}
else
if (!(strpos("drivers championship",$modo) === false))
{
$cmd=$cmdCPclp;
}
else
if (!(strpos("constructors championship",$modo) === false))
{
$cmd=$cmdCPclc;
}
else
if (!(strpos("photo gallery",$modo) === false))
{
header("Location: "."photos.asp?".$args."&x=".$REF_CP."&r=".$rcp."&i=0");
}
}
header("Location: "."cp.asp?".$args."&r=".$rcp."&c=".$cmd);
}
if (strlen($ano)==0 && strlen($gprix)>0)
{
$rng= NGref($gprix);
}
if ($rng>0)
{
$cmd=$cmdNGfic;
if (strlen($modo)>0)
{
if (!(strpos("grands prix",$modo) === false))
{
$cmd=$cmdNGgpr;
}
else
if (!(strpos("wins",$modo) === false))
{
$cmd=$cmdNGvit;
}
else
if (!(strpos("pole positions",$modo) === false))
{
$cmd=$cmdNGpol;
}
else
if (!(strpos("fastest laps",$modo) === false))
{
$cmd=$cmdNGvmr;
}
}
header("Location: "."ng.asp?".$args."&r=".$rng."&c=".$cmd);
}
if ($rcp>0 && strlen($gprix)>0)
{
$rgp= GPref($rcp,$gprix);
}
if ($rgp>0 && strlen($driver)==0)
{
$cmd=$cmdGPfic;
if (strlen($modo)>0)
{
if (!(strpos("entry list",$modo) === false))
{
$cmd=$cmdGPpar;
}
else
if (!(strpos("classification",$modo) === false))
{
$cmd=$cmdGPcla;
}
else
if (!(strpos("starting grid",$modo) === false))
{
$cmd=$cmdGPgre;
}
else
if (!(strpos("fastest laps",$modo) === false))
{
$cmd=$cmdGPvmr;
}
else
if (!(strpos("photo gallery",$modo) === false))
{
header("Location: "."photos.asp?".$args."&x=".$REF_GP."&r=".$rgp."&i=0");
}
}
if ($iw==0)
{
header("Location: "."gp.asp?".$args."&r=".$rgp."&c=".$cmd);
}
else
{
header("Location: "."gp_w.asp?".$args."&r=".$rgp."&c=".$cmd);
}
}
if (strlen($ano)==0 && strlen($circ)>0)
{
$rnc= NCref($circ);
}
if ($rnc>0)
{
$cmd=$cmdNCfic;
if (strlen($modo)>0)
{
if (!(strpos("grands prix",$modo) === false))
{
$cmd=$cmdNCgpr;
}
else
if (!(strpos("wins",$modo) === false))
{
$cmd=$cmdNCvit;
}
else
if (!(strpos("pole positions",$modo) === false))
{
$cmd=$cmdNCpol;
}
else
if (!(strpos("fastest laps",$modo) === false))
{
$cmd=$cmdNCvmr;
}
}
header("Location: "."nc.asp?".$args."&r=".$rnc."&c=".$cmd);
}
if ($rcp>0 && strlen($circ)>0)
{
$rci= CIref($rcp,$circ);
}
if ($rci>0)
{
$cmd=$cmdCIfic;
header("Location: "."ci.asp?".$args."&r=".$rci."&c=".$cmd);
}
if (strlen($driver)>0)
{
$rpi= PIref($driver);
}
if ($rgp>0 and $rpi>0)
{
$rpa= PAref($rgp,$rpi);
if ($rpa>0)
{
if ($iw==0)
{
header("Location: pa.asp?".$args."&r=".$rpa."&c=".$cmdPAfic);
echo($rpa);
}
else
{
header("Location: pa_w.asp?".$args."&r=".$rpa."&c=".$cmdPAfic);
}
}
}
if ($rpi>0)
{
if (strlen($modo)==0)
{
if ($iw==0)
{
header("Location: "."pi.asp?".$args."&r=".$rpi."&c=".$cmdPIfic);
}
else
{
header("Location: "."pi_w.asp?".$args."&r=".$rpi."&c=".$cmdPIfic);
}
}
else
{
if (!(strpos("participations",$modo) === false))
{
$cmd=$cmdPiParIni;
}
else
if (!(strpos("wins",$modo) === false))
{
$cmd=$cmdPiParCla;
}
else
if (!(strpos("pole positions",$modo) === false))
{
$cmd=$cmdPiParGre;
}
else
if (!(strpos("fastest laps",$modo) === false))
{
$cmd=$cmdPiParVmr;
}
else
if (!(strpos("podiums",$modo) === false))
{
$cmd=$cmdPiParPod;
}
else
if (!(strpos("front row",$modo) === false))
{
$cmd=$cmdPiParPli;
}
else
if (!(strpos("photo gallery",$modo) === false))
{
header("Location: "."photos.asp?".$args."&x=".$REF_PI."&r=".$rpi."&i=0");
}
else
{
$cmd=-1;
}
if ($cmd>=0)
{
header("Location: "."pi_par.asp?".$args."&r=".$rpi."&c=".$cmd."&v=1");
}
else
{
header("Location: "."pi.asp?".$args."&r=".$rpi."&c=".$cmdPIfic);
}
}
}
if (strlen($make)>0)
{
$rcm= COref($make);
$cref=$REF_CO;
}
else
if (strlen($engine)>0)
{
$rcm= MOref($engine);
$cref=$REF_MA;
}
if ($rcm>0)
{
if (strlen($modo)==0)
{
header("Location: "."cm.asp?".$args."&r=".$rcm."&x=".$cref."&c=".$cmdCMfic);
}
else
{
if (!(strpos("wins",$modo) === false))
{
$cmd=$cmdCMParCla;
}
else
if (!(strpos("pole positions",$modo) === false))
{
$cmd=$cmdCMParGre;
}
else
if (!(strpos("fastest laps",$modo) === false))
{
$cmd=$cmdCMParVmr;
}
else
if (!(strpos("photo gallery",$modo) === false))
{
header("Location: "."photos.asp?".$args."&x=".$cref."&r=".$rcm."&i=0");
}
else
{
$cmd=-1;
}
if ($cmd>=0)
{
header("Location: "."cm_par.asp?".$args."&r=".$rcm."&x=".$cref."&c=".$cmd."&v=1");
}
else
{
header("Location: "."cm.asp?".$args."&r=".$rcm."&x=".$cref."&c=".$cmdCMfic);
}
}
}
if (strlen($pneu)>0)
{
$rpn= PNref($pneu);
}
if ($rpn>0)
{
$cmd=$cmdPNfic;
if (strlen($modo)>0)
{
if (!(strpos("wins",$modo) === false))
{
$cmd=$cmdPNvit;
}
else
if (!(strpos("pole positions",$modo) === false))
{
$cmd=$cmdPNpol;
}
else
if (!(strpos("fastest laps",$modo) === false))
{
$cmd=$cmdPNvmr;
}
}
header("Location: "."pn.asp?".$args."&r=".$rpn."&c=".$cmd);
}
if (strlen($modo)>0)
{
if (!(strpos("main",$modo) === false))
{
header("Location: "."f1.asp?".$args);
}
}
fxhead("Forix: Unknown link");
tab_ini();
tab_bar(2);
?>Unkown link |
tab_bar(6);
tab_bor();
?> http:// echo $servidor; ?>/ echo $script; ?>? echo $query; ?> |
}
tab_fim();
fxtail();
?>