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

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1.     
    #1
    Member
    Website's:
    fileservedownload.net

    Default 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

    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($chCURLOPT_URL$lurl);
    curl_setopt($chCURLOPT_POST1);
    curl_setopt($chCURLOPT_POSTFIELDS$post);
    curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
    curl_setopt($chCURLOPT_UNRESTRICTED_AUTHTRUE);
    curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
    curl_setopt($chCURLOPT_COOKIEJAR,$cookieFile);
    $result curl_exec ($ch);
    curl_close ($ch);
    //echo $result;


    $purl "http://bitshare.com/";
    $ch1 curl_init();
    curl_setopt($ch1CURLOPT_URL,$purl);
    curl_setopt($ch1CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch1CURLOPT_HEADERfalse);
    curl_setopt($ch1CURLOPT_FOLLOWLOCATION1);
    curl_setopt($ch1CURLOPT_COOKIEFILE,$cookieFile);
    $result1curl_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($ch1CURLOPT_URL,$upurl);
    curl_setopt($ch1CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch1CURLOPT_POST1);
    curl_setopt($ch1CURLOPT_POSTFIELDS$fpost);
    curl_setopt($ch1CURLOPT_HEADERTRUE);
    curl_setopt($ch1CURLOPT_FOLLOWLOCATION1);
    curl_setopt($ch1CURLOPT_COOKIEFILE,$cookieFile);
    curl_setopt($ch1CURLOPT_HTTPHEADER, array('Expect:')); 
    $result1curl_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

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
    its invald function!

  4.     
    #3
    Member
    Website's:
    fileservedownload.net

  5.     
    #4
    Member
    Website's:
    WarezRocker.info Share4U.org Imdb.WarezRocker.info DownTurko.org Host-Palace.com HeroTurko.pro
    i 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.

  6.     
    #5
    Member
    Website's:
    fileservedownload.net
    really thanks...

    if you want i can will give you other parts of script...if you cant do without it...

    really thanks

  7.     
    #6
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Use 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($chCURLOPT_POST1);
    curl_setopt($chCURLOPT_POSTFIELDS$post);
    curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
    $result curl_exec ($ch);
    curl_close ($ch);

    return 
    $result;

    }
    ?>
    Usage:
    PHP Code: 
    echo upBitShare('username''password''filepath'); 
    If you wanted to anonymously upload, then send username / password as empty or a wrong combination.

  8.     
    #7
    Member
    Website'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

  9.     
    #8
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    That 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')); 

  10.     
    #9
    Member
    Website's:
    fileservedownload.net
    i dont know

    i try to see the other plugins...i see that use $value for variable...but pgp is arab for me

  11.     
    #10
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Variable 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($chCURLOPT_POST1);
    curl_setopt($chCURLOPT_POSTFIELDS$post);
    curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
    $result curl_exec ($ch);
    curl_close ($ch);

    return 
    $result;


    It would return a error with File doesn't exists if the path is wrong.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Remote Upload bitshare
    By xaineez in forum File Host Discussion
    Replies: 2
    Last Post: 14th May 2012, 03:13 PM
  2. Remote upload from bitshare to...?
    By Quacking in forum File Host Discussion
    Replies: 0
    Last Post: 25th Mar 2012, 12:16 PM
  3. Replies: 4
    Last Post: 13th Mar 2012, 09:33 AM
  4. Bitshare RL Upload plugin
    By lukip006 in forum Technical Help Desk Support
    Replies: 3
    Last Post: 16th Apr 2011, 08:32 AM
  5. [Hiring] Bitshare curl upload script? Any Coder here?
    By automan in forum Completed Transactions
    Replies: 2
    Last Post: 16th Mar 2011, 07:44 PM

Tags for this Thread

BE SOCIAL