(.+?)#is', $html_content1, $nambrand); $name = $nambrand[1]; } else {$name='Pipedream'; $bd="pipedream";} $anima = $bd; $html_content_vid=file_get_contents ('http://silverty.ru/videos/silverty.ru'); $pos = strpos($html_content_vid, $bd); if ($pos === false) { $vidos = ''; } else { $vidos = '

Для некоторых товаров '.$name.' доступны видеопрезентации'; } ?> <? echo $name; ?> - заказ на онлайн-витрине <? echo $_SERVER['SERVER_NAME']; ?> с доставкой

'a','б'=>'b','в'=>'v','г'=>'g','д'=>'d','е'=>'je', 'ё'=>'jou','ж'=>'zg','з'=>'z','и'=>'y','й'=>'ij','к'=>'k','л'=>'l', 'м'=>'m', 'н'=>'n','о'=>'o','п'=>'p','р'=>'r','с'=>'s','т'=>'t', 'у'=>'u','ф'=>'f','х'=>'h','ц'=>'tc','ч'=>'ch', 'ш'=>'shc','щ'=>'zsh', 'ы'=>'jy','э'=>'ae','ю'=>'yu','я'=>'ja', /*--*/ 'А'=>'A','Б'=>'B','В'=>'V','Г'=>'G','Д'=>'D','Е'=>'E', 'Ё'=>'Yo', 'Ж'=>'J','З'=>'Z','И'=>'I','Й'=>'I','К'=>'K', 'Л'=>'L','М'=>'M', 'Н'=>'N','О'=>'O','П'=>'P', 'Р'=>'R','С'=>'S','Т'=>'T','У'=>'Y', 'Ф'=>'F', 'Х'=>'H','Ц'=>'C','Ч'=>'Ch','Ш'=>'Sh','Щ'=>'Sh', 'Ы'=>'I','Э'=>'E','Ю'=>'U','Я'=>'Ya','ь'=>'','Ь'=>'','ъ'=>'','Ъ'=>'',' '=>'','№'=>'num','.'=>'_','"'=>'','/'=>'','('=>'',')'=>'','`'=>'','»'=>'','«'=>'',':'=>'','–'=>'',','=>'','’'=>'','-'=>'_' ); return strtr($str, $alphavit); } $html_content=file_get_contents ('brand/'.$bd.'.txt'); preg_match_all('#(.+?)#is', $html_content, $liver); $vse = count($liver[1], COUNT_RECURSIVE); sort ($liver[1]); //$lastpage = round($vse/44, 0, PHP_ROUND_HALF_UP); $lastpage = intval($vse/44)+1; $d = (44*$page)-44; while($d < $page*44 and $d < $vse) { preg_match ('#(.+?)#is', $liver[1][$d], $nazvanie); preg_match ('#(.+?)#is', $liver[1][$d], $ideshnik); $pos4 = strpos($ideshnik[1],'-onona'); if ($pos4 !== false) {$ideshnik = str_replace ('-onona', '', $ideshnik[1]); $sitez = '-onona'; $picur = 'foto'.$ideshnik.'b.jpg';} $pos3 = strpos($ideshnik[1],'-vps'); if ($pos3 !== false) {$ideshnik = str_replace ('-vps', '', $ideshnik[1]); $sitez = ''; $picur = 'foto'.$ideshnik.'b.jpg';} $pos5 = strpos($ideshnik[1],'-intim'); if ($pos5 !== false) {$ideshnik = str_replace ('-intim', '', $ideshnik[1]); $sitez = '-intim'; $picur = $ideshnik.'-int.list.jpg';} $nazvanie = str_replace ('', '', $nazvanie[1]); $url = translit(substr($nazvanie, 0, 25)); $url = strtolower($url); $d++; $x = ''; if (is_int($d/4)) {$x = '$';} echo ''; } if ($page < $lastpage) {$page++; $cho='Смотреть ещё';} else {$page=1; $cho=''; $d=$vse;} ?>