Results 1 to 3 of 3
-
18th Oct 2011, 03:49 AM #1OPMemberWebsite's:
fileservedownload.netfilesonic upload script....
then....i have this php...
it work
it upload file in filesonic
but it not log in !!!
then the file isn associated to my account...
can someone help me?
PHP Code:function upFSC($value, $username, $password){
//$page = postHost("http://www.filesonic.in/user/login", "email=$username&redirect=%2F&password=$password&rememberMe=1","");
$post = array();
$post["email"] = $username;
$post["password"] = $password;
$post["rememberMe"] = 1;
$post["redirect"] = '';
$post["controls-submit"] = 'submit';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://filesonic.com/user/login");
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.filesonic.com");
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
$page = curl_exec ($ch);
curl_close ($ch);
echo $page;
$tmparr=explode(";", GetCookies($page));
$cookies=$tmparr[0]."; ".$tmparr[3]."; ".$tmparr[4]."; ".$tmparr[5]."; ".$tmparr[6]."; ".$tmparr[7]."; ".$tmparr[8];
$sessID = cut_str($cookies, 'PHPSESSID=', ';');
//$page = postHost("http://www.filesonic.com/", "", "$cookies");
$originalAction = cut_str($page, 'class="webUpload" action="', '" method');
$millisec = round((microtime(true) * 1000.0));
$random = rand(0,90000);
$uploadIdentifier = 'upload_'.$millisec.'_'.$sessID.'_'.$random;
$url = $originalAction . '/?X-Progress-ID=' . $uploadIdentifier;
$url = 'http://s210.filesonic.com' . '/?X-Progress-ID=' . $uploadIdentifier;
$post = array('upload[]' => "@$value");
$uploadFile = postHost($url, $post, $cookies);
$result = postHost('http://www.filesonic.com/upload-completed/upload_'.$millisec.'_'.$sessID.'_'.$random, '', $cookies);
preg_match('/F[0-9]+/', html_entity_decode($result), $match);
if ($match[0]==null){$link=null;}
else{$link = 'http://www.filesonic.com/file/'.str_replace('F','',$match[0])."/".basename($value);}
return $link;
ciaociao4 Reviewed by ciaociao4 on . filesonic upload script.... then....i have this php... it work it upload file in filesonic but it not log in !!! then the file isn associated to my account... can someone help me? Rating: 5
-
18th Oct 2011, 10:35 AM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.inYou can use there api
Or check the wupload example:
You need to only change the siteurl and rest remains same! It should work for filesonic too since script is very much similar
-
18th Oct 2011, 04:52 PM #3OPMemberWebsite's:
fileservedownload.netthanks a lot
i combine this script and now work 100%
thank you
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Remote Upload(FileSonic To FileSonic)
By Gebriel in forum File Host DiscussionReplies: 4Last Post: 21st Nov 2011, 11:24 AM -
Looking for multi upload / mirror upload script
By none in forum Webmaster ResourcesReplies: 14Last Post: 18th Sep 2011, 04:01 PM -
filesonic not pass between them and the fileserve remote file upload to upload the ot
By uvb76 in forum File Host DiscussionReplies: 3Last Post: 28th Apr 2011, 12:28 PM -
Fastest way to remote upload FileSonic to FileSonic?
By derrenbrown in forum File Host DiscussionReplies: 2Last Post: 25th Apr 2011, 04:24 AM -
filesonic off from filesonic function remote upload to filesonic
By uvb76 in forum File Host DiscussionReplies: 4Last Post: 18th Apr 2011, 01:16 PM
themaLeecher - leech and manage...
Version 5.05 released. Open older version (or...