base64download.php to access the files from any server running php.
<?php require_once 'cleanstring.php'; $user = $_GET['user']; $permlink = $_GET['permlink']; $jsid = rand(1,90); $content = "{ \"id\":\"$jsid\", \"jsonrpc\":\"2.0\", \"method\":\"get_content\", \"params\":[\"$user\",\"$permlink\"] }"; <p dir="auto"><span>$url = "<a href="http://steemd.privex.io/" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">http://steemd.privex.io/"; <p dir="auto">$curl = curl_init($url);<br /> curl_setopt($curl, CURLOPT_HEADER, false);<br /> curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);<br /> curl_setopt($curl, CURLOPT_HTTPHEADER,<br /> array("Content-type: application/json"));<br /> curl_setopt($curl, CURLOPT_POST, true);<br /> curl_setopt($curl, CURLOPT_POSTFIELDS, $content); <p dir="auto">$json_response = curl_exec($curl); <p dir="auto">$status = curl_getinfo($curl, CURLINFO_HTTP_CODE); <p dir="auto">if ( $status != 200 ) {<br /><br /> $curl = curl_init($url);<br /> curl_setopt($curl, CURLOPT_HEADER, false);<br /> curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);<br /> curl_setopt($curl, CURLOPT_HTTPHEADER,<br /> array("Content-type: application/json"));<br /> curl_setopt($curl, CURLOPT_POST, true);<br /> curl_setopt($curl, CURLOPT_POSTFIELDS, $content);<span> $url = "<a href="https://api.steemit.com/" target="_blank" rel="nofollow noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://api.steemit.com/"; <pre><code>$json_response = curl_exec($curl); $status = curl_getinfo($curl, CURLINFO_HTTP_CODE); if ( $status != 200 ) { die("No Steem Api response, please try again."); } <p dir="auto">} <p dir="auto">curl_close($curl); <p dir="auto">$response = json_decode($json_response, true); <p dir="auto">$compbody = $response['result']['body']; <p dir="auto">$teile = explode("base64filename", $compbody); <p dir="auto">$filename = $teile['1'];<br /> $filebodyprep = $teile['2'];<br /> $teile = explode("base64file",$filebodyprep);<br /> $filebody = $teile['1'];<br /> $filebody = base64_decode($filebody);<br /> $filename = removespace($filename); <p dir="auto">$tempdir = sys_get_temp_dir();<br /> $tmpName = "$tempdir/$filename"; <p dir="auto">$file = fopen($tmpName, 'w'); <p dir="auto">fwrite($file, $filebody);<br /> fclose($file); <p dir="auto">header('Content-Description: File Transfer');<br /> header('Content-Type: application/octet-stream');<br /> header('Content-Disposition: attachment; filename="'.basename($tmpName).'"');<br /> header('Pragma: public');<br /> header('Content-Length: ' . filesize($tmpName));<br /> readfile($tmpName); <p dir="auto">ob_clean();<br /> flush();<br /> unlink($tmpName);<br /> //decode test end <p dir="auto">?>
Congratulations @filebot! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :
<table><tr><td><span><img src="https://images.hive.blog/768x0/https://steemitimages.com/60x70/http://steemitboard.com/@filebot/posts.png?201902140736" srcset="https://images.hive.blog/768x0/https://steemitimages.com/60x70/http://steemitboard.com/@filebot/posts.png?201902140736 1x, https://images.hive.blog/1536x0/https://steemitimages.com/60x70/http://steemitboard.com/@filebot/posts.png?201902140736 2x" /><td>You published more than 10 posts. Your next target is to reach 20 posts. <p dir="auto"><sub><em><a href="https://steemitboard.com/@filebot" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Click here to view your Board<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto">To support your work, I also upvoted your post! <p dir="auto"><strong><span>Do not miss the last post from <a href="/@steemitboard">@steemitboard: <table><tr><td><a href="https://steemit.com/valentine/@steemitboard/valentine-challenge-love-is-in-the-air" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link"><img src="https://images.hive.blog/768x0/https://steemitimages.com/64x128/http://i.cubeupload.com/LvDzr5.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/64x128/http://i.cubeupload.com/LvDzr5.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/64x128/http://i.cubeupload.com/LvDzr5.png 2x" /><td><a href="https://steemit.com/valentine/@steemitboard/valentine-challenge-love-is-in-the-air" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Valentine challenge - Love is in the air! <blockquote> <p dir="auto">Support <a href="https://steemit.com/@steemitboard" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">SteemitBoard's project! <strong><a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Vote for its witness and <strong>get one more award!