Blame view

redirect.php 857 Bytes
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <?php
  if(isset($_GET['filterID'])){
   header("location:http://extremstyle.ua/");
  }elseif(isset($_GET['yearID'])){
   header("location:http://extremstyle.ua/");
  }elseif(isset($_SERVER['REDIRECT_URL']) && $_SERVER['REDIRECT_URL'] == "/item/index.php"){
   header("location:http://extremstyle.ua/");
  }elseif(isset($_SERVER['REDIRECT_URL']) && $_SERVER['REDIRECT_URL'] == "/catalog/index.php"){
   header("location:http://extremstyle.ua/");
  }
  
  
  
  
  if(isset($_GET['filter']) && strchr($_SERVER['REQUEST_URI'],'%3B')){
   header("location:http://extremstyle.ua" . str_replace('%3B', ";", $_SERVER['REQUEST_URI']) );
  }
  
  if(isset($_GET['rubID'],$_GET['search_str'],$_GET['brend']) &&
       !$_GET['rubID'] && !$_GET['search_str'] && $_GET['brend']){
        header(sprintf("location:http://extremstyle.ua/catalogs/brends/%s/", $_GET['brend']));
       }
  
   //print_r($_SERVER);
  ?>