Hello, I have an Mp3 Search Engine Site.(soundzet) Users can download songs from this webpage what i want to do is that only register users can download songs. The file you have to edit is this one, <? include 'the-includes/settings.php'; $myRef = $_SERVER['HTTP_REFERER']; if(!$myRef) { $theref = "http://$domain/"; $namee = urlencode(strip_tags(urldecode($_GET[name]))); $theurl = "http://$domain/demo/index.php?search=$namee"; @header("Referer: $theref"); @header("Location: $theurl"); } /* else if(@stristr($myRef,$domain) == FALSE) { ?> <meta http-equiv="refresh" content="5;url=http://<?=$domain?>/"> <div style="font-size: 75px; text-align: center;">please visit our site directly<br /><a href='http://www.soundzet.com/'>Soundzet.com</a></div> <?php die; } */ else { //---------------------------- $data1 = file_get_contents("the-includes/counternya.db") + "1"; $fp = fopen("the-includes/counternya.db", "w"); fwrite($fp, $data1); fclose($fp); //---------------------------- $source = strip_tags($_GET[src]); $source = str_replace("..","",$source); $source = str_replace("/","",$source); if($source == '4shared') { @include("the-sources/". $source ."/download2.php"); } else { @include("the-sources/". $source ."/download.php"); @header("Location: $url"); } } ?> Code (markup): I think you have to make it work adding something like this, <? include 'menu.php'; session_start(); include("the-includes/session.php"); $ref_url = $_SERVER['REQUEST_URI']; ?> <? if(!$session->logged_in){ ?> Click This <a href =link> Link For downloading the file</a> <? } else { ?> You must be registred for downloading this file. <? } ?> Code (markup): I Will pay 15 dolars by paypal i need it fast please.
i know this kind of script, and I believe there's more than one file to edit. under "the-sources" directory, you'll fine another directory such as 4shared, tagoo, ijigg, mp3realm, etc. in those directory, you'll find download.php or download2.php change this file so it check the login session, when user login session is not active (he hasn't logged in or not registered), change $url variable value to "registration page" URL, otherwise let the $url variable as is. Just my little clue.