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

Results 1 to 10 of 45

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    tufos.net
    My scripts are working fine since May without doing any kinda of change
    No sborg/rapidleech btw.
    aishamontreal Reviewed by aishamontreal on . Fileserve cURL changes Has anyone noticed that when using cURL to upload to fileserve it doesn't work anymore? I have the PHPuploader setup but now it isn't working all of a sudden Any help will be greatly appreciated :) Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    PasteBot.appspot.com
    Quote Originally Posted by ciaociao4 View Post
    function 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
    Check out this by mraza: http://paste2.org/p/1572481



    Quote Originally Posted by aishamontreal View Post
    My scripts are working fine since May without doing any kinda of change
    No sborg/rapidleech btw.
    Your script probably uploads via FTP

  4.     
    #3
    Member
    Website's:
    fileservedownload.net
    thanks al lot

    i had try to do some change, looking your link...but i' m not able

    looking for someone help me ($ np)

    thanks

  5.     
    #4
    Member
    Website's:
    tufos.net
    Quote Originally Posted by ajinkya9 View Post
    Your script probably uploads via FTP
    Nope, it uploads via web.

    Quote Originally Posted by V3g3t4 View Post
    I 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($chCURLOPT_URL"http://fileserve.com/login.php");
                
    curl_setopt($chCURLOPT_POST1);
                
    curl_setopt($chCURLOPT_POSTFIELDS$post);
                
    curl_setopt($chCURLOPT_HEADER1);
                
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
                
    curl_setopt($chCURLOPT_UNRESTRICTED_AUTH1);
                
    curl_setopt($chCURLOPT_REFERER"http://www.fileserve.com/");
                
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
                
    curl_setopt($chCURLOPT_USERAGENT"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
                
    curl_setopt($chCURLOPT_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;
            } 
    Random number generator and Curl functions:

    PHP Code: 
     function rndNum($lg) {
                
    $str "0123456789";
                for (
    $i 1$i<=$lg$i++) {
                    
    $st rand(09);
                    
    $pnt substr($str$st1);
                }
                return 
    $pnt;
            }

            function 
    postHost($link$postfields ''$cookie '') {
                
    $ch curl_init($link);
                
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
                
    curl_setopt($chCURLOPT_HEADER1);
                
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
                
    curl_setopt($chCURLOPT_REFERER'http://www.fileserve.com/');
                
    curl_setopt($chCURLOPT_HTTPHEADER, array('Expect:'));
                if (
    $postfields) {
                    
    curl_setopt($chCURLOPT_POST1);
                    
    curl_setopt($chCURLOPT_POSTFIELDS$postfields);
                }
                if (
    $cookie) {
                    
    curl_setopt($chCURLOPT_COOKIE$cookie); 
                    
    curl_setopt($chCURLOPT_COOKIEJAR$cookie);
                    
    curl_setopt($chCURLOPT_COOKIEFILE$cookie);
                }
                
    $page curl_exec($ch);
                return(
    $page);
                
    curl_close($ch);
            } 
    I hope it works



    Credits: Modded mraza's codes
    Awesome work v3g3t4, it obvious will help some people

  6.     
    #5
    Member
    Website's:
    fileservedownload.net
    v3g3t4

    you are my hero

    THANKS

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Premium link generator for fileserve using cURL - error
    By nummi in forum Web Development Area
    Replies: 1
    Last Post: 12th Sep 2011, 07:18 PM
  2. Replies: 12
    Last Post: 25th Jun 2011, 08:35 AM
  3. How to remote upload from Fileserve to Fileserve?
    By azertred in forum File Host Discussion
    Replies: 10
    Last Post: 29th Oct 2010, 09:27 AM
  4. FileServe-Warez and FileServe-Porn
    By ShareShiz in forum Site Reviews
    Replies: 10
    Last Post: 2nd Sep 2010, 04:54 AM
  5. [linux] Uploading to FileServe via curl
    By Snell in forum Tutorials and Guides
    Replies: 0
    Last Post: 19th Jun 2010, 12:52 PM

Tags for this Thread

BE SOCIAL