if (!$password || !buckys_validate_password($password, $user['password'])) { buckys_redirect("/wallet.php", MSG_CURRENT_PASSWORD_NOT_CORRECT, MSG_TYPE_ERROR); } if (!$toAddress) { buckys_redirect("/wallet.php", MSG_ENTER_BITCOINS_ADDRESS_OF_RECIPIENT, MSG_TYPE_ERROR); } if (!$amount || $amount <= 0) { buckys_redirect("/wallet.php", MSG_INVALID_BITCOIN_AMOUNT, MSG_TYPE_ERROR); } if (!$is_error) { $bitcoinClass->sendBitcoin($userID, $toAddress, $amount); } buckys_redirect("/wallet.php"); } $page = isset($_GET['page']) ? $_GET['page'] : 1; list($totalCount, $bitcoinBalance, $transactions) = $bitcoinClass->getTransactions($userID, $page, $bitcoinClass->COUNT_PER_PAGE); if (!$bitcoinBalance) { $bitcoinBalance = 0; } //Init Pagination Class $pagination = new Pagination($totalCount, $bitcoinClass->COUNT_PER_PAGE, $page); $page = $pagination->getCurrentPage(); //Getting Balance //$bitcoinBalance = $bitcoinClass->getWalletBalance($bitcoinInfo['bitcoin_guid'], buckys_decrypt($bitcoinInfo['bitcoin_password'])); buckys_enqueue_stylesheet('account.css'); buckys_enqueue_stylesheet('credits.css'); buckys_enqueue_javascript('wallet.js'); $TNB_GLOBALS['content'] = 'wallet'; $TNB_GLOBALS['title'] = "Wallet - " . TNB_SITE_NAME; $TNB_GLOBALS['payerID'] = $userID; $TNB_GLOBALS['meta'] = '<meta http-equiv="Pragma" content="no-cache">