PHP CLI - rediret to login
Posted: Mon Apr 19, 2021 12:41 pm
Hi Everyone
i need to start specific ADMIN scripts (where i include also the application_top.php) and i found out, that the cli redirects mit alway to login (as i do not have a admin session in the php commandline)
what would be the nicest way to workarround the session check? (of course i could not include the application_top or i could make a if($_GET['php']=="cli" thann don't redirect, but i don't like to change core and i don't like to make security risks)
thank you for any helps,..
i need to start specific ADMIN scripts (where i include also the application_top.php) and i found out, that the cli redirects mit alway to login (as i do not have a admin session in the php commandline)
what would be the nicest way to workarround the session check? (of course i could not include the application_top or i could make a if($_GET['php']=="cli" thann don't redirect, but i don't like to change core and i don't like to make security risks)
thank you for any helps,..