Disable phone-home to api.qloapps.com

Add _QLO_DISABLE_PHONE_HOME_ (default true) and honour it in
Tools::addonsRequest(), Tools::refresh(), the installer notification and
the theme catalog fetch. This stops sending admin name/email, shop domain
and country on install, the daily upgrade check, the admin
"recommendation" HTML and module/theme catalog requests.
Language and localization pack downloads stay available.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
DanielS
2026-11-11 00:20:01 +01:00
parent e502b63f83
commit ec79686a7d
4 changed files with 24 additions and 0 deletions

View File

@@ -2049,7 +2049,11 @@ class AdminThemesControllerCore extends AdminController
*/
private function getNativeModule($type = 0)
{
$xml = false;
$protocols = array('https://', 'http://');
if (defined('_QLO_DISABLE_PHONE_HOME_') && _QLO_DISABLE_PHONE_HOME_) {
$protocols = array();
}
foreach ($protocols as $protocol) {
if($xml = @simplexml_load_string(Tools::file_get_contents($protocol._QLO_API_DOMAIN_.'/xml/'.str_replace('.', '', _QLOAPPS_VERSION_).'.xml'))) {
break;