/home/techb158/l2hypotheques.com/wp-content/plugins/complianz-gdpr
NameSizeModeActions
assets/-0755rm
config/-0755rm
cookie/-0755rm
cookiebanner/-0755rm
cron/-0755rm
DNSMPD/-0755rm
documents/-0755rm
gutenberg/-0755rm
integrations/-0755rm
languages/-0755rm
mailer/-0755rm
onboarding/-0755rm
placeholders/-0755rm
progress/-0755rm
proof-of-consent/-0755rm
rest-api/-0755rm
settings/-0755rm
templates/-0755rm
upgrade/-0755rm
websitescan/-0755rm
class-admin.php177190644editdlrm
class-company.php35900644editdlrm
class-cookie-blocker.php340330644editdlrm
class-document.php931030644editdlrm
class-export.php15240644editdlrm
class-field.php1200760644editdlrm
class-installer.php40700644editdlrm
class-review.php56960644editdlrm
class-wizard.php379860644editdlrm
complianz-gpdr.php147480644editdlrm
composer.json7120644editdlrm
functions-legacy.php1750644editdlrm
functions.php817180644editdlrm
gulpfile.js44610644editdlrm
index.php280644editdlrm
LICENSE.txt184160644editdlrm
loco.xml3740644editdlrm
README.md22210644editdlrm
readme.txt314550644editdlrm
security.md6860644editdlrm
system-status.php48650644editdlrm
uninstall.php71310644editdlrm
upgrade.php357280644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/plugins/complianz-gdpr/class-company.php (3590B)
get_company_region_code(); $regions = cmplz_get_regions(); $region = false; if ( is_array( $regions ) ) { $multiple_regions = count( $regions ) > 1; foreach ( $regions as $region_code ) { //if we have one region, just return the first result if ( ! $multiple_regions ) { return $region_code; } //if we have several regions, get the one this company is located in if ( $company_region_code === $region_code ) { $region = $region_code; } } } //fallback one: company location if ( ! $region && is_array( $regions ) ) { reset( $regions ); $region = key( $regions ); } //fallback two: company location if ( ! $region && ! empty( $company_region_code ) ) { $region = $company_region_code; } //fallback if no array was returned. if ( ! $region ) { $region = CMPLZ_DEFAULT_REGION; } return $region; } /** * Get the default consenttype based on region settings * * @return string consenttype */ public function get_default_consenttype() { //check default region $region = $this->get_default_region(); $selected_regions = cmplz_get_regions(); if (!empty($selected_regions) && !in_array( $region, $selected_regions, true )) { //get the first value in the array if it exists $region = $selected_regions[0] ?? 'eu'; } return apply_filters('cmplz_default_consenttype', cmplz_get_consenttype_for_region( $region )); } /** * Get the company region code. The EU is a region, as is the US * * @return string region_code * * */ public function get_company_region_code() { $country_code = cmplz_get_option( 'country_company' ); $countries = COMPLIANZ::$config->countries; if ( !isset($countries[$country_code]) ) { $country_code = 'US'; } $region = cmplz_get_region_for_country( $country_code ); if ( $region ) { return $region; } return CMPLZ_DEFAULT_REGION; } /** * Check if data was sold in the past 12 months * * @return bool */ public function sold_data_12months() { if ( ! cmplz_sells_personal_data() ) { return false; } $cats = cmplz_get_option( 'data_sold_us' ); if ( ! empty( $cats ) ) { foreach ( $cats as $cat => $value ) { if ( $value == 1 ) { return true; } } } return false; } /** * Check if data has been disclosed in the past 12 months * * @return bool * */ public function disclosed_data_12months() { $cats = cmplz_get_option( 'data_disclosed_us' ); if ( ! empty( $cats ) ) { foreach ( $cats as $cat => $value ) { if ( $value == 1 ) { return true; } } } return false; } } } //class closure