Results 1 to 10 of 12
-
1st Mar 2012, 03:54 PM #1OPMemberWebsite's:
sborg.us[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($str, 0, $leftLen);
return $str;
}
function RL_based_curl($link, $postfields = '', $cookie = '', $refer = '', $header = 1, $follow = 1, $usragent = '') {
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if ($header)
curl_setopt($ch, CURLOPT_HEADER, 1);
else
curl_setopt($ch, CURLOPT_HEADER, 0);
if ($follow)
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
else
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
if ($usragent)
curl_setopt($ch, CURLOPT_USERAGENT, $usragent);
else
curl_setopt($ch, CURLOPT_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($ch, CURLOPT_REFERER, $refer);
if ($postfields) {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
}
if ($cookie) {
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_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;
}
}
?>
http://pastebin.com/NYeMtpyyHalcyon 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
-
1st Mar 2012, 04:00 PM #2MemberWebsite's:
wscripts.net damnlolscript.com lulzjet.comyou should check the title:
$url = "http://filejungle.com/login.php";
-
1st Mar 2012, 04:02 PM #3OPMemberWebsite's:
sborg.usThanks t3o, I had freakshare plugin open in another window as well
Topic reported, hopefully a mod will rename the title.
V3g3ta | Halcyon | Abhi
-
1st Mar 2012, 04:40 PM #4Respected Member
done and done
-
1st Mar 2012, 04:43 PM #5MemberWebsite's:
google.com
-
1st Mar 2012, 04:49 PM #6OPMemberWebsite's:
sborg.usAha
I also have upload plugins for all the new filehostsCan't share everything though!
V3g3ta | Halcyon | Abhi
-
2nd Mar 2012, 07:24 AM #7Member
any tutorial how to make that script?
step by step pls
-
2nd Mar 2012, 07:44 AM #8MemberWebsite's:
google.com
-
2nd Mar 2012, 09:09 AM #9Banned
hmmmmm
Uploading to http://u.filejungle.com/u/-1/s/2ae8a...72d27b1c18e/up
Could not connect to host:
http://u.filejungle.com/u/-1/s/2ae8a...72d27b1c18e/up
-
2nd Mar 2012, 12:21 PM #10OPMemberWebsite's:
sborg.usLol, I'll add the steps soon
(Will PM you specially in this case).
I made the plugins myself
And yeah, they're not stable. But I had to make them because of requests!
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
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
FTP Upload to FileJungle
By lordofupload in forum File Host DiscussionReplies: 9Last Post: 17th Jan 2012, 10:37 PM -
How to Remote upload from FSC to FILEJUNGLE
By dawinet in forum File Host DiscussionReplies: 7Last Post: 28th Dec 2011, 07:05 PM -
Fileserve and Filejungle Rapidleech Upload Member Plugin...
By deccter in forum File Host DiscussionReplies: 6Last Post: 11th Dec 2011, 03:31 PM -
Filejungle Upload
By shahzadali55 in forum File Host DiscussionReplies: 3Last Post: 4th Dec 2011, 06:21 AM -
Need Working FileJungle Member upload Plugin
By ashishashu92 in forum Web Application/Script SupportReplies: 2Last Post: 21st Nov 2011, 09:46 AM
themaRegister - register to forums...
Version 3.54 released. Open older version (or...