isActive(); // Check user token $user_id = $api->checkAccess($user->checkApiKey($_REQUEST['api_key']), @$_REQUEST['id']); // Check how many blocks to fetch $setting->getValue('statistics_block_count') ? $iLimit = $setting->getValue('statistics_block_count') : $iLimit = 20; // Output JSON format echo $api->get_json($statistics->getBlocksFound($iLimit)); // Supress master template $supress_master = 1; ?>