Projet

Général

Profil

Révision de644da6

Ajouté par Julien Enselme il y a plus de 9 ans

Update piwik from 2.6 to 2.7

Voir les différences:

drupal7/sites/all/modules/piwik/piwik.module
13 13
/**
14 14
 * Define the default file extension list that should be tracked as download.
15 15
 */
16
define('PIWIK_TRACKFILES_EXTENSIONS', '7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip');
16
define('PIWIK_TRACKFILES_EXTENSIONS', '7z|aac|arc|arj|asf|asx|avi|bin|csv|doc(x|m)?|dot(x|m)?|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt(x|m)?|pot(x|m)?|pps(x|m)?|ppam|sld(x|m)?|thmx|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls(x|m|b)?|xlt(x|m)|xlam|xml|z|zip');
17 17

  
18 18
/**
19 19
 * Define default path exclusion list to remove tracking from admin pages,
......
231 231
      // The USER_ID value should be a unique, persistent, and non-personally
232 232
      // identifiable string identifier that represents a user or signed-in
233 233
      // account across devices.
234
      $script .= '_paq.push(["setUserId", ' . drupal_json_encode(drupal_base64_encode(drupal_get_hash_salt() . $user->uid)) . ']);';
234
      $script .= '_paq.push(["setUserId", ' . drupal_json_encode(drupal_hmac_base64($user->uid, drupal_get_private_key() . drupal_get_hash_salt())) . ']);';
235 235
    }
236 236

  
237 237
    // Set custom data.

Formats disponibles : Unified diff