thanks.
can you show me a link where this rule is written? what does 'hosted script' exactly mean?
Buyer: Hi, I need a upload script.
Seller: I can do it.
Mod: OMGWTF, YOU MAD, NOT ALLOWED
Buyer: I want upload script (+vps)
sBorg, RL owner: Sure, I have just the right thing for you.
Ndoy: Welcome to WJ, Enjoy your Stay
Buyer: Thanks, transaction completed.
Better check the post by v3g3ta in your thread: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.
To use it with phpuploader:
function fscurl($link, $postfields = '', $cookie = '')
{
$ch = curl_init($link);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_REFERER, 'http://www.fileserve.com/');
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
if ($postfields) {
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
}
if ($cookie) {
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
}
$page = curl_exec($ch);
return($page);
curl_close($ch);
}
function rndNum($lg) {
$str = "0123456789";
for ($i = 1; $i<=$lg; $i++) {
$st = rand(0, 9);
$pnt = substr($str, $st, 1);
}
return $pnt;
}
function uploadtofs($filelocation, $ufsuser, $ufspass)
{
$post = array();
$post["autoLogin"] = true;
$post["loginUserName"] = $ufsuser;
$post["loginUserPassword"] = $ufspass;
$post["loginFormSubmit"] = "LOGIN";
$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/");
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:'));
$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;
}