Disable reporting on CI

This commit is contained in:
slawkens 2023-06-03 12:24:18 +02:00
parent 5bb3e57b7b
commit eabe789bbb

View File

@ -122,6 +122,7 @@ else {
)); ));
if(!isset($_SESSION['installed'])) { if(!isset($_SESSION['installed'])) {
if (!array_key_exists('CI', $_ENV)) {
$report_url = 'https://my-aac.org/report_install.php?v=' . MYAAC_VERSION . '&b=' . urlencode(BASE_URL); $report_url = 'https://my-aac.org/report_install.php?v=' . MYAAC_VERSION . '&b=' . urlencode(BASE_URL);
if (function_exists('curl_version')) if (function_exists('curl_version'))
{ {
@ -134,6 +135,8 @@ else {
else if (ini_get('allow_url_fopen') ) { else if (ini_get('allow_url_fopen') ) {
file_get_contents($report_url); file_get_contents($report_url);
} }
}
$_SESSION['installed'] = true; $_SESSION['installed'] = true;
} }