<? // CCN WALLET session_start(); include("functions.php"); $start = timer(); include("config.php"); include("bitcoin.inc"); include("address.inc"); include("recaptchalib.inc"); include ("adscaptchalib.inc"); //captha $publickey = "6LfYSssSAAAAAF2w_TeMklmv-6VWUDhcECr9rWfI"; $privatekey = "6LfYSssSAAAAAPntQz9H0twbsdyk8kQHO_F4mupD"; // init $btclient = new bitcoinClient("http",$btclogin["username"],$btclogin["password"],$btclogin["host"],$btclogin["port"]); $addr = new Address($btclient,$sqlogin); $derp = $btclient->getinfo(); //$this->PDO_Conn = new PDO("mysql:host={$sqllogin['host']};dbname={$sqllogin['dbname']}", $sqllogin['username'], $sqllogin['password']); $dbconn = mysql_connect($sqlogin['host'],$sqlogin['username'],$sqlogin['password']); mysql_select_db($sqlogin['dbname']); // time for pages .. ?>
<?php include "core/header.php"; ?> <div class="container"> <div class="content"> <div class="page-header"> <h1>Server Information <small>Debugging for admins...</small></h1> </div> <div class="row"> <div class="span10"> <?php include "core/bitcoin.inc"; $btclient = new bitcoinClient("http", "root", "qwerty", "localhost", "9332"); switch ($_GET['debug']) { case "enable": setcookie("debug", 1, time() + 3600); echo '<div class="alert-message error" data-alert="alert"><a class="close" onclick="\\$().alert()" href="#">×</a><p>Debugging enabled</p></div>'; break; case "disable": setcookie("debug", 0, time() - 3600); echo '<div class="alert-message error" data-alert="alert"><a class="close" onclick="\\$().alert()" href="#">×</a><p>Debugging disabled</p></div>'; } $derp = $btclient->getinfo(); echo '<h3>Litecoind statistics</h3> <table class=\'zebra-striped\'> <tr><td>Server balance total: </td><td>' . $derp['balance'] . '</td></tr> <tr><td>Server block count: </td><td>' . $derp['blocks'] . '</td></tr> <tr><td>Server connection count: </td><td>' . $derp['connections'] . '</td></tr> <tr><td>Server balance recieved: </td><td>' . $btclient->getreceivedbyaccount('server') . '</td></tr>