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:
@@ -3374,6 +3374,10 @@ exit;
|
||||
protected static $is_addons_up = true;
|
||||
public static function addonsRequest($request, $params = array())
|
||||
{
|
||||
if (defined('_QLO_DISABLE_PHONE_HOME_') && _QLO_DISABLE_PHONE_HOME_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!self::$is_addons_up) {
|
||||
return false;
|
||||
}
|
||||
@@ -3485,6 +3489,10 @@ exit;
|
||||
*/
|
||||
public static function refresh($file_to_refresh, $external_file)
|
||||
{
|
||||
if (defined('_QLO_DISABLE_PHONE_HOME_') && _QLO_DISABLE_PHONE_HOME_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (self::$is_addons_up && $content = Tools::file_get_contents($external_file)) {
|
||||
return (bool)file_put_contents(_PS_ROOT_DIR_.$file_to_refresh, $content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user