Activity Stream
48,167 MEMBERS
6968 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 10 of 10
  1.     
    #1
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro

    Default (API) Filesonic DownLoad Plugin!

    just made it becoz someone me pm about it....

    PHP Code: 
    <?php  
    $filespath 
    dirname(__FILE__)."/files/";
    $link "http://www.filesonic.com/file/JHMyF1L"

    $filename getfsofilename($link); 
    $link getfsolink($link); 
    $saveto $filespath $filename
    echo 
    "<b>Downloading</b> ..........</br><b>Filename:</b> $filename</br><b>Link:</b> $link ....<br />"
    curldlfile($link$saveto);

    function 
    getfsofilename($link

        
    $user "fsc user"// 
        
    $pass "fsc pass"// 
        
    $page $link
        
    $id explode("/"$page); 
        
    $id trim($id[4]); 
        
    $apicall "http://api.filesonic.com/link?method=getDownloadLink&u=$user&p=$pass&ids=$id"
        
    $page file_get_contents($apicall); 
        
    preg_match('#\"filename\":\"(.*)\",\"url\"#'$page$match1); 
        
    $filename $match1[1]; 
        return 
    $filename
    }

    function 
    getfsolink($link

        
    $user "fsc user"// 
        
    $pass "fsc pass"// 
        
    $page $link
        
    $id explode("/"$page); 
        
    $id trim($id[4]); 
        
    $apicall "http://api.filesonic.com/link?method=getDownloadLink&u=$user&p=$pass&ids=$id"
        
    $page file_get_contents($apicall); 
        
    preg_match('#\"url\":\"(.*)\"}}},#'$page$match); 
        
    $linksid $match[1]; 
        
    $link str_replace("\/","/",$linksid); 
        return 
    $link
    }

    function 
    curldlfile($link$saveto

        
    $handle fopen($saveto'w'); 
        if (
    $handle
        { 
            
    $ch curl_init(); 
            
    curl_setopt($chCURLOPT_URL$link); 
            
    curl_setopt($chCURLOPT_FILE$handle); 
            
    curl_setopt($chCURLOPT_FOLLOWLOCATION1); 
         
    curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1'); 
            
    curl_exec($ch); 
            
    curl_close($ch); 
            
    fclose($handle); 
        } 
        else 
        { 
            echo 
    "<br />Could not download $link. Is your 'files' folder chmodded to 777?"
            exit(); 
        } 
    }
    ?>


    For php uploader:

    curl downloa function:
    PHP Code: 
    function curldlfile($link$saveto)
    {
        
    $handle fopen($saveto'w');
        if (
    $handle)
        {
            
    $ch curl_init();
            
    curl_setopt($chCURLOPT_URL$link);
            
    curl_setopt($chCURLOPT_FILE$handle);
            
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
         
    curl_setopt($chCURLOPT_USERAGENT'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
            
    curl_exec($ch);
            
    curl_close($ch);
            
    fclose($handle);
        }
        else
        {
            echo 
    "<br />Could not download $link. Is your 'files' folder chmodded to 777?";
            exit();
        }

    Get Filename:

    PHP Code: 
    function getfsofilename($link)
    {
        
    $user "fsc username";
        
    $pass "fsc password";
        
    $page $link;
        
    $id explode("/"$page);
        
    $id trim($id[4]);
        
    $apicall "http://api.filesonic.com/link?method=getDownloadLink&u=$user&p=$pass&ids=$id";
        
    $page file_get_contents($apicall);
        
    preg_match('#\"filename\":\"(.*)\",\"url\"#'$page$match1);
        
    $filename $match1[1];
        return 
    $filename;

    Get Filelink:

    PHP Code: 
    function getfsolink($link)
    {
        
    $user "fsc username";
        
    $pass "fsc password";
        
    $page $link;
        
    $id explode("/"$page);
        
    $id trim($id[4]);
        
    $apicall "http://api.filesonic.com/link?method=getDownloadLink&u=$user&p=$pass&ids=$id";
        
    $page file_get_contents($apicall);
        
    preg_match('#\"url\":\"(.*)\"}}},#'$page$match);
        
    $linksid $match[1];
        
    $link str_replace("\/","/",$linksid);
        return 
    $link;

    PHP Code: 
    $filename getfsofilename($link);
    $link getfsolink($link);
    $saveto $filespath $filename;
    echo 
    "<b>Downloading</b> ..........</br><b>Filename:</b> $filename</br><b>Link:</b> $link ....<br />";
    curldlfile($link$saveto); 
    saninokia Reviewed by saninokia on . (API) Filesonic DownLoad Plugin! just made it becoz someone me pm about it.... <?php $filespath = dirname(__FILE__)."/files/"; $link = "http://www.filesonic.com/file/JHMyF1L"; $filename = getfsofilename($link); $link = getfsolink($link); $saveto = $filespath . $filename; echo "<b>Downloading</b> ..........</br><b>Filename:</b> $filename</br><b>Link:</b> $link ....<br />"; Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    you are sure is working ?

    From what i see there isn't downloading the file ....

  4.     
    #3
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
    no,you need to save the file its just returning the download link,just save it using fopen.i configured it for php uploader which is in my lapy,if anyone still getting problem in configuring for his own use,reply me,i will do it.

  5.     
    #4
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    well, your title say Filesonic DownLoad Plugin!

    most users will just copy the code and will say will not work, if this is a plugin for a script you should say in your post

  6.     
    #5
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
    thread updated.

  7.     
    #6
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
    thread updated with single page download and php uploader support.just copy paste the single page plugin,it will work,just change the link and user,password.and use php uploader plugin carefully to keep it working.

  8.     
    #7
    Member
    Website's:
    epicimagehost.com
    You can fetch filename and link in 1 api-call.
    Now you're slowing yourself down and causing more work for the FileSonic Api..

  9.     
    #8
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
    first time made api system,thx for your advice,i tried with 1 apicall but not working 2 return value using 1 apicall.

  10.     
    #9
    Member
    Website's:
    epicimagehost.com
    In that case; good job
    You can return an array containing multiple values.
    PHP Code: 
    function api_call(){
     
    // ...
     
    $return = array();
     
    $return[] = $filename;
     
    $return[] = $link;

     return 
    $return;


  11.     
    #10
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
    thanks bro,will try it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Filesonic Premium Download Plugin
    By Hillside in forum File Host Discussion
    Replies: 1
    Last Post: 7th Mar 2011, 06:30 AM
  2. Plugin download of filesonic & fileserve ?
    By chipve in forum File Host Discussion
    Replies: 6
    Last Post: 19th Feb 2011, 03:13 PM
  3. [Selling] FileSonic Download Plugin!
    By CuTe BoY in forum Completed Transactions
    Replies: 3
    Last Post: 9th Jan 2011, 09:03 AM
  4. Filesonic Download Plugin Need
    By champ of champs in forum File Host Discussion
    Replies: 15
    Last Post: 2nd Dec 2010, 11:35 AM
  5. filesonic download plugin
    By trojan in forum Web Development Area
    Replies: 3
    Last Post: 30th Oct 2010, 11:27 PM

Tags for this Thread

BE SOCIAL