"; echo "
Deposit $renter->address
"; echo "
"; if(!YAAMP_RENTAL) echo "

Renting is temporarily disabled.

"; echo ""; $balance = bitcoinvaluetoa($renter->balance); $unconfirmed = bitcoinvaluetoa($renter->unconfirmed); $spent = bitcoinvaluetoa($renter->spent); echo ""; echo ""; if($renter->balance>=0.001) echo ""; else if($renter->balance>0) echo ""; echo ""; if($unconfirmed > 0) { echo ""; } if(controller()->admin) { echo ""; if($renter->id == 7) { // $balance = $renter->custom_balance - $renter->custom_start; $profit = $renter->custom_start + $renter->custom_balance - $spent; $start = bitcoinvaluetoa($renter->custom_start); $balance = bitcoinvaluetoa($renter->custom_balance); $profit = bitcoinvaluetoa($profit); echo ""; echo ""; echo ""; } } echo "
Deposit Address$renter->address
Balance$balance BTC(withdraw minimum 0.001)
Unconfirmed$unconfirmed BTC"; echo " (waiting for 1 confirmation)"; echo "
Spent$spent BTC
Received$start BTC
Unpaid$balance BTC
Profit$profit BTC

"; echo "Settings"; echo "Logout "; echo "

"; //////////////////////////////////////////////////////////////////////////////////////////////////////// $list = getdbolist('db_rentertxs', "renterid=$renter->id order by time desc limit 5"); if(count($list) == 0) return; echo "
"; echo "
Last 5 transactions $renter->address
"; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; foreach($list as $tx) { $d = datetoa2($tx->time); $amount = bitcoinvaluetoa($tx->amount); 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 "
TimeTypeAmountTx
$d ago$tx->type$amount$tx_show$tx->tx

"; echo "
"; echo "

";