[Assorted-commits] SF.net SVN: assorted: [830] google-file-search
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-05-25 02:30:22
|
Revision: 830 http://assorted.svn.sourceforge.net/assorted/?rev=830&view=rev Author: yangzhang Date: 2008-05-24 19:30:24 -0700 (Sat, 24 May 2008) Log Message: ----------- added google file search Added Paths: ----------- google-file-search/ google-file-search/trunk/ google-file-search/trunk/README google-file-search/trunk/src/ google-file-search/trunk/src/gfs.php Added: google-file-search/trunk/README =================================================================== --- google-file-search/trunk/README (rev 0) +++ google-file-search/trunk/README 2008-05-25 02:30:24 UTC (rev 830) @@ -0,0 +1,2 @@ +A simple web frontend to Google for finding files in web directory listings, +especially media files (mp3s). Added: google-file-search/trunk/src/gfs.php =================================================================== --- google-file-search/trunk/src/gfs.php (rev 0) +++ google-file-search/trunk/src/gfs.php 2008-05-25 02:30:24 UTC (rev 830) @@ -0,0 +1,22 @@ +<?php +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'] + ); + header('Location: http://www.google.com/search?q=' . $query); + exit; +} +?> +<html> +<head> +<title>Google File Search</title> +</head> +<body> +<form method="post" action="gfs.php"> +<input name="query" style="width: 100%" /> +</form> +</body> +</html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |