mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
ability to disable the API
This commit is contained in:
parent
7a5a1fac3f
commit
5b288c6511
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user