[WTB]Easy Job For Programmer Just One File to Edit.

Discussion in 'Programming' started by caspermz, May 3, 2009.

  1. #1
    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.
     
    caspermz, May 3, 2009 IP
  2. chmdznr

    chmdznr Active Member

    Messages:
    417
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    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.
     
    chmdznr, May 3, 2009 IP
  3. WoRLDLiFE

    WoRLDLiFE Peon

    Messages:
    116
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    I can do this work ... Please check your inbox .
     
    WoRLDLiFE, May 3, 2009 IP
  4. lifedesigner

    lifedesigner Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    Is this still available ? I would like to help !
     
    lifedesigner, May 4, 2009 IP
  5. caspermz

    caspermz Active Member

    Messages:
    152
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    68
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    THANK´S TO EVERYONE JOB DONE..ANYWAY IN THIS WEEK I WILL POST SOME MORE JOBS.
     
    caspermz, May 4, 2009 IP