[Assorted-commits] SF.net SVN: assorted:[1075] google-file-search/trunk/src/gfs.php
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-11-29 07:50:55
|
Revision: 1075 http://assorted.svn.sourceforge.net/assorted/?rev=1075&view=rev Author: yangzhang Date: 2008-11-29 07:50:42 +0000 (Sat, 29 Nov 2008) Log Message: ----------- updated to provide searches over file hosts like rapidshare and megaupload Modified Paths: -------------- google-file-search/trunk/src/gfs.php Modified: google-file-search/trunk/src/gfs.php =================================================================== --- google-file-search/trunk/src/gfs.php 2008-11-21 01:37:44 UTC (rev 1074) +++ google-file-search/trunk/src/gfs.php 2008-11-29 07:50:42 UTC (rev 1075) @@ -1,11 +1,10 @@ <?php +$services = explode( + ' ', + 'megaupload rapidshare zshare yousendit mediafire badongo' +); if ($_POST['query']) { - $query = urlencode( - 'intitle:"index of" +"last modified" +"parent directory" ' . - '+(mp3|wma|ogg) -inurl:htm -inurl:html -inurl:php -inurl:asp ' . - //'-site:openpirate.com ' . - $_POST['query'] - ); + $query = urlencode(implode(' | ', $services) . ' ' . $_POST['query']); header('Location: http://www.google.com/search?q=' . $query); exit; } @@ -15,7 +14,13 @@ <title>Google File Search</title> </head> <body> -<form method="post" action="gfs.php"> +<p>Currently searches:</p> +<ul> +<? foreach ($services as $service): ?> +<li><?=htmlentities($service)?></li> +<? endforeach ?> +</ul> +<form method="post" action="index.php"> <input name="query" style="width: 100%" /> </form> </body> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |