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

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1.     
    #11
    Member
    Website's:
    scrls.co.uk
    I cant seem to sort the full fileserve and also create a wupload one to work aswell, i will keep trying but they are the only problems i am encountering.

  2.   Sponsored Links

  3.     
    #12
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Quote Originally Posted by _brazzO View Post
    I cant seem to sort the full fileserve and also create a wupload one to work aswell, i will keep trying but they are the only problems i am encountering.
    Better check the post by v3g3ta in your thread:

    To use it with phpuploader:

    Open includes/functions.php

    Replace existing "fscurl" function with:

    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_COOKIE$cookie); 
                
    curl_setopt($chCURLOPT_COOKIEJAR$cookie);
                
    curl_setopt($chCURLOPT_COOKIEFILE$cookie);
            }
            
    $page curl_exec($ch);
            return(
    $page);
            
    curl_close($ch);

    Add this function somewhere in the file:

    PHP Code: 
     function rndNum($lg) {
                
    $str "0123456789";
                for (
    $i 1$i<=$lg$i++) {
                    
    $st rand(09);
                    
    $pnt substr($str$st1);
                }
                return 
    $pnt;
            } 
    </span></span>And replace "uploadtofs" with this:
    PHP Code: 
    function uploadtofs($filelocation$ufsuser$ufspass)
    {
         
    $post = array();
         
    $post["autoLogin"] = true;
         
    $post["loginUserName"] = $ufsuser;
         
    $post["loginUserPassword"] = $ufspass;
         
    $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 fscurl("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 fscurl($server "?callback=jsonp" $rnd "&_=" $rnd_id""$doughnut);

         
    preg_match('#sessionId\:\'(.*)\'}#'$page$match);
         
    $uploadSessionId $match[1].'/';

         
    $postfields = array();
         
    $postfields['file'] = "@$filelocation";
         
    $page fscurl($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;

    All from the post linked above but spoon-feeded

    Edit: You need to update the function "uploadtofs" in plugins/uploadhosts.php
    1. Filelocation - leave it as it was
    2. Username = usually $ufsuser
    3. Password = usually $ufspass


    It works!

  4.     
    #13
    Member
    Website's:
    scrls.co.uk
    damn, i was doing that but i forgot to change the variable lol .. thanks for that mate +1

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. any update for phpuploader??
    By mr-cracker in forum General Discussion
    Replies: 2
    Last Post: 27th Apr 2011, 09:34 PM
  2. phpUploader v2.1 Vanilla
    By djakil in forum Webmaster Discussion
    Replies: 7
    Last Post: 29th Dec 2010, 10:47 AM
  3. [Selling] phpUploader 2.5 ($ 4)
    By ShareShiz in forum Completed Transactions
    Replies: 18
    Last Post: 10th Oct 2010, 09:02 AM
  4. [WTB] VPS for TF and phpUploader
    By t3od0r in forum Hosting Discussion
    Replies: 5
    Last Post: 29th Sep 2010, 11:17 AM
  5. phpUploader or RapidLeech or RDP?
    By iFlames in forum Polling Plaza
    Replies: 28
    Last Post: 19th Sep 2010, 02:22 PM

Tags for this Thread

BE SOCIAL