- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 
                        <?php if(isset($_GET["fullVersion"])) $_SESSION["fullVersion"]="on"; ?><?php if($_SESSION["fullVersion"]!='on' && (substr_count($_SERVER["HTTP_USER_AGENT"],'Android') || substr_count($_SERVER["HTTP_USER_AGENT"],'iPhone'))){
     header("Location: /m/redirects/?withjs");
     exit;
  }
  else if($_SESSION["fullVersion"]!='on' && substr_count($_SERVER["HTTP_USER_AGENT"],'Opera Mini')){
     header("Location: /m/redirects/?operamini");
     exit;
  }
  ?><?php if($_GET["ClockId"] && $_GET["str"] && $_GET["frompartnerka"]==1){ header("Location: http://vip-timeclub.ru/catalog/articul/?ClockId=".(int)$_GET["ClockId"]."&str=2");} ?>
<?php if(function_exists('vtPrice')==false){
    function vtPrice($price=0,$sale=0,$priceGold=0){
      if($priceGold){
        $priceOld = $price;
        $price = $priceGold;
      }
      else if($sale){
        $priceOld = $price;
        $price = ceil(intval($priceOld)-((intval($priceOld)/100)*(intval($sale))));
      }
      else{
        $priceOld = 0;
      }
      return array('price'=>$price,'priceOld'=>$priceOld);
    }
  }if(function_exists('vtPriceGood')==false){
   function vtPriceGood($price){
      if(intval(substr($price,-1)) > 0 && intval(substr($price,-1)) < 5) 
            $price = intval($price) + (5-intval(substr($price,-1))); 
      else if(intval(substr($price,-1)) > 5 && intval(substr($price,-1)) <= 9) 
            $price = intval($price) + (10-intval(substr($price,-1)));
      return $price;
    }
  } ?>
                                 
        
Комментарии (4) RSS
Добавить комментарий