ability to disable the API

This commit is contained in:
Claude 2013-04-26 15:32:29 +02:00
parent 7a5a1fac3f
commit 5b288c6511

View File

@ -18,6 +18,11 @@ class Api extends Main
function __construct()
{
parent::__construct();
if (config_item('disable_api'))
{
die("The API has been disabled\n");
}
}
function index()