mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
forbit to call setup-cli.php via the webserver
This commit is contained in:
parent
cceda77788
commit
3fa9f71fc4
@ -13,7 +13,11 @@
|
|||||||
|
|
||||||
chdir(dirname(__FILE__)); // to enable our relative pathes to work
|
chdir(dirname(__FILE__)); // to enable our relative pathes to work
|
||||||
|
|
||||||
if ($_SERVER['argc'] > 1)
|
if (isset($_SERVER['PHP_SELF'])) // security precaution: forbit calling setup-cli as web-page
|
||||||
|
{
|
||||||
|
die('<h1>setup-cli.php must NOT be called as web-page --> exiting !!!</h1>');
|
||||||
|
}
|
||||||
|
elseif ($_SERVER['argc'] > 1)
|
||||||
{
|
{
|
||||||
$arguments = $_SERVER['argv'];
|
$arguments = $_SERVER['argv'];
|
||||||
array_shift($arguments);
|
array_shift($arguments);
|
||||||
|
Loading…
Reference in New Issue
Block a user