шапку от ротора вставил чуть ниже граббер заработал ну ошибки сверу вылазиют
Notice: Undefined index: search in /home/serge213/public_html/mp3/index.php on line 18
Notice: Undefined index: page in /home/serge213/public_html/mp3/index.php on line 19
Notice: Undefined index: q in /home/serge213/public_html/mp3/index.php on line 20
Notice: Use of undefined constant files - assumed 'files' in /home/serge213/public_html/mp3/index.php on line 37
Добавлено через 00:56 сек.
<?php
include 'conf.php';
include 'CurlClass.php';
include 'head.php';
$conf = new CurlClassConfig;
$conf->userAgent = 'IPAD';
$conf->cookiesFile = 'cookies.txt';
$conf->referer = 'http://poiskm.org/';
#$conf->proxy = '127.0.0.1:9050';
#$conf->proxytype = CURLPROXY_SOCKS5;
$conf->timeout = 10;
$conf->followLocations = FALSE;
$curl = new CurlClass;
$search = htmlspecialchars(trim($_GET['search']));
$page = htmlspecialchars(trim($_GET['page']));
$q = htmlspecialchars(trim($_GET['q']));
$file = $curl->getPage ($conf, 'http://poiskm.org/show/'.$search.'?page='.$page.'');
switch ($q) {
default:
echo ' <b>Ваш запрос </b><br/>
<form action="'.$papka.'index.php" method="get">
<input type="search" name="search" value="Новинки">
<input name="page" type="hidden" value="1" />
<input name="q" type="hidden" value="files" />
<input type="submit" value="Искать">
</form>';
include 'foots.php';
break;
case files:
echo ' <b>Ваш запрос </b><br/>
<form action="'.$papka.'index.php" method="get">
<input type="search" name="search" value="Новинки">
<input name="page" type="hidden" value="1" />
<input name="q" type="hidden" value="files" />
<input type="submit" value="Искать">
</form>';