'; $do='
Страницы: ';
$temp=mb_substr($data,mb_strpos($data,$ot)+mb_strlen($ot));
$data=mb_substr($temp,0,mb_strpos($temp,$do));
$data = str_replace("
", "\n
\n", $data); $data = str_replace('','', $data); $data = str_replace('','', $data); $data = preg_replace('|", $data); echo $data; } if (isset($_GET['id'])) { $url .= intval($_GET['id']); if (isset($_GET['p']) and isset($_GET['id'])) { $url .= '/' . intval($_GET['p']); } curl_setopt_array($xxx, array( CURLOPT_URL => $url, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_RETURNTRANSFER => 1, CURLOPT_REFERER => 'http://www.google.com/', CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; SiteBot/0.1; +http://www.sitebot.org/robot/)', CURLOPT_TIMEOUT => 10 ) ); $data = curl_exec($xxx); $ot1='
", "\n
\n", $data); $data = str_replace('','', $data); $data = str_replace('','', $data); $data = preg_replace('|", $data); echo $data; } if (isset($_GET['id'])) { $url .= intval($_GET['id']); if (isset($_GET['p']) and isset($_GET['id'])) { $url .= '/' . intval($_GET['p']); } curl_setopt_array($xxx, array( CURLOPT_URL => $url, CURLOPT_CONNECTTIMEOUT => 10, CURLOPT_RETURNTRANSFER => 1, CURLOPT_REFERER => 'http://www.google.com/', CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; SiteBot/0.1; +http://www.sitebot.org/robot/)', CURLOPT_TIMEOUT => 10 ) ); $data = curl_exec($xxx); $ot1='
Страницы: ';
$do1='
';
$temp1 = mb_substr($data, mb_strpos($data, $ot1) + mb_strlen($ot1));
$data1 = mb_substr($temp1, 0, mb_strpos($temp1, $do1));
$data1 = preg_replace('|(.*?)|is', '$3', $data1);
$ot='
';
$do='
Страницы: ';
$temp=mb_substr($data,mb_strpos($data,$ot)+mb_strlen($ot));
$data=mb_substr($temp,0,mb_strpos($temp,$do));
$data = str_replace("
", "\n
\n", $data); $data = str_replace('', '', $data); $data = str_replace('
", "\n
\n", $data); $data = str_replace('', '', $data); $data = str_replace('