Results 1 to 10 of 19
Hybrid View
-
3rd Apr 2012, 06:20 PM #1OPMemberWebsite's:
fileservedownload.netbitshare upload script
hello
i'm looking for a new host...
i see bitshare and i have this as a part of my script
i try it but... i receive a link...
but this link don't work and give me error for delete-dmca or something else...
the file isnt in my "bitshare filemanager" too
can someone help me?
this is the function
PHP Code:function upBS($value, $username, $password, $client){
$post['user'] = $username;
$post['pass'] = $password;
$post['submit'] = "Login";
$cookieFile = $client.'_BitShare.com.txt';
$lurl = "http://bitshare.com/login.html";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $lurl);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_UNRESTRICTED_AUTH, TRUE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEJAR,$cookieFile);
$result = curl_exec ($ch);
curl_close ($ch);
//echo $result;
$purl = "http://bitshare.com/";
$ch1 = curl_init();
curl_setopt($ch1, CURLOPT_URL,$purl);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch1, CURLOPT_HEADER, false);
curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch1, CURLOPT_COOKIEFILE,$cookieFile);
$result1= curl_exec ($ch1);
curl_close ($ch1);
//echo $result1;
$page = $result1;
preg_match('/<form action="(.*)" id="uploadform" method="post"/', $page, $upurl);
$url_up = trim($upurl[1]);
$progress_key = cut_str($page, '<input type="hidden" name="APC_UPLOAD_PROGRESS" id="progress_key" value="','"/>');
$usergroup_key = cut_str($page, '<input type="hidden" name="APC_UPLOAD_USERGROUP" id="usergroup_key" value="','"/>');
$fpost = array( 'APC_UPLOAD_PROGRESS' => $progress_key,
'APC_UPLOAD_USERGROUP' => $usergroup_key,
'UPLOAD_IDENTIFIER' => $progress_key,
'file[]"; filename="' => '',
'file[]' => "@$value");
$ID = GRC();
$upurl=$url_up.'?X-Progress-ID=undefined'.$ID.'';
$ch1 = curl_init();
curl_setopt($ch1, CURLOPT_URL,$upurl);
curl_setopt($ch1, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch1, CURLOPT_POST, 1);
curl_setopt($ch1, CURLOPT_POSTFIELDS, $fpost);
curl_setopt($ch1, CURLOPT_HEADER, TRUE);
curl_setopt($ch1, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch1, CURLOPT_COOKIEFILE,$cookieFile);
curl_setopt($ch1, CURLOPT_HTTPHEADER, array('Expect:'));
$result1= curl_exec ($ch1);
curl_close ($ch1);
//echo $result1;
preg_match('%http://bitshare.com/files/(.*)%', $result1, $dlink);
preg_match('%http://bitshare.com/delete/(.*)%', $result1, $delink);
//echo ($dlink[0]."<br />".$delink[0]);
return $dlink[0];
}
ciaociao4 Reviewed by ciaociao4 on . bitshare upload script hello i'm looking for a new host... i see bitshare and i have this as a part of my script i try it but... i receive a link... but this link don't work and give me error for delete-dmca or something else... the file isnt in my "bitshare filemanager" too Rating: 5
-
3rd Apr 2012, 06:32 PM #2MemberWebsite's:
WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.proits invald function!
-
3rd Apr 2012, 07:57 PM #3OPMemberWebsite's:
fileservedownload.net
-
3rd Apr 2012, 08:08 PM #4MemberWebsite's:
WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.proi can help you in making but i need time,here its night and 1:38 am now,i need to goto bed,sorry,tomorrow will do for sure,if you will need it then pm me.
-
3rd Apr 2012, 08:35 PM #5OPMemberWebsite's:
fileservedownload.netreally thanks...
if you want i can will give you other parts of script...if you cant do without it...
really thanks
-
4th Apr 2012, 08:49 AM #6Respected MemberWebsite's:
DL4Everything.com Soft2050.inUse Bitshare API: http://bitshare.com/openAPI.html
Edit:
Use this function if wanted to use api, Tested & Working in account
PHP Code:<?php
function upBitShare($username, $password, $filepath) {
// Author: Soft2050
$post = array('user' => $username, 'password' => md5($password));
$result = sCurl('http://bitshare.com/api/openapi/login.php', $post);
$hashkey = str_replace('SUCCESS:', '', $result);
$post = array('action' => 'getFileserver');
$result = sCurl('http://bitshare.com/api/openapi/upload.php', $post);
$url = str_replace('SUCCESS:', '', $result);
$post = array('hashkey' => $hashkey,
'file' => "@$filepath",
'filesize' => filesize($filepath));
$result = sCurl($url, $post);
preg_match('%http://bitshare.com/files/(.*?)\.html%', $result, $downloadlink);
preg_match('%http://bitshare.com/delete/(.*?)\.html%', $result, $deletelink);
return $downloadlink[0];
}
function sCurl($url, $post) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}
?>
PHP Code:echo upBitShare('username', 'password', 'filepath');
-
4th Apr 2012, 10:40 AM #7OPMemberWebsite's:
fileservedownload.net
i take this error
Warning: filesize(): stat failed for P4IteKZD4 in /home/UTL/include/newFunctions1.php on line 445
$post = array('hashkey' => $hashkey,
'file' => "@$filepath",
(445) 'filesize' => filesize($filepath));
P4IteKZD4 is my username
-
4th Apr 2012, 10:45 AM #8Respected MemberWebsite's:
DL4Everything.com Soft2050.inThat error generally occurs when the filepath is wrong. What is $filepath in your function?
Does that file exists? I hope you would be sending absolute path for upload too, Use realpath()
PHP Code:echo upBitShare('username', 'password', realpath('filepath'));
-
4th Apr 2012, 11:09 AM #9OPMemberWebsite's:
fileservedownload.neti dont know
i try to see the other plugins...i see that use $value for variable...but pgp is arab for me
-
4th Apr 2012, 11:26 AM #10Respected MemberWebsite's:
DL4Everything.com Soft2050.inVariable names wont make any difference since they are only used to reference in the script. You can try to replace old one with this :
PHP Code:function upBitShare($username, $password, $filepath) {
// Author: Soft2050
if(!file_exists($filepath)) {
return "Error - File doesn't exists! :(";
}
$post = array('user' => $username, 'password' => md5($password));
$result = sCurl('http://bitshare.com/api/openapi/login.php', $post);
$hashkey = str_replace('SUCCESS:', '', $result);
$post = array('action' => 'getFileserver');
$result = sCurl('http://bitshare.com/api/openapi/upload.php', $post);
$url = str_replace('SUCCESS:', '', $result);
$post = array('hashkey' => $hashkey,
'file' => "@$filepath",
'filesize' => filesize($filepath));
$result = sCurl($url, $post);
preg_match('%http://bitshare.com/files/(.*?)\.html%', $result, $downloadlink);
preg_match('%http://bitshare.com/delete/(.*?)\.html%', $result, $deletelink);
return $downloadlink[0];
}
function sCurl($url, $post) {
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec ($ch);
curl_close ($ch);
return $result;
}
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Remote Upload bitshare
By xaineez in forum File Host DiscussionReplies: 2Last Post: 14th May 2012, 03:13 PM -
Remote upload from bitshare to...?
By Quacking in forum File Host DiscussionReplies: 0Last Post: 25th Mar 2012, 12:16 PM -
Bitshare Remote Upload | RS GIving Faild Uploads | What Do You Use?
By elpirata in forum File Host DiscussionReplies: 4Last Post: 13th Mar 2012, 09:33 AM -
Bitshare RL Upload plugin
By lukip006 in forum Technical Help Desk SupportReplies: 3Last Post: 16th Apr 2011, 08:32 AM -
[Hiring] Bitshare curl upload script? Any Coder here?
By automan in forum Completed TransactionsReplies: 2Last Post: 16th Mar 2011, 07:44 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...