getState('yaamp-deposit'); echo "refresh
"; //////////////////////////////////////////////////////////////////////////////////////////////////////// $list = getdbolist('db_rentertxs', "1 order by time desc limit 10"); if(count($list) == 0) return; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach($list as $tx) { $d = datetoa2($tx->time); $amount = bitcoinvaluetoa($tx->amount); $renter = getdbo('db_renters', $tx->renterid); if(!$renter) continue; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if(strlen($tx->tx) > 32) { $tx_show = substr($tx->tx, 0, 36).'...'; $txurl = "https://blockchain.info/tx/$tx->tx"; echo ""; } else echo ""; echo ""; } echo "
IDAddressTimeTypeAmountTx
$renter->id$renter->address$d ago$tx->type$amount$tx_show$tx->tx

"; ///////////////////////////////////////////////////////////////////////////////////////////////////////// echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $list = getdbolist('db_renters', "balance>0 order by balance desc"); foreach($list as $renter) { $count = dboscalar("select count(*) from jobs where renterid=$renter->id"); $active = dboscalar("select count(*) from jobs where renterid=$renter->id and active"); if($deposit == $renter->address) echo ""; else echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
RenterAddressEmailSpentBalanceUnconfirmedJobsActive
$renter->id$renter->address$renter->email$renter->spent$renter->balance$renter->unconfirmed$count$active
"; ///////////////////////////////////////////////////////////////////////////// echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $list = getdbolist('db_jobs', "ready"); foreach($list as $job) { $hashrate = yaamp_job_rate($job->id); $hashrate = $hashrate? Itoa2($hashrate).'h/s': ''; $speed = Itoa2($job->speed).'h/s'; $renter = getdbo('db_renters', $job->renterid); if(!$renter) continue; if($deposit == $renter->address) echo ""; else echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
RenterJobAddressAlgoHostMax PriceMax HashCurrent HashDifficultyReadyActive
$job->renterid$job->id$renter->address$job->algo$job->host:$job->port$job->price$speed$hashrate$job->difficulty$job->ready$job->active
"; echo "









";