mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -05:00
soft_api allows to bypass blockwords
This commit is contained in:
parent
2c17ac8e24
commit
f03278fb7b
@ -39,11 +39,8 @@ class Api extends Main
|
||||
|
||||
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') && config_item('soft_api') == false)
|
||||
{
|
||||
die("Invalid API key\n");
|
||||
}
|
||||
@ -77,9 +74,19 @@ class Api extends Main
|
||||
die("You are not allowed to paste\n");
|
||||
}
|
||||
|
||||
if (!$this->_blockwords_check())
|
||||
if (config_item('soft_api') == true && (config_item('apikey') == $this->input->get('apikey')))
|
||||
{
|
||||
die("Your paste contains blocked words\n");
|
||||
|
||||
//pass
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (!$this->_blockwords_check())
|
||||
{
|
||||
die("Your paste contains blocked words\n");
|
||||
}
|
||||
}
|
||||
|
||||
//create paste
|
||||
|
Loading…
x
Reference in New Issue
Block a user