need help about an script
06-15-11, 08:12 AM
New Member
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
need help about an script
I've install an mp3 script at
Home - Mp3 Site ,,,, but i want to search any song so songs are not search so please check this site and tell me how to resolve it.........
06-15-11, 03:43 PM
Newbie Coder
Join Date: Jul 2009
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
What does your search script look like? Post the code so we can see what you are doing and how to fix the problem.
06-16-11, 01:39 AM
Disabled
Join Date: May 2011
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by
pyr0t3chnician
What does your search script look like? Post the code so we can see what you are doing and how to fix the problem.
I am agree with you because without code and without mention error hoe can any person help you. It is too hard to find solution of your prob without know any error.
06-16-11, 08:13 AM
New Member
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
now I've add 4shared.com source code
Code:
<?php
/*
@Added by Belgin Fish
@4Shared Source
*/
if (preg_match('/(iPhone|iPod)/i', $_SERVER['HTTP_USER_AGENT'])) {
} else {
$p = strip_tags($_GET['page']);
$ser = strip_tags($_GET['search']);
$count = $settings['4shared_results']; // get source count from db
$max = 10;
if ($p == 1) { $p = 0; } else { $p = $p-1; }
if($count > $max or empty($count)) { $count = $max; }
$x4shared = openurl("http://www.4shared.com/network/search.jsp?sortType=1&sortOrder=1&sortmode=2&searchName={$search}&searchmode=3&searchName={$search}&searchDescription=&searchExtention=mp3&sizeCriteria=atleast&sizevalue=10&start={$page}".$p."0");
$i = 0;
while($i++ < $count)
{
$track = explode("<div style=\"width:490px\" class=\"fname\">", $x4shared);
$track = explode("</div>", $track[$i]);
$track = $track[0];
$name = str_replace(".mp3", "", strip_tags(expstr($track, "\" target=\"_blank\">", "</a>")));
$lname = str_replace(" ", "_", $name).".mp3";
$x = expstr($track, "<a href=\"http://www.4shared.com/audio/", "\"");
$x = str_replace("?s=1", "", str_replace(".html", "", $x));
$url = WEB_PATH."song.php?4shared=".$x.".mp3";
$listen = 'name=' . $lname . '&url=' . enc($url);
$download = 'name=' . $lname . '&url=' . enc($url);
$playtime = "Unknown";
$source = '4shared';
$dl_message = '<b>Instructions</b><br/>Download works great, listen doesnt work in internet explorer.';
if($name)
{
include ("templates/layout_result_source.php");
}
}
}
?>
it is config.php file
Code:
<?
//General Settings
define('PASS_DUPES', 'true'); //Skip downloading songs you've already downloaded.
define('WEB_PATH', 'http://hungamapk.com/'); //Website path
define('RESULTS_LIMIT', 10); //Results per page for indexed urls
define('CONTACT_EMAIL', 'ummi_here'); // Downloads are from the original sites, not yours (saves bandwidth) (This has to be true if JUST_INDEX is true)
define('ENC_KEY', 'testing'); // Encrypt Key for Source Results
//Indexing / Downloading
define('JUST_INDEX', 'true'); // Don't download audio files, just index them. (saves space) (Still will index if false)
define('DISPLAY_INDEXED', 'true'); // Downloads are from the original sites, not yours (saves bandwidth) (This has to be true if JUST_INDEX is true)
/*Note the script still downloads the file to analyze it for name, album, artist etc */
//User Uploads
define('ALLOW_UPLOADS', 'true'); // Allow users to upload files
//SEO
define('SITE_TITLE', 'Mp3 Site'); // Site Title
define('META_KEYWORDS', 'free mp3 downloads, mp3 download, free music downloads, free music, download songs, free songs, download music, download mp3s, download free mp3, music search'); //Keywordsdefine('META_KEYWORDS', 'free mp3 downloads, mp3 download, free music downloads, free music, download songs, free songs, download music, download mp3s, download free mp3, music search'); //Keywords
define('META_DESCRIPTION', 'Download music online, upload and share your music, create playlists and much more, Free mp3 downloads.'); //Keywords
//Facebook Settings
//Edit /fb/fbmain.php with your facebook application settings
define('FBSHARE_NAME', 'More Free Mp3 Downloads Here'); //Song description when shared
define('FBSHARE_DESC', '100% Virus Free!'); //Song description when shared
//Download Settings
define('DL_FOLDER','downloads'); //Folder to send downloaded mp3's, must be in the same directory as this config file. Dont have to change this.
define('GETIDLOC', 'includes/getId/getid3.php'); // Getid3 location
//Database Information
define('DB_HOST', 'localhost'); //dbhost
define('DB_USER', 'mp3hungama'); //db username
define('DB_PASS', '1324526'); //db password
define('DB_NAME', 'mp3hungama'); //db name
//Kohit
define('SOURCES_ENABLED', 'true'); // Encrypt Key for Source Results
$settings['sources'][0] = 'kohit.php'; //kohit source location
$settings['kohit_results'] = 10; //Kohit results limit
//Dilandau
$settings['sources'][1] = 'dilandau/dilandau.php'; //dilandau source location
$settings['dilandau_results'] = 10; //dilandau results limit
//Mp3Realm
$settings['sources'][2] = 'mp3realm/mp3realm.php'; //mp3realm source location
$settings['mp3realm_results'] = 10; //mp3realm results limit
//Goear
$settings['sources'][3] = 'goear/goear.php'; //goear source location
$settings['goear_results'] = 20; //goear results limit
//4Shared
$settings['sources'][4] = '4shared/index.php'; //4shared source location
$settings['4shared_results'] = 10; //4shared results limit
//Advertisements
define('BET_RES_ADS', '); //Adds to display between each source
define('BET_RES_ADS_LIMIT', 2); //Limit the ads between sources
define('HEADER_AD', ''); //Header Add
define('LEADERBOARD_AD', '
<script type="text/javascript">
<!--
var _adynamo_client = "fc87a394-d49d-445c-9fac-58ed1ea2527e";
var _adynamo_width = 728;
var _adynamo_height = 90;
//-->
</script>
<script type="text/javascript" src="http://static.addynamo.net/ad/js/deliverAds.js"></script>'); //Add to display bellow home search
define('UNDER_PLAYLIST', ''); //Block add for certain pages
//Start session
session_start();
//Connect to database
mysql_connect(DB_HOST, DB_USER, DB_PASS);
mysql_select_db(DB_NAME);
?>
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off