mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-29 23:11:08 -05:00
soft api
This commit is contained in:
parent
2022ddab9c
commit
2c17ac8e24
@ -178,6 +178,19 @@ $config['per_page'] = 15;
|
|||||||
**/
|
**/
|
||||||
$config['apikey'] = '';
|
$config['apikey'] = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Soft API
|
||||||
|
*
|
||||||
|
* When set to true, allow interaction:
|
||||||
|
* without apikey: badword-check applies
|
||||||
|
* with apikey: badwords are ignored
|
||||||
|
*
|
||||||
|
* this is useful to maintain a restrictive blocklist
|
||||||
|
* for spammers and bypass it using the apikey.
|
||||||
|
*
|
||||||
|
**/
|
||||||
|
$config['soft_api'] = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Anti spam
|
* Anti spam
|
||||||
*
|
*
|
||||||
|
@ -40,6 +40,9 @@ class Api extends Main
|
|||||||
function create()
|
function create()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// if config soft_api is set, allow interaction:
|
||||||
|
// without api_key: use blockwords
|
||||||
|
// with api_key: pass blockwords
|
||||||
if (config_item('apikey') != $this->input->get('apikey'))
|
if (config_item('apikey') != $this->input->get('apikey'))
|
||||||
{
|
{
|
||||||
die("Invalid API key\n");
|
die("Invalid API key\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user