Results 21 to 30 of 45
-
15th Aug 2011, 05:14 PM #21Respected MemberWebsite's:
DL4Everything.com Soft2050.inYou can have a look at this thread for new working fileserve plugin for rapidleech:
I did modified the code for a custom script few days ago but dunno where it is put I modified that from rl plugin only
-
15th Aug 2011, 08:36 PM #22MemberWebsite's:
fileservedownload.netfunction upFS($value, $fs_user, $fs_password) {
$post = array();
$post["autoLogin"] = true;
$post["loginUserName"] = $fs_user;
$post["loginUserPassword"] = $fs_password;
$post["loginFormSubmit"] = TRUE;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://fileserve.com/login.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://www.fileserve.com/login.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
$result1 = curl_exec ($ch);
curl_close ($ch);
$result = $result1;
//echo $result."<br />";
preg_match("/cookie=[a-zA-Z0-9%]+/i", $result, $matches);
$doughnut = $matches[0]; //This is the cookie
//echo $doughnut."<br />";
$result = postHost("http://www.fileserve.com/", "", $doughnut);
preg_match('/id="uploadHostURL" value="(.+?)"/', $result, $matches);
$uploadHostURL = $matches[1];
preg_match('/id="userId" value="(.+?)"/', $result, $matches);
$userId = $matches[1];
$result = postHost("http://www.fileserve.com/upload-track.php", "", $doughnut);
preg_match('/sessionId":"(.+?)"/', $result, $matches);
$sessionId = $matches[1];
$action_url = "http://".$uploadHostURL."/upload/upload.php?X-Progress-ID=".$sessionId;
preg_match('/fs(.+?)u/', $uploadHostURL, $matches);
$serverID = $matches[1];
$post = array();
$post["affiliateId"] = "";
$post["subAffiliateId"] = "";
$post["landingId"] = "";
$post["userId"] = $userId;
$post["uploadSessionId"] = $sessionId;
$post["uploadHostURL"] = $uploadHostURL;
$post["serverId"] = $serverID;
$post["file"] = "@$value";
$uploadThis = postHost($action_url, $post, $doughnut);
$result = postHost("http://www.fileserve.com/upload-result.php", "uploadSessionId[]=$sessionId", $doughnut);
preg_match("/http:\/\/www.fileserve.com\/file\/[0-9a-zA-Z]+/i", $result, $matches);
if ($matches[0]==null){$link=null;}
else{$link = $matches[0]."/".basename($value);}
return $link;
}
this is my...please help to mod it
-
16th Aug 2011, 03:11 AM #23MemberWebsite's:
PasteBot.appspot.comCheck out this by mraza: http://paste2.org/p/1572481
Your script probably uploads via FTP
-
16th Aug 2011, 06:20 AM #24MemberWebsite's:
fileservedownload.netthanks al lot
i had try to do some change, looking your link...but i' m not able
looking for someone help me ($ np)
thanks
-
16th Aug 2011, 07:58 AM #25Member
I have phpuploader modified by me, but now trying to download from fileserve always show me error, anyone have the same problem or the solution?
Thanks in advance.
-
16th Aug 2011, 03:22 PM #26It begins...
Delete the cookie files, then try again. If it doesn't work, let me know and I'll post an appropriate download code for Fileserve. You'll have to modify it to make it work with Fileserve, though, because I won't have the time to look through phpUploader.
-
16th Aug 2011, 03:50 PM #27MemberWebsite's:
sborg.usI guess this should help!
Upload to FS function:
PHP Code:function upFS($filelocation, $fs_user, $fs_password) {
$post = array();
$post["autoLogin"] = true;
$post["loginUserName"] = $fs_user;
$post["loginUserPassword"] = $fs_password;
$post["loginFormSubmit"] = "LOGIN";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://fileserve.com/login.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://www.fileserve.com/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
$result = curl_exec($ch);
curl_close($ch);
preg_match("/cookie=[a-zA-Z0-9%]+/i", $result, $matches);
$doughnut = $matches[0]; //This is the cookie
$result = postHost("http://www.fileserve.com/", "", $doughnut);
preg_match('#action="http://upload.fileserve.com/upload/(.*)"#', $result, $matches);
$rnd = time() . rndNum(3);
$rnd_id = rndNum(5);
$server = 'http://upload.fileserve.com/upload/' . $matches[1];
$page = postHost($server . "?callback=jsonp" . $rnd . "&_=" . $rnd_id, "", $doughnut);
preg_match('#sessionId\:\'(.*)\'}#', $page, $match);
$uploadSessionId = $match[1].'/';
$postfields = array();
$postfields['file'] = "@$filelocation";
$page = postHost($server . $uploadSessionId, $postfields, $doughnut);
preg_match('#"shortenCode":"(.*)"}#', $page, $match);
$linkId = $match[1];
if ($match[1])
$downloadlink = 'http://www.fileserve.com/file/' . $match[1];
else
$downloadlink = FALSE;
return $downloadlink;
}
PHP Code:function rndNum($lg) {
$str = "0123456789";
for ($i = 1; $i<=$lg; $i++) {
$st = rand(0, 9);
$pnt = substr($str, $st, 1);
}
return $pnt;
}
function postHost($link, $postfields = '', $cookie = '') {
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER, 'http://www.fileserve.com/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
if ($postfields) {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
}
if ($cookie) {
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
}
$page = curl_exec($ch);
return($page);
curl_close($ch);
}
Credits: Modded mraza's codes
V3g3ta | Halcyon | Abhi
-
16th Aug 2011, 07:37 PM #28Member
Delete cookie but don?t work.
this is the code in phpuploader for download from fileserve
PHP Code:function fscurl($link, $postfields = '', $cookie = '')
{
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER, 'http://www.fileserve.com/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
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);
return($page);
curl_close($ch);
}
PHP Code:function downloadfile($link, $saveto, $fscookie, $hfcookie)
{
$handle = fopen($saveto, 'w');
if ($handle)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $link);
curl_setopt($ch, CURLOPT_FILE, $handle);
if ($fscookie)
{
curl_setopt($ch, CURLOPT_COOKIEFILE, $fscookie);
}
if ($hfcookie)
{
curl_setopt($ch, CURLOPT_COOKIEFILE, $hfcookie);
}
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
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');
curl_exec($ch);
curl_close($ch);
fclose($handle);
}
else
{
echo "<br />Could not download $link. Is your 'files' folder chmodded to 777?";
exit();
}
}
-
17th Aug 2011, 02:03 AM #29MemberWebsite's:
tufos.net
-
17th Aug 2011, 04:15 AM #30MemberWebsite's:
fileservedownload.netv3g3t4
you are my hero
THANKS
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Premium link generator for fileserve using cURL - error
By nummi in forum Web Development AreaReplies: 1Last Post: 12th Sep 2011, 07:18 PM -
Is there any Fileserve expert help me to understand Fileserve statistic?
By MSL6600 in forum File Host DiscussionReplies: 12Last Post: 25th Jun 2011, 08:35 AM -
How to remote upload from Fileserve to Fileserve?
By azertred in forum File Host DiscussionReplies: 10Last Post: 29th Oct 2010, 09:27 AM -
FileServe-Warez and FileServe-Porn
By ShareShiz in forum Site ReviewsReplies: 10Last Post: 2nd Sep 2010, 04:54 AM -
[linux] Uploading to FileServe via curl
By Snell in forum Tutorials and GuidesReplies: 0Last Post: 19th Jun 2010, 12:52 PM
themaCreator - create posts from...
Version 3.18 released. Open older version (or...