Hey i am here today to share my mp3 search engine script
demo here: http://www.gtriddim.net/api/demo.php
I have updated the code and added the: file size, duration, and bit rate.
Please don't forget to hit the thanks button
demo here: http://www.gtriddim.net/api/demo.php
PHP Code:
<?php
/*******************************************************************************
*
*******************************************************************************
* Website: http://www.gtriddim.com
* Facebook: http://facebook.com/gtriddim
* Twitter: http://twitter.com/gtriddim
*
* Copyright: (c) 2012-2014 - GTriddim.com
* You are free to modify this script except for the copyright.
* Please do not remove the copyright link back to our website!
*
*******************************************************************************
* DESCRIPTION:
*
* NOTE: This script coded by Anthony Johnson allows you to download MP3 Files
*
*
*******************************************************************************
*/
function gtriddim($content,$start,$end){
if($content && $start && $end) {
$r = explode($start, $content);
if (isset($r[1])){
$r = explode($end, $r[1]);
return $r[0];
}
return '';
}
}
if(isset($_GET['search']))
{
$gtriddim_search_link = $_GET['search'];
if ($gtriddim_search_link==""){
$err .= "ERROR: Please ensure you submitted the correct values to gtriddim.com Server";
}
else
{
$gtriddim_search = $_GET['search'];
$server = "http://www.gtriddim.net/api/?search=$gtriddim_search";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $server);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$page = curl_exec($ch);
curl_close($ch);
$gtriddim_suc = "$page";
}
}
?>
<html>
<head>
<title>GTriddim.com | MP3 Search Engine</title>
<style type="text/css">
.gtriddim_style {
width:211px;
padding:5px;
color:#fff;
text-transform:uppercase;
font-size:10px;
background:#d20000;
font-family:Arial, Helvetica, sans-serif;
font-weight:bold;
border:#e2e2e2 1px solid;
cursor:pointer;
}
.err {
padding:15px;
background:#fcc;
border:1px solid #f00;
width:611px;
}
body
{
margin:0;
padding:0;
font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
font-size:20px;
}
</style>
</head>
<body>
<center>
<p><?php if ( $err ) { echo "<p class=\"err\">The following errors occurred:<br />$err</p>"; } ?>
<center><form method="GET" action="" style="margin-left: 10px; margin-right: 10px;">
<br/><h2>Type artist name or song below, and enjoy</h2><br/>
<input name="search" type="text" style="border:1px solid #CCCCCC; background-color:#Fff8f8; margin-right: 20px; height: 35px; font-size:14pt; color:#888 " value="" size="80" /><br/><br/>
<input type="submit" style="border:1px solid #CCCCCC; background-position: left top; width: 109px; height: 35px; font-size: 18pt; font-family: Geneva, Arial, Helvetica, sans-serif; font-weight: bold; background-color: #eeeeee; background-repeat:no-repeat" value="Search" />
<br /><br/>
<?php if ( $gtriddim_suc ) {
$part = explode('/a>',$gtriddim_suc);
$part2 = explode('/b>',$gtriddim_suc);
for($i=1;$i<100;$i++){
$con = $part[$i];
$con2 = $part2[$i];
$link = gtriddim($con,'href="','"');
$name = strstr($con,'<a');
$name = gtriddim($name,'">','<');
//$info = strstr($con2,'<b');
$info = gtriddim($con2,'<b>','</b>');
$fileinfo = explode('<',$info);
if ( $name != "" )
{
echo "<TABLE ALIGN=\"left\" STYLE=\"margin-right:15px;\">";
echo "<p><a href=\"$link\">$name</a>$fileinfo[0]</p>";
echo "</table>";
}
}
}
?>
</form><br/><br/><P style="font-size:12px">
This site does not store any files on its server. We only index and link to content provided by other sites.<br />
We are not responsible for the materiel found here as it is not on our servers, <br />
so if you find any copyright material and want to complain, contact the respective source directly, not us!<br /></center>
<br/><center> <footer>
<p style="font-size:12px">Copyright © <?php echo date('Y'); ?> <a href = "http://www.gtriddim.com" target="_blank">www.gtriddim.com</a> All rights reserved</p>
</footer></center>
Please don't forget to hit the thanks button
Comment