query(" SELECT item_id, title FROM _mod_advice WHERE section_id = '".mysql_real_escape_string($_GET['item'])."' AND status = 'Y' ORDER BY list_order ASC "); $res = $sql->getResult(); foreach($res as $key => $row){ $article_id[] = $row[0]; } $sql->query(" SELECT title FROM _mod_advice WHERE item_id = '".$article_id[$pageNR-1]."'"); $row = $sql->get_row(); Header( "Location: ".ROOT."/padomi/".$_GET['item']."/".$_GET['page']."/".$actions->rewrite($row[0])); } if($_GET['v'] == 'auto-testi-pec-klases'){ $sql->query(" SELECT link FROM _mod_car_types WHERE item_id = '".$_GET['type']."' "); $row = $sql->get_row(); $type = $row[0]; Header( "Location: ".ROOT."/auto-testi/".$type."/"); } if($_GET['v'] == 'auto-video-tests'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/".$model."/video/".$_GET['item']."/"); } if($_GET['v'] == 'auto-lasitaju-vertejums'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/".$model."/lasitaju-atsauksmes/".$_GET['item']."/".$_GET['page']."/"); } if($_GET['v'] == 'auto-tests-kopsavilkums'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/".$model."/kopsavilkums/".$_GET['item']."/"); } if($_GET['v'] == 'auto-tests-izversts'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/".$model."/izversts/".$_GET['item']."/"); } if($_GET['v'] == 'auto-tehniskie-dati'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); $edition = $actions->rewrite($actions->get_edition_name($_GET['ed'])); Header( "Location: ".ROOT."/auto-testi/".$model."/".$edition."/tehniskie-dati/".$_GET['ed']."/"); } if($_GET['v'] == 'auto-aprikojums'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); $edition = $actions->rewrite($actions->get_edition_name($_GET['ed'])); Header( "Location: ".ROOT."/auto-testi/".$model."/".$edition."/aprikojums/".$_GET['ed']."/"); } if($_GET['v'] == 'auto-sludinajumi'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/".$model."/sludinajumi/".$_GET['item']."/"); } if($_GET['v'] == 'fotogalerija'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/".$model."/fotogalerija/".$_GET['item']."/"); } if($_GET['v'] == 'lietotie-auto-kopsavilkums'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/lietoti/".$model."/kopsavilkums/".$_GET['item']."/"); } if($_GET['v'] == 'kads-tas-ir'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/lietoti/".$model."/kads-tas-ir/".$_GET['item']."/"); } if($_GET['v'] == 'kuru-versiju-pirkt'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/lietoti/".$model."/kuru-versiju-pirkt/".$_GET['item']."/"); } if($_GET['v'] == 'lietosanas-izmaksas'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/lietoti/".$model."/lietosanas-izmaksas/".$_GET['item']."/"); } if($_GET['v'] == 'kam-japievers-uzmaniba'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/lietoti/".$model."/kam-japievers-uzmaniba/".$_GET['item']."/"); } if($_GET['v'] == 'fotogalerija-lietotie'){ $model = $actions->rewrite($actions->get_mf_name($_GET['item']))."/".$actions->rewrite($actions->get_only_model_name($_GET['item'])); Header( "Location: ".ROOT."/auto-testi/lietoti/".$model."/fotogalerija/".$_GET['item']."/"); } ?>