Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Search several torrrent sites all in one page
01-18-2010, 09:44 PM (This post was last modified: 01-19-2010 09:47 AM by Back_track.)
Post: #1
PHP Search several torrrent sites all in one page
I'm not much of a web developer, but I was using this php code, and it stopped working. Anyone see what the problem is?
PHP Code:
<html>
<
head>
<
title>OperationMayhem.net The Most Advanced File Search comparison </title>
<
meta NAME="keywords" CONTENT="OperationMayhem, OperationMayhem.net, Operation Mayhem. search, download">
<
meta NAME="description" CONTENT="The Ultimate File Search will scour all Torrents, IRC, Newsgroups, and even P2P Apps like Edonkey/Emule allowing you to compare search engines.">
<
meta NAME="rating" CONTENT="General">
<
meta name="Robots" content="index,nofollow">
<
meta name="Distribution" content="global">
<
meta name="revisit-after" content="4 Days">
<
meta HTTP-EQUIV="Content-Language" CONTENT="EN">
</
head>
<
body>

<
p align="left"><font size ="4">The Ultimate File Search will scour all TorrentsIRCNewsgroups, and even P2P Apps like Edonkey/Emule</font><br>
<
font size="2" color="#FF0000">W</font><font size="2" color="#FF0000">e strongly urge you to use FireFox web browser!  <a href="http://www.mozilla.com/firefox/">Get Firefox!</a>and get <a href="https://addons.mozilla.org/firefox/722/">NoScript</a>, <a href="https://addons.mozilla.org/firefox/10/">Adblock</a>, and <a href="https://addons.mozilla.org/firefox/1136/">Adblock Filterset.G Updater</aextensions for FireFox .</font>  </p>

<
form action="<?php echo $PHP_SELF; ?>" method="post">
Search <input type="text" name="search">
<
input type="radio" name="displayres" value="1600" checked1600x1200
<input type="radio" name="displayres" value="1280"1280x1024
<input type="radio" name="displayres" value="1024"1024x768
<input type="radio" name="displayres" value="800"800x600
<input type="hidden" name="action" value="search">
<
input type="submit" value="Search">
</
form>

<?
php
if($_POST['action'] == "search")
{
  
$search $_POST['search'];
  if (
$_POST['displayres'] == "1600")
    {
     
$height 1100;
     
$width 1500;
    }
    if (
$_POST['displayres'] == "1280")
    {
     
$height 950;
     
$width 1200;
    }
    if (
$_POST['displayres'] == "1024")
    {
     
$height 750;
     
$width 975;
    }
     if (
$_POST['displayres'] == "800")
    {
     
$height 650;
     
$width 750;
    }
 
?>

<iframe src="http://www.mininova.org/search/?search=<?php echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />


<iframe src="http://thepiratebay.org/search.php?q=<?php echo $search?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />


<iframe src="http://isohunt.com/torrents.php?ihq=<?php echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<!--
<iframe src="http://www.torrentz.com/search?q=<?php echo $search?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />

<iframe src="http://www.torrentreactor.net/search.php?search=&words=<?php echo $search'&cid='?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />
<iframe src="http://search.gamecopyworld.com:9999/data/gcw.shtml?start=10&quant=10&search=<?php echo $search'&cid='?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />


<iframe src="http://www.torrentspy.com/search.asp?h=&query=<?php echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />
<iframe src="http://mbt.searching.com/?PHPSESSID=eb561da21e181f3db19e63cf66ff7180&keywords=<?php $search;?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://www.fulldls.com/search_for_=<?php echo $search'_in_All_active'?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />

<iframe src="http://tp.searching.com/torrents-search.php?search=<?php echo $search?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://seedler.org/en/html/search/<?php echo $search?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://www.zoozle.net/zoozle.php?q=<?php echo $search'&s=emule&l='?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://www.zoozle.net/zoozle.php?q=<?php echo $search'&s=usenet&l='?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://ircspy.com/search.asp?searchtext=<?php echo $search ;?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://packetnews.com/search.php?type=0&kw=<?php echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />

<iframe src="http://www.newzbin.com/search/query/p/?q=<?php echo $search'&Category=-1&searchFP=p'?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />

<iframe src="http://planethamachi.com/net_public.php?limit=50&filter_name=%26%2365533%3B&filter_c=&filter_type=game&filter_desc=<? echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>
-->

<iframe src="http://www.google.com/search?&q=<? echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<?php
}
?>
</body>
</html> 
Find all posts by this user
Quote this message in a reply
01-20-2010, 05:59 AM
Post: #2
RE: PHP Search several torrrent sites all in one page
I don't know what problem is. And this is not working for me.
But i learned something from this post and that is syntax highlighting for php code using php tags LOL

We attack any new problem we encounter with techniques we already know, and try small modifications if difficulties turn up.
Bram Cohen - Bit Torrent Creator
Visit this user's website Find all posts by this user
Quote this message in a reply
01-20-2010, 07:02 AM
Post: #3
RE: PHP Search several torrrent sites all in one page
(01-20-2010 05:59 AM)drdebcol Wrote:  I don't know what problem is. And this is not working for me.
But i learned something from this post and that is syntax highlighting for php code using php tags LOL

I did that Wink

"Character is determined more by the lack of certain experiences than by those one has had."
Friedrich Nietzsche
Visit this user's website Find all posts by this user
Quote this message in a reply
01-20-2010, 07:17 PM
Post: #4
RE: PHP Search several torrrent sites all in one page
Very good Back_track !!!

We attack any new problem we encounter with techniques we already know, and try small modifications if difficulties turn up.
Bram Cohen - Bit Torrent Creator
Visit this user's website Find all posts by this user
Quote this message in a reply
01-24-2010, 07:16 AM
Post: #5
RE: PHP Search several torrrent sites all in one page
Hello mate, i got this working.

It was the piratebay website that was redirecting it.

PHP Code:
<html>
<
head>
<
title>OperationMayhem.net The Most Advanced File Search comparison </title>
<
meta NAME="keywords" CONTENT="OperationMayhem, OperationMayhem.net, Operation Mayhem. search, download">
<
meta NAME="description" CONTENT="The Ultimate File Search will scour all Torrents, IRC, Newsgroups, and even P2P Apps like Edonkey/Emule allowing you to compare search engines.">
<
meta NAME="rating" CONTENT="General">
<
meta name="Robots" content="index,nofollow">
<
meta name="Distribution" content="global">
<
meta name="revisit-after" content="4 Days">
<
meta HTTP-EQUIV="Content-Language" CONTENT="EN">
</
head>
<
body>

<
p align="left"><font size ="4">The Ultimate File Search will scour all TorrentsIRCNewsgroups, and even P2P Apps like Edonkey/Emule</font><br>
<
font size="2" color="#FF0000">W</font><font size="2" color="#FF0000">e strongly urge you to use FireFox web browser!  <a href="http://www.mozilla.com/firefox/">Get Firefox!</a>and get <a href="https://addons.mozilla.org/firefox/722/">NoScript</a>, <a href="https://addons.mozilla.org/firefox/10/">Adblock</a>, and <a href="https://addons.mozilla.org/firefox/1136/">Adblock Filterset.G Updater</aextensions for FireFox .</font>  </p>

<
form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
Search <input type="text" name="searchq">
<
input type="radio" name="displayres" value="1600" checked1600x1200
<input type="radio" name="displayres" value="1280"1280x1024
<input type="radio" name="displayres" value="1024"1024x768
<input type="radio" name="displayres" value="800"800x600
<input type="hidden" name="action" value="search">
<
input type="submit" value="Search" name="search" >
</
form>

<?
php
if (isset($_POST['search'])) 
{
  
$search $_POST['searchq'];
  if (
$_POST['displayres'] == "1600")
    {
     
$height 1100;
     
$width 1500;
    }
    if (
$_POST['displayres'] == "1280")
    {
     
$height 950;
     
$width 1200;
    }
    if (
$_POST['displayres'] == "1024")
    {
     
$height 750;
     
$width 975;
    }
     if (
$_POST['displayres'] == "800")
    {
     
$height 650;
     
$width 750;
    }
 
?>

<iframe src="http://www.mininova.org/search/?search=<?php echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />


<!-- <iframe src="http://thepiratebay.org/search.php?q=<?php echo $search?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br /> -->


<iframe src="http://isohunt.com/torrents.php?ihq=<?php echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />



<iframe src="http://www.google.com/search?&q=<? echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />

<!--
<iframe src="http://www.torrentz.com/search?q=<?php echo $search?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />

<iframe src="http://www.torrentreactor.net/search.php?search=&words=<?php echo $search'&cid='?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />
<iframe src="http://search.gamecopyworld.com:9999/data/gcw.shtml?start=10&quant=10&search=<?php echo $search'&cid='?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />


<iframe src="http://www.torrentspy.com/search.asp?h=&query=<?php echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />
<iframe src="http://mbt.searching.com/?PHPSESSID=eb561da21e181f3db19e63cf66ff7180&keywords=<?php $search;?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://www.fulldls.com/search_for_=<?php echo $search'_in_All_active'?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />

<iframe src="http://tp.searching.com/torrents-search.php?search=<?php echo $search?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://seedler.org/en/html/search/<?php echo $search?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://www.zoozle.net/zoozle.php?q=<?php echo $search'&s=emule&l='?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://www.zoozle.net/zoozle.php?q=<?php echo $search'&s=usenet&l='?>" width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://ircspy.com/search.asp?searchtext=<?php echo $search ;?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>

<iframe src="http://packetnews.com/search.php?type=0&kw=<?php echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />

<iframe src="http://www.newzbin.com/search/query/p/?q=<?php echo $search'&Category=-1&searchFP=p'?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br />

<iframe src="http://planethamachi.com/net_public.php?limit=50&filter_name=%26%2365533%3B&filter_c=&filter_type=game&filter_desc=<? echo $search?>"  width="<?php echo $width?>" height="<?php echo $height?>">
</iframe><br>
-->

<?php
}
?>
</body>
</html> 

Find all posts by this user
Quote this message in a reply
02-06-2010, 09:47 PM (This post was last modified: 02-06-2010 09:49 PM by RecursiveQuickSort.)
Post: #6
RE: PHP Search several torrrent sites all in one page
Thanks oToom. I made this diff of the two to see what the problem was. The > shows what you added.

PHP Code:
17,18c17,18
< <form action="<?php echo $PHP_SELF; ?>" method="post">
Search <input type="text" name="search">
---
> <
form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
Search <input type="text" name="searchq">
24c24
< <input type="submit" value="Search">
---
> <
input type="submit" value="Search" name="search" >
28c28
< if($_POST['action'] == "search")
---
> if (isset(
$_POST['search'])) 
30c30
<   $search $_POST['search'];
---
>   
$search $_POST['searchq'];
57,58c57,58
< <iframe src="http://thepiratebay.org/search.php?q=<?php echo $search; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
< </
iframe><br />
---
> <!-- <
iframe src="http://thepiratebay.org/search.php?q=<?php echo $search; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>">
> </
iframe><br /> -->
62c62,67
< </iframe><br>
---
> </
iframe><br />



> <
iframe src="http://www.google.com/search?&q=<? echo $search; ?>"  width="<?php echo $width; ?>" height="<?php echo $height; ?>">
> </
iframe><br />
107,109d111
< <iframe src="http://www.google.com/search?&q=<? echo $search; ?>"  width="<?php echo $width; ?>" height="<?php echo $height; ?>">
< </
iframe><br>

Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: