в грабах я 0, но нне нашел ничего лучше чем сделать файл p.php ,и туда пихнуть этот код (+/-)
<?php
define('_IN_JOHNCMS', 1);
$textl = 'Загрузки для Андроид';
require_once ("../incfiles/core.php");
require_once ("../incfiles/head.php");
header("Content-type:text/html; charset=utf-8");
#################
function curl_get ( $url ){
$curl = curl_init ();curl_setopt ( $curl , CURLOPT_URL , $url );
curl_setopt ( $curl , CURLOPT_USERAGENT , 'Opera/9.80(Windows NT 5.1; U; ru) Presto/2.2.15 Version/10.10' );
curl_setopt ( $curl , CURLOPT_RETURNTRANSFER , 1 );
curl_setopt ( $curl , CURLOPT_TIMEOUT , 3 );
$cnt = curl_exec ( $curl );
curl_close ( $curl );
return $cnt ;
}
$file = curl_get ( 'http://gegas.net/android/downloads/search/?' . $_SERVER [ 'QUERY_STRING' ]);
$file = str_replace ( '/android/downloads/search/' , 'adnroid' , $file );
$file = preg_replace('|<!DOCTYPE(.*?)<section id="content">|si', '', $file);
$file = str_replace('<section>', '', $file);
$file = str_replace('</section>', '', $file);
$file = preg_replace('|<li><a href="/">На главную</a>(.*)</html>|si', '', $file);
$file = str_replace('<a class="button"', '<a class="bmenu"', $file);
$file = str_replace('<li>', '<div class="menu">', $file);
$file = str_replace('</li>', '</div>', $file);
$file = str_replace('<h2>', '<div class="phdr">', $file);
$file = str_replace('</h2>', '</div>', $file);
$file = str_replace('<ul>', '', $file);
$file = str_replace('</ul>', '', $file);
$file = str_replace('<aside>', '', $file);
$file = str_replace('</aside>', '', $file);
$file = str_replace('<form action="http://gegas.net/android/downloads/search', '<form action="/android/p.php?id=downloads/search', $file);
$file = str_replace('<a href="http://gegas.net/android/downloads/directory/', '<a href="/android/?id=downloads/directory/', $file);
$file = str_replace('href="http://gegas.net/android/downloads/top', 'href="/android/?id=downloads/top', $file);
$file = str_replace('href="http://gegas.net/android/downloads/news', 'href="/android/?id=downloads/news', $file);
$file = str_replace('href="http://gegas.net/android/downloads/search', 'href="/android/?id=downloads/search', $file);
$file = str_replace('href="http://gegas.net/android/downloads/object', 'href="/android/?id=downloads/object', $file);
$file = str_replace('<h2 class="title_search">', '<div class="phdr">', $file);
echo $file ;
##################
require("../incfiles/end.php");
?>