Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $apikey = 'apikeyhere';
- $xx = 'http://ultra.nitro.org/index.php?page=api&action=getuserstatus&api_key='.$apikey;
- $yy = 'http://ultra.nitro.org/index.php?page=api&action=getuserbalance&api_key='.$apikey;
- $zz = 'http://ultra.nitro.org/index.php?page=api&action=getuserworkers&api_key='.$apikey;
- $xz = 'http://ultra.nitro.org/index.php?page=api&action=getusertransactions&api_key='.$apikey;
- $coin_name = 'UTC';
- $json = file_get_contents($xx);
- $json1 = file_get_contents($yy);
- $json2 = file_get_contents($zz);
- $nfo1 = json_decode($json,true);
- $nfo2 = json_decode($json1,true);
- $nfo3 = json_decode($json2,true);
- echo '<meta http-equiv="refresh" content="600">';
- echo "\r\nBalance : <font color= 'blue'><b>".$nfo2["getuserbalance"]["data"]["confirmed"]." $coin_name</b></font></br>\r\n";
- echo "\r\nNot Cofirmed Balance : <font color= 'red'><b>".$nfo2["getuserbalance"]["data"]["unconfirmed"]." $coin_name</b></font></br>\r\n";
- echo "Total hashrate : <font color= 'green'><b>".$nfo1["getuserstatus"]["data"]["hashrate"]." KH/s</b></font></br>\r\n";
- echo "Sharerate : <font color= 'green'><b>".$nfo1["getuserstatus"]["data"]["sharerate"]." S/s</b></font></br>\r\n";
- echo "Unpaid shares : <b>".$nfo1["getuserstatus"]["data"]["shares"]["valid"]."</b></br>\r\n";
- //echo "Round estimate : $nfo[round_estimate] $coin_name</br>\r\n";
- //echo "Payout history : $nfo[payout_history]</br>\r\n";
- $wks = $nfo3["getuserworkers"]["data"];
- while ($worker = current($wks)) {
- if($worker["hashrate"] > 0){
- $wknfo = "is online - hashrate : <b>$worker[hashrate] KH/s</b>";
- $color = "green";
- } else {
- $wknfo = "is offline";
- $color = "red";
- }
- echo "<font color= '$color'>Worker <b>". $worker[username]."</b> $wknfo</font><br />\r\n";
- next($wks);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement