18 lines
376 B
PHP
18 lines
376 B
PHP
<?php
|
|
|
|
// Make sure we are called from index.php
|
|
if (!defined('SECURITY')) die('Hacking attempt');
|
|
|
|
// Check if the API is activated
|
|
$api->isActive();
|
|
|
|
// Check user token
|
|
$id = $user->checkApiKey($_REQUEST['api_key']);
|
|
|
|
// Output JSON format
|
|
echo json_encode(array('getpoolhashrate' => $statistics->getCurrentHashrate()));
|
|
|
|
// Supress master template
|
|
$supress_master = 1;
|
|
?>
|