[eluser]Nonox[/eluser]
Thanks for the response.
For clarification, I'm using cron job bootstrapper too, and I'm running the script in this way:
Code:
shell$ /opt/lampp/bin/php cron.php --run=/script/test/run/uri_secret
In the controller I have a function that check the access, I call the function in this way:
Code:
$this->_checkAccessProcess(php_sapi_name(),$uri_secret);
Code:
function _checkAccessProcess($request=null,$uri_secret=null)
{
if ( strtolower($request) != "cli" || $clave != $CI->config->item("secret_word") )
{
show_404();
}
else
{
return true;
}
}
If somebody have a better way please tell me.
Thanks.
Nonox