Example #1
0
    echo "[DEBUG TURNED ON, SHOWING ERRORS!]";
    ini_set('display_errors', 1);
    ini_set('display_startup_errors', 1);
    error_reporting(-1);
} else {
}
//END DEBUG
session_start();
include "polApi.php";
include_once "config.php";
require_once 'jsonRPCClient.php';
$bitcoin = new jsonRPCClient("http://{$rpcuser}:{$rpcpass}@{$rpcserver}:{$rpcport}/");
//print_r($bitcoin->getinfo());
//echo "\n";
$blockcount = $bitcoin->getblockcount();
$daemonConnections = $bitcoin->getconnectioncount();
$daemonBlockCount = $bitcoin->getblockcount();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>LimeCart v0.1</title>
<?php 
echo "<link href=\"style/{$styleSheet}\" rel=\"stylesheet\" type=\"text/css\">";
?>
</head>

<body>

<div id="products-wrapper">