Beispiel #1
0
</head>

<body>
<header id="header">
    <div id="top_right">
        <?php 
include 'login.php';
$apiKey = Session::getApiKey();
//API Key
$pin = Session::getPin();
//Pin
$handler = new Handler($apiKey, $pin);
if (Session::isLoggedIn()) {
    if (isset($_POST['btn_newAddress'])) {
        //Create new address if button active
        $handler->setAddress();
    }
}
?>
    </div>
    <div>
        <div style="text-align: center">
            <h2> <?php 
if (Session::isLoggedIn()) {
    echo $handler->getBalance();
    //get ballance
    ?>
                BT<br>
                <small>Balance</small>
            </h2>
            <form method='POST'><p><input class="btn btn-default" type='submit' name='btn_sendBT' value='sendBT'/></p>