PHPEVAL $GLOBALS['emcCONNECT']='http://dnevnik:LopaTa55@localhost:6662';
function emcssl_NVS_req($method,$params='') { if($params=='')$params=array();
global $emcCONNECT;
// Prepares the request
$request = json_encode(array('method' => $method,'params' => $params,'id' => '1'));
// Prepare and performs the HTTP POST
$opts = array ('http' => array (
'method' => 'POST',
'header' => 'Content-type: application/json',
'content' => $request
));
$fp = fopen($emcCONNECT,'rb',false,stream_context_create($opts));
if(!$fp) idie('emcssl_NVS_req: Unable to connect to EMC-wallet');
$rc = json_decode(stream_get_contents($fp), true);
$er = $rc['error'];
if(!is_null($er)) idie('emcssl_NVS_req: Response error: ' . $er);
return $rc['result'];
}
$o=emcssl_NVS_req('getinfo');
unset($o['ip']);
// exec('/usr/local/bin/emercoin_cli getinfo',$o);
$o=h(print_r($o,1)); disabled.