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

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1.     
    #1
    Member
    Website's:
    sborg.us

    Default [php] Filejungle.com upload plugin

    One of my dear client pasted this on pastebin and it was available to public So I guess there's no harm in posting it here. (As you would end up with the same code while searching on google)

    Have fun

    PHP Code: 
    <?php
    /** Author        : Halcyon aka V3g3t4
     *  Website       : http://sborg.us
     *  Description   : Uploader functions for FileJungle.com
     *  Usage         : upFileJungle('/path/to/file/',$username,$password)
     *  Returns       : Links to uploaded files
     *
     *  Date          : 2-Mar-2012
     */

    function uFJunLogin($ufjuser$ufjpass$ufjcookie) {

        
    $post = array();
        
    $post['loginUserName'] = $ufjuser;
        
    $post['loginUserPassword'] = $ufjpass;
        
    $post["recaptcha_response_field"] = "Login";
        
    $post["recaptcha_challenge_field"] = "Login";
        
    $post["recaptcha_shortencode_field"] = "Login";
        
    $post["loginFormSubmit"] = "Login";

        
    $url "http://filejungle.com/login.php";

        
    $page RL_based_curl($url$post$ufjcookie);
        
    is_notpresent($page"Account Settings""Login failed");
    }

    function 
    upFileJungle($filelocation$ufjcookie) {

        
    $url "http://filejungle.com/upload.php";
        
    $ref "http://filejungle.com/dashboard.php";
        
    $page RL_based_curl($url''$ufjcookie$ref);
        
    $uploadUrl cut_str($page"uploadUrl = '""'");

        
    $ref "http://filejungle.com";
        
    $url $uploadUrl "/new?callback=jsonp" round(microtime(true) * 1000);
        
    $page RL_based_curl($url''$ufjcookie);

        
    $sessionId cut_str($page"sessionId:'""'");
        
    $upurl $uploadUrl "/s/{$sessionId}/up";

        echo 
    "Uploading to {$upurl}<br />";
        
    $post = array();
        
    $post['files'] = "@" $filelocation;
        
    $page RL_based_curl($upurl$post$ufjcookie$ref);

        
    $shortcode cut_str($page'"shortenCode":"''"');
        
    $filename cut_str($page'"fileName":"''"');
        
    $download_link "http://www.filejungle.com/f/{$shortcode}/{$filename}";

        if (
    $shortcode) {
            return 
    $download_link;
        } else {
            echo(
    'Error in uploading file');
            return 
    false;
        }
    }

    function 
    is_notpresent($lpage$mystr$strerror$head 0) {
        if (!
    stristr($lpage$mystr)) {
            echo 
    $strerror;
        }
    }

    function 
    cut_str($str$left$right) {
        
    $str substr(stristr($str$left), strlen($left));
        
    $leftLen strlen(stristr($str$right));
        
    $leftLen $leftLen ? - ($leftLen) : strlen($str);
        
    $str substr($str0$leftLen);
        return 
    $str;
    }

    function 
    RL_based_curl($link$postfields ''$cookie ''$refer ''$header 1$follow 1$usragent '') {

        
    $ch curl_init($link);
        
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
        if (
    $header)
            
    curl_setopt($chCURLOPT_HEADER1);
        else
            
    curl_setopt($chCURLOPT_HEADER0);
        if (
    $follow)
            
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
        else
            
    curl_setopt($chCURLOPT_FOLLOWLOCATION0);
        if (
    $usragent)
            
    curl_setopt($chCURLOPT_USERAGENT$usragent);
        else
            
    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');

        if (
    $refer)
            
    curl_setopt($chCURLOPT_REFERER$refer);

        if (
    $postfields) {
            
    curl_setopt($chCURLOPT_POST1);
            
    curl_setopt($chCURLOPT_POSTFIELDS$postfields);
        }
        if (
    $cookie) {
            
    curl_setopt($chCURLOPT_COOKIEJAR$cookie);
            
    curl_setopt($chCURLOPT_COOKIEFILE$cookie);
        }

        
    $page curl_exec($ch);

        
    curl_close($ch);

        if (empty(
    $page)) {
            echo 
    "<br/>Could not connect to host: <br/> $link <br/>";
            die();
        } else {
            return 
    $page;
        }
    }
    ?>
    Sample Usage:

    http://pastebin.com/NYeMtpyy
    Halcyon Reviewed by Halcyon on . [php] Filejungle.com upload plugin One of my dear client pasted this on pastebin and it was available to public :facepalm: So I guess there's no harm in posting it here. (As you would end up with the same code while searching on google) Have fun (y) <?php /** Author : Halcyon aka V3g3t4 * Website : http://sborg.us * Description : Uploader functions for FileJungle.com * Usage : upFileJungle('/path/to/file/',$username,$password) Rating: 5

    V3g3ta | Halcyon | Abhi

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    you should check the title:

    $url = "http://filejungle.com/login.php";

  4.     
    #3
    Member
    Website's:
    sborg.us
    Thanks t3o, I had freakshare plugin open in another window as well

    Topic reported, hopefully a mod will rename the title.

    V3g3ta | Halcyon | Abhi

  5.     
    #4
    Respected Member
    done and done

  6.     
    #5
    Member
    Website's:
    google.com
    Quote Originally Posted by Halcyon View Post
    Thanks t3o, I had freakshare plugin open in another window as well

    Topic reported, hopefully a mod will rename the title.
    Paste that one !
    That might be more usefull for members here rather than filejungle
    My Avatar is 100% Me.

  7.     
    #6
    Member
    Website's:
    sborg.us
    Aha

    I also have upload plugins for all the new filehosts Can't share everything though!

    V3g3ta | Halcyon | Abhi

  8.     
    #7
    Member
    any tutorial how to make that script?
    step by step pls

  9.     
    #8
    Member
    Website's:
    google.com
    Quote Originally Posted by Halcyon View Post
    Aha

    I also have upload plugins for all the new filehosts Can't share everything though!

    You got those from some pirate community ?
    or made yourself ?

    but none of the filehosts are stable at present
    My Avatar is 100% Me.

  10.     
    #9
    Banned

  11.     
    #10
    Member
    Website's:
    sborg.us
    Quote Originally Posted by dewaforex View Post
    any tutorial how to make that script?
    step by step pls
    Lol, I'll add the steps soon (Will PM you specially in this case).


    Quote Originally Posted by Spartan View Post
    You got those from some pirate community ?
    or made yourself ?

    but none of the filehosts are stable at present
    I made the plugins myself

    And yeah, they're not stable. But I had to make them because of requests!


    Quote Originally Posted by devNULL View Post
    Why does the post URL have a -1?

    Can you PM me the link to this script on your server?

    P.S: Check if the filelocation is set properly or not.

    V3g3ta | Halcyon | Abhi

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FTP Upload to FileJungle
    By lordofupload in forum File Host Discussion
    Replies: 9
    Last Post: 17th Jan 2012, 10:37 PM
  2. How to Remote upload from FSC to FILEJUNGLE
    By dawinet in forum File Host Discussion
    Replies: 7
    Last Post: 28th Dec 2011, 07:05 PM
  3. Fileserve and Filejungle Rapidleech Upload Member Plugin...
    By deccter in forum File Host Discussion
    Replies: 6
    Last Post: 11th Dec 2011, 03:31 PM
  4. Filejungle Upload
    By shahzadali55 in forum File Host Discussion
    Replies: 3
    Last Post: 4th Dec 2011, 06:21 AM
  5. Need Working FileJungle Member upload Plugin
    By ashishashu92 in forum Web Application/Script Support
    Replies: 2
    Last Post: 21st Nov 2011, 09:46 AM

Tags for this Thread

BE SOCIAL