include_once 'html2ubb.php'; include_once 'dbconfig.php'; $tail = "&passkey=292f839cc1c4dcd3da580eb23963e105"; //$url="http://chdbits.org/torrentrss.php?rows=10&sta3=1&ismalldescr=1"; //$url_detail='http://chdbits.org/torrentrss.php?rows=10&linktype=dl&passkey=xxxxxxx'; //$pattern='/http:\/\/222.199.184.28\/details.php\?id=([0-9]+)/i'; $pattern = '/\\/details.php\\?id=([0-9]+)/i'; $pimdb = '/http:\\/\\/www.imdb.com\\/title\\/tt([0-9]+)/i'; $pattern_name = '/\\[(.*?)\\]$/'; dbconn(); $url = get_rss_source(); if (mysql_affected_rows()) { while ($url_item = mysql_fetch_array($url)) { echo "parsing rss source:" . $url_item['note'] . " :" . $url_item['url'] . "\n"; $rss = new ReadRSS($url_item['url']); $values = $rss->RSS(50); //print_r($values); $row = array(); foreach ($values as $value_item) { if (preg_match($pattern, $value_item['link'], $matches)) { $tid = $matches[1]; } else { $tid = 0; } $row['id'] = ""; $row['doubanid'] = $value_item['doubanid']; $row['tid'] = $tid; $row['filename'] = $value_item['title']; $row['name'] = $value_item['title']; $small_descr = ''; if (preg_match($pattern_name, $value_item['title'], $matches)) {
<html> <body> <?php include_once 'rss.class.php'; include_once 'curl.download.php'; include_once 'uploadFile.php'; //include_once('download.class.php'); include_once 'html2ubb.php'; include_once 'html2bbc.php'; $tail = "&passkey=292f839cc1c4dcd3da580eb23963e105"; $url = "http://bt.6xvod.com/torrentrss.php?rows=10"; $url_detail = 'http://bt.6xvod.com/torrentrss.php?rows=10&linktype=dl&passkey=292f839cc1c4dcd3da580eb23963e105'; $rss = new ReadRSS($url); $values = $rss->RSS(10); //print_r($values); foreach ($values as $value) { echo "</br>*********************************************************************\n</br>"; echo "*********************************************************************\n</br>"; echo $value['title'] . " "; echo "url->" . $value['enclosure_url'] . "|" . "size->" . $value['enclosure_length'] . "\n"; /****************begin download torrent *********************/ //$fn=curlTool::downloadFile($value['enclosure_url'],'/root/autoseed/release/torrents/'); //uploadTorrent($fn); echo html2ubb($value['description']) . "\n"; echo html2bbc($value['description']) . "\n"; // downloadFile($value['link'].$tail,"test"); } ?> </body> </html>