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

Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45
  1.     
    #21
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    You 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

  2.     
    #22
    Member
    Website's:
    fileservedownload.net
    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

  3.   Sponsored Links

  4.     
    #23
    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

  5.     
    #24
    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

  6.     
    #25
    Member
    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.

  7.     
    #26
    It 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.

  8.     
    #27
    Member
    Website's:
    sborg.us
    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

    V3g3ta | Halcyon | Abhi

  9.     
    #28
    Member
    Quote Originally Posted by Lifetalk View Post
    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.
    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($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_COOKIEJAR$cookie);
            
    curl_setopt($chCURLOPT_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($chCURLOPT_URL$link);
            
    curl_setopt($chCURLOPT_FILE$handle);
            if (
    $fscookie)
            {
                
    curl_setopt($chCURLOPT_COOKIEFILE$fscookie);
            }
            if (
    $hfcookie)
            {
                
    curl_setopt($chCURLOPT_COOKIEFILE$hfcookie);
            }
            
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
             
    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');
            
            
    curl_exec($ch);
            
    curl_close($ch);
            
    fclose($handle);
        }
        else
        {
            echo 
    "<br />Could not download $link. Is your 'files' folder chmodded to 777?";
            exit();
        }


  10.     
    #29
    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

  11.     
    #30
    Member
    Website's:
    fileservedownload.net
    v3g3t4

    you are my hero

    THANKS

Page 3 of 5 FirstFirst 12345 LastLast

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