Disable reporting on CI

This commit is contained in:
slawkens 2023-06-03 12:24:18 +02:00
parent 17221f5369
commit 6e6f4679f4

View File

@ -122,6 +122,7 @@ else {
));
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);
if (function_exists('curl_version'))
{
@ -134,6 +135,8 @@ else {
else if (ini_get('allow_url_fopen') ) {
file_get_contents($report_url);
}
}
$_SESSION['installed'] = true;
}