mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Disable reporting on CI
This commit is contained in:
parent
5bb3e57b7b
commit
eabe789bbb
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user