%@language="VBScript"%> <% Response.Expires = 0 %> <% session("tittle") = "Stránka nebyla nalezena" %> <% Server.Execute("inc_shopy/" & session("server") & "/head.asp") %> <% 'permanentní přesměrování kategorií a zboží - z redirectu if session("presmerovani") = "1" then if session("id_kat") <> "" then 'kategorie id_kat = session("id_kat") 'zrušené kategorie if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"brzdy/prislusenstvi/404/") > 0 then id_kat = 166 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"brzdy/servis/411/") > 0 then id_kat = 166 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"darkova-baleni/517/") > 0 then id_kat = 232 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/batohy-s-pitnym-vakem/299/") > 0 then id_kat = 224 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/batohy-s-pitnym-vakem/batohy-s-pitnym-vakem/414/") > 0 then id_kat = 224 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/batohy-s-pitnym-vakem/prislusenstvi/415/") > 0 then id_kat = 224 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/blatniky/prislusenstvi/532/") > 0 then id_kat = 227 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/brasny/prislusenstvi/531/") > 0 then id_kat = 225 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/cyklocomputery/cyklocomputery/229/") > 0 then id_kat = 228 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/cyklocomputery/prislusenstvi/230/") > 0 then id_kat = 228 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/cyklonavigace/cyklonavigace/538/") > 0 then id_kat = 537 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/cyklonavigace/prislusenstvi/539/") > 0 then id_kat = 537 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/detske-voziky-za-kolo/518/") > 0 then id_kat = 504 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/helmy/prislusenstvi/528/") > 0 then id_kat = 233 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/hustilky/prislusenstvi/527/") > 0 then id_kat = 250 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/lahve/prislusenstvi/500/") > 0 then id_kat = 252 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/lepidla-na-zavity/530/") > 0 then id_kat = 254 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/ochranne-prostredky---kosmetika/294/") > 0 then id_kat = 255 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/osvetleni/prislusenstvi/297/") > 0 then id_kat = 295 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/osvetleni/svetla/296/") > 0 then id_kat = 295 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/pulsmetry-a-sporttestery/321/") > 0 then id_kat = 228 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/pulsmetry-a-sporttestery/prislusenstvi/323/") > 0 then id_kat = 228 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/pulsmetry-a-sporttestery/pulsmetry-a-sporttestery/322/") > 0 then id_kat = 228 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/sedacky-pro-deti/493/") > 0 then id_kat = 504 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/sedacky-pro-deti/prislusenstvi/495/") > 0 then id_kat = 504 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/sedacky-pro-deti/sedacky/494/") > 0 then id_kat = 504 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/spacaky/535/") > 0 then id_kat = 533 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/trenazery-a-valce/328/") > 0 then id_kat = 502 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"doplnky-a-ostatni/trenazery-a-valce/prislusenstvi/534/") > 0 then id_kat = 502 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"kola/192/") > 0 then id_kat = 150 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"kola/naby/horska/196/") > 0 then id_kat = 195 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"kola/naby/silnicni/197/") > 0 then id_kat = 195 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"kola/prislusenstvi/487/") > 0 then id_kat = 150 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"kola/rafky/horska/218/") > 0 then id_kat = 217 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"kola/rafky/silnicni/219/") > 0 then id_kat = 217 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"kola/rafky/trekking/220/") > 0 then id_kat = 217 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"obleceni-a-obuv/obleceni/483/") > 0 then id_kat = 482 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"obleceni-a-obuv/obleceni/cepice-satky-a-kukly/290/") > 0 then id_kat = 486 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"obleceni-a-obuv/obleceni/rolaky/511/") > 0 then id_kat = 419 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"obleceni-a-obuv/obleceni/vesty/489/") > 0 then id_kat = 289 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/174/") > 0 then id_kat = 150 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/hlavove-slozeni/hlavova-slozeni/177/") > 0 then id_kat = 176 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/hlavove-slozeni/prislusenstvi/178/") > 0 then id_kat = 176 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/predstavce/predstavce/180/") > 0 then id_kat = 179 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/predstavce/prislusenstvi/181/") > 0 then id_kat = 179 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/riditka/prislusenstvi/496/") > 0 then id_kat = 183 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/riditka/rovna/184/") > 0 then id_kat = 183 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/riditka/silnicni/186/") > 0 then id_kat = 183 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/riditka/vlastovky/185/") > 0 then id_kat = 183 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/sedlovky/prislusenstvi/191/") > 0 then id_kat = 188 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/sedlovky/sedlovky/189/") > 0 then id_kat = 188 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ovladani/sedlovky/teleskopicke-sedlovky/541/") > 0 then id_kat = 188 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"pohon/pedaly/horska-a-ostatni-kola/155/") > 0 then id_kat = 154 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"pohon/pedaly/prislusenstvi/157/") > 0 then id_kat = 154 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"pohon/pedaly/silnicni-kola/156/") > 0 then id_kat = 154 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"pohon/prislusenstvi/422/") > 0 then id_kat = 150 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ramy-vidlice-tlumice/prislusenstvi-ramu/429/") > 0 then id_kat = 109 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ramy-vidlice-tlumice/ramy-odpruzene/110/") > 0 then id_kat = 109 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ramy-vidlice-tlumice/ramy-pevne/111/") > 0 then id_kat = 109 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ramy-vidlice-tlumice/ramy-pevne/freestyle-dual-4x/115/") > 0 then id_kat = 109 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ramy-vidlice-tlumice/ramy-pevne/horska/112/") > 0 then id_kat = 109 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ramy-vidlice-tlumice/vidlice-odpruzene/horska-kola/117/") > 0 then id_kat = 116 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ramy-vidlice-tlumice/vidlice-odpruzene/prislusenstvi/147/") > 0 then id_kat = 116 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ramy-vidlice-tlumice/vidlice-odpruzene/trekking-cross/143/") > 0 then id_kat = 116 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"ramy-vidlice-tlumice/vidlice-pevne/148/") > 0 then id_kat = 116 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"razeni/prislusenstvi/421/") > 0 then id_kat = 161 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"razeni/radici-packy-a-otocna-razeni/164/") > 0 then id_kat = 161 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/campagnolo/432/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/ostatni/413/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/shimano/106/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/shimano/horska/107/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/shimano/horska/acera/433/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/shimano/horska/deore/399/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/shimano/horska/deore-lx/400/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/shimano/horska/deore-xt/401/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/shimano/horska/slx/434/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/shimano/horska/xtr/402/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/shimano/silnicni/108/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"sady/sram/552/") > 0 then id_kat = 105 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"voziky-za-kolo/514/") > 0 then id_kat = 504 end if if instr(request.servervariables("HTTP_X_ORIGINAL_URL"),"voziky-za-kolo/prislusenstvi/515/") > 0 then id_kat = 504 end if Set rs = CreateObject("ADODB.RecordSet") strSQL = "SELECT odkaz_strom FROM zbozi_kat WHERE id_zbozi_kat = " & clng(id_kat) & " AND zobrazit_kat = 1" rs.Open strSQL, conn, 1, 1 if not rs.eof then response.Status="301 Moved Permanently" response.AddHeader "Location", session("cesta_web") & rs("odkaz_strom") end if rs.close elseif session("id_zbozi") <> "" then 'zboží Set rs = CreateObject("ADODB.RecordSet") strSQL = "SELECT zbozi.odkaz AS odkaz, odkaz_strom FROM zbozi, zbozi_kat, s_zbozi WHERE zbozi.id_zbozi = " & clng(session("id_zbozi")) & " AND zbozi.id_zbozi_kat = zbozi_kat.id_zbozi_kat AND zbozi.id_s_zbozi = s_zbozi.id_s_zbozi AND zbozi.smazano = 0 AND (zbozi.zobrazit = 1 OR zbozi.skupina_zobrazit = 1 OR zobrazit2 = 1)" rs.Open strSQL, conn, 1, 1 if not rs.eof then if session("id_zbozi") = 58655 then response.end end if response.Status="301 Moved Permanently" response.AddHeader "Location", session("cesta_web") & rs("odkaz_strom") & rs("odkaz") & ".htm" end if rs.close end if end if session("presmerovani") = "" %>