dont allow bootstrap.php file from tests/ to be called via browser

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2019-05-27 08:33:36 +02:00
parent 3fec579f85
commit 68f55f9596

View File

@@ -11,6 +11,11 @@ if (file_exists('/etc/froxlor-test.pwd') && file_exists('/etc/froxlor-test.rpwd'
define('TRAVIS_CI', 1);
}
if (@php_sapi_name() !== 'cli') {
// not to be called via browser
die;
}
$userdata_content = "<?php
\$sql['user'] = 'froxlor010';
\$sql['password'] = '$pwd';