Results 1 to 1 of 1
-
13th Jul 2011, 12:03 AM #1OPMemberWebsite's:
scrls.co.ukWupload plugin PHP Uploader
Has anyone got a wupload code for the php uploader vanilla ?
I had a go at coding it myself but wupload has popup box's for the upload and i dont know how to do that part.
Thanks
Here is the fileserve one on the php uploader:
PHP Code:function uploadtofs($filelocation, $ufscookie)
{
$page = fscurl("http://www.fileserve.com/", "", $ufscookie);
preg_match('#id="serverId" value="(.*)" />#', $page, $match);
preg_match('#id="userId" value="(.*)" />#', $page, $match1);
preg_match('#id="uploadHostURL" value="(.*)"/>#', $page, $match2);
$serverId = $match[1];
$userId = $match1[1];
$uploadHostURL = $match2[1];
$page = fscurl("http://fileserve.com/upload-track.php", "", $ufscookie);
preg_match('#{"sessionId":"(.*)"}#', $page, $match);
$uploadSessionId = $match[1];
$postfields = array();
$postfields['affiliateId'] = "";
$postfields['subAffiliateId'] = "";
$postfields['landingId'] = "";
$postfields['file'] = "@$filelocation";
$postfields['serverId'] = $serverId;
$postfields['userId'] = $userId;
$postfields['uploadSessionId'] = $uploadSessionId;
$postfields['uploadHostURL'] = $uploadHostURL;
fscurl("http://$uploadHostURL/upload/upload.php?X-Progress-ID=$uploadSessionId", $postfields, $ufscookie);
$postfields = array();
$postfields['uploadSessionId[]'] = $uploadSessionId;
$page = fscurl("http://www.fileserve.com/upload-result.php", $postfields, $ufscookie);
preg_match_all('#<textarea name="textarea2" id="textarea1" rows="3" cols="60" width="500px" readonly >(.*)#', $page, $match);
$downloadlink = trim($match[1][0]);
return $downloadlink;
}
PHP Code:if (in_array("fileserve", $hosts))
{
echo '<br />Uplaoding files to Fileserve .... <br />';
flush();
if (file_exists($ufscookie))
{
unlink($ufscookie);
}
curl($fslogin, $ufspostdata, $ufscookie);
foreach ($filelist as $file)
{
$filelocation = $filespath . $file;
$downloadlink = uploadtofs($filelocation, $ufscookie);
echo '<strong>' . $downloadlink . '</strong>';
echo '<br />';
flush();
}
}
_brazzO Reviewed by _brazzO on . Wupload plugin PHP Uploader Has anyone got a wupload code for the php uploader vanilla ? I had a go at coding it myself but wupload has popup box's for the upload and i dont know how to do that part. Thanks Here is the fileserve one on the php uploader: function uploadtofs($filelocation, $ufscookie) { $page = fscurl("http://www.fileserve.com/", "", $ufscookie); preg_match('#id="serverId" value="(.*)" />#', $page, $match); preg_match('#id="userId" value="(.*)" />#', $page, $match1); Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
wupload upload plugin asap
By jokerhacker in forum Web Development AreaReplies: 18Last Post: 28th Oct 2011, 02:50 PM -
[Wupload] FTP or Zoom Uploader?
By darkpichu in forum File Host DiscussionReplies: 8Last Post: 30th Aug 2011, 10:27 AM -
any one has wupload & filesonic plugin
By neel in forum File Host DiscussionReplies: 4Last Post: 18th Jul 2011, 06:12 PM -
[Rapidleech] Working Wupload Plugin (Req...)
By Mr.WT in forum Web Application/Script SupportReplies: 0Last Post: 13th Jun 2011, 08:11 PM -
wupload and zoom uploader
By zainbintariq in forum File Host DiscussionReplies: 5Last Post: 30th May 2011, 04:51 AM
themaCreator - create posts from...
Version 3.51 released. Open older version (or...