Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- function getdata($url)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- return curl_exec($ch);
- curl_close($ch);
- }
- $a = json_decode(getdata("http://198.23.134.72:9327/local_stats"), true);
- $A = json_decode(getdata("http://198.23.134.72:9327/current_payouts"), true);
- $c = 0;
- $client = $a['miner_hash_rates'][$ltcaddr];
- $shares = $a['shares_total'];
- $speed = round(($client / 1000), 3);
- foreach ($a['miner_hash_rates'] as $key => $value) {
- $c += round(($value / 1000), 3);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement