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!