diff --git a/admin-dev/themes/default/css/admin.css b/admin-dev/themes/default/css/admin.css index a8a45c438..13c526bcb 100644 --- a/admin-dev/themes/default/css/admin.css +++ b/admin-dev/themes/default/css/admin.css @@ -485,3 +485,5 @@ ul.listForm li {padding-bottom:3px;} .margin-form select.chosen{width: 200px;} .selected-line {background:#fff1b5;} + +#changedFiles ul{list-style-type: square; padding-left: 40px;} \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl index b27a74f7f..47fb4da08 100644 --- a/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl @@ -28,6 +28,48 @@ {block name="override_tpl"} + +
{l s='Information'}

{l s='This information must be indicated when you report a bug on our bug tracker or if you report a problem on our forum.'}

@@ -147,4 +189,10 @@
+
+
+ {l s='List of changed files'} +
{l s='Checking files ...'}
+
+ {/block} diff --git a/controllers/admin/AdminInformationController.php b/controllers/admin/AdminInformationController.php index 59b05e15c..4288ffd73 100644 --- a/controllers/admin/AdminInformationController.php +++ b/controllers/admin/AdminInformationController.php @@ -109,5 +109,41 @@ class AdminInformationControllerCore extends AdminController 'testsOptional' => $params_optional_results, ); } + + public function displayAjaxCheckFiles() + { + $this->file_list = array('missing' => array(), 'updated' => array()); + $xml = @simplexml_load_file('http://api.prestashop.com/xml/md5/'._PS_VERSION_.'.xml'); + if (!$xml) + die(Tools::jsonEncode($this->file_list)); + + $this->getListOfUpdatedFiles($xml->ps_root_dir[0]); + die(Tools::jsonEncode($this->file_list)); + } + + public function getListOfUpdatedFiles(SimpleXMLElement $dir, $path = '') + { + $exclude_regexp = '(install(-dev|-new)?|themes|tools|cache|docs|download|img|localization|log|mails|translations|upload)'; + $admin_dir = basename(_PS_ADMIN_DIR_); + + foreach ($dir->md5file as $file) + { + $filename = preg_replace('#^admin/#', $admin_dir.'/', $path.$file['name']); + if (preg_match('#^'.$exclude_regexp.'#', $filename)) + continue; + + if (!file_exists(_PS_ROOT_DIR_.'/'.$filename)) + $this->file_list['missing'][] = $filename; + else + { + $md5_local = md5_file(_PS_ROOT_DIR_.'/'.$filename); + if ($md5_local != (string)$file) + $this->file_list['updated'][] = $filename; + } + } + + foreach ($dir->dir as $subdir) + $this->getListOfUpdatedFiles($subdir, $path.$subdir['name'].'/'); + } } diff --git a/translations/fr/admin.php b/translations/fr/admin.php index d1ee8bbec..48ccf619e 100644 --- a/translations/fr/admin.php +++ b/translations/fr/admin.php @@ -638,6 +638,7 @@ $_LANGADM['AdminControllerbee83fbebb6a50869091c78685f2b7f7'] = 'caractères max, $_LANGADM['AdminControllerc9cc8cce247e49bae79f15173ce97354'] = 'Enregistrer'; $_LANGADM['AdminControllercbebc850f5f849e8956b5f8075f48f69'] = 'partout'; $_LANGADM['AdminControllercc3787ca78f445f481069a4c047f7e7a'] = 'Choisir la langue :'; +$_LANGADM['AdminControllerd2d2000f7fa636acd871f43c085a75dc'] = 'Un nouveau client s\'est inscrit sur votre boutique'; $_LANGADM['AdminControllerd4fecde5ac83b59cc690fd4d26d79abe'] = 'Remboursement réussi'; $_LANGADM['AdminControllerd70861cbe7f8c9a1241c39b3e7ef5ef2'] = 'Voir mon magasin'; $_LANGADM['AdminControllerdb26e10564e958809d798e8048fcbc0a'] = 'Jeton de sécurité non valable'; @@ -1218,6 +1219,7 @@ $_LANGADM['AdminGroups9ba58ad734a38b533febf81361bd1a4f'] = 'Réduction (%)'; $_LANGADM['AdminGroups9c37b7b6ff829e977df287900543ea54'] = 'Date de naissance'; $_LANGADM['AdminGroupsa1e7379abfdbc3b8e03506e5489c6110'] = 'Réduction :'; $_LANGADM['AdminGroupsa36f97f31dbcb265fb08f5c0626261ea'] = '%s - Clients ayant passé une commande avec le Guest Checkout.'; +$_LANGADM['AdminGroupsabc42d386e1904a255aabb45715860c8'] = 'Association de groupe de boutique'; $_LANGADM['AdminGroupsb718adec73e04ce3ec720dd11a06a308'] = 'ID'; $_LANGADM['AdminGroupsb9f5c797ebbf55adccdd8539a65a0241'] = 'Désactiver'; $_LANGADM['AdminGroupsbafd7322c6e97d25b6299b5d6fe8920b'] = 'Non'; @@ -1543,6 +1545,7 @@ $_LANGADM['AdminInformation15f4c82d7b2b43e31c30dd018b800c56'] = 'Paramètres req $_LANGADM['AdminInformation228dca6dcabbdec3227758a121d003f4'] = 'Activez la bibliothèque GD sur votre serveur'; $_LANGADM['AdminInformation24bdb129e9fe3a110466ea68fec1d430'] = 'Activez la compression GZip'; $_LANGADM['AdminInformation2a3ff2643b520b827a90e28d94132d42'] = 'Définir les droits d\'écriture sur le fichier sitemap.xml'; +$_LANGADM['AdminInformation2e62fff336f9fdfefe4f87168f223f8b'] = 'Des changements sur vos fichiers ont été détectés'; $_LANGADM['AdminInformation3685800496ee1d4fd5cc25d805589f0e'] = 'Méthode d\'envoi de mail'; $_LANGADM['AdminInformation3aea774cdcd8f2c45549f10758a71323'] = 'Informations sur votre boutique'; $_LANGADM['AdminInformation3cffa2fabd5519beaf4c2fbd0610899b'] = 'Mot de passe SMTP'; @@ -1560,11 +1563,13 @@ $_LANGADM['AdminInformation8746097684bc64be8b7eff424c4debdb'] = 'Vos information $_LANGADM['AdminInformation93405bfa9b7b11e81895230d1ebff2f5'] = 'Définir les droits d\'écriture en récursif sur le dossier /translations/'; $_LANGADM['AdminInformation9a7d9391be763fe9cb3985176076d8c8'] = 'Activez le support de MySQL sur votre serveur'; $_LANGADM['AdminInformation9e987a2c638032d7659ec58e58ef3626'] = 'Définissez l\'option PHP \"register_global\" à \"Off\"'; +$_LANGADM['AdminInformationa2db667abfde7a08ee094d460102f268'] = 'Fichiers manquants'; $_LANGADM['AdminInformationa82be0f551b8708bc08eb33cd9ded0cf'] = 'Informations'; $_LANGADM['AdminInformationab64e3d5feb645333b320d80a84c8255'] = 'Version de PHP'; $_LANGADM['AdminInformationae72ff89c480df239bc55b2ea63e99c0'] = 'Définir les droits d\'écriture sur le dossier /themes/'; $_LANGADM['AdminInformationaf3e294442744e49788883caffaeaf19'] = 'Mettez à jour votre version de PHP'; $_LANGADM['AdminInformationb285f29261478440add9d1cc0b631f0c'] = 'Vous utilisez la fonction mail() de PHP'; +$_LANGADM['AdminInformationb5871613cbf4ab8b21d528ff2576fcbf'] = 'Fichiers modifiés'; $_LANGADM['AdminInformationbdd48fb41b9d0a4a1051fa22a87eb5a2'] = 'Serveur SMTP'; $_LANGADM['AdminInformationc168c59890774aa16b1c1fc49168394b'] = 'Configurer votre serveur afin d\'autoriser l\'envoi de fichier'; $_LANGADM['AdminInformationc26b24f06d2ee6f5b27a7f6e200711be'] = 'Version de MySQL'; @@ -1577,6 +1582,7 @@ $_LANGADM['AdminInformationd0ac12f046d68599acee4386c5c1f860'] = 'Version du logi $_LANGADM['AdminInformationd4b5a23bc61aeea35b4ce013d7e262c4'] = 'URL de votre boutique'; $_LANGADM['AdminInformationd4e63b4d8344eb2bcc7c478470a144e7'] = 'Définir les droits d\'écriture en récursif sur le dossier /upload/'; $_LANGADM['AdminInformationd5995399dae916bb1393c329b3453a88'] = 'Vous utilisez vos paramètres SMTP'; +$_LANGADM['AdminInformationd5c0bb5c1df152c6fe45bd07e303cb69'] = 'Liste des fichiers modifiés'; $_LANGADM['AdminInformationd7f2615c71a1567cc13cf3a7f7de0aea'] = 'Cryptage'; $_LANGADM['AdminInformationdb67130c0c7e67fac8de13f4c9f053e1'] = 'Ces informations sont importantes lors de l\'envoi de rapports de bugs sur la Forge, ou \'explication d\'un problèmes sur notre forum.'; $_LANGADM['AdminInformatione3beee990a3abfcc54a09f5727e1ee11'] = 'Paramètres facultatifs'; @@ -1584,8 +1590,10 @@ $_LANGADM['AdminInformatione5a85bc7e9867202a56449ade1060389'] = 'Définir les dr $_LANGADM['AdminInformatione7fda5b7b853496978bc2822541e9d89'] = 'Veuillez consulter la/les erreur(s) suivante(s)'; $_LANGADM['AdminInformatione91dd9bbca6e42bb85c0f2d94aaee995'] = 'Vérifiez votre configuration'; $_LANGADM['AdminInformationf8b1369a8e9d90da0cae0b11049309af'] = 'Non défini'; +$_LANGADM['AdminInformationf906d7a3367c3baec220f5f8e51b54ee'] = 'Aucun changement n\'a été détecté sur vos fichiers'; $_LANGADM['AdminInformationfaf165f191e0bbd2c13864a08ee9aa83'] = 'Nom du thème utilisé'; $_LANGADM['AdminInformationfc0eeb8415aed39a9d3624c7fc2fe47c'] = 'Module PageSpeed pour Apache installé (mod_instaweb)'; +$_LANGADM['AdminInformationfff9270dd072343e948e4e53a4966c80'] = 'Vérification des fichiers ...'; $_LANGADM['AdminInvoices0b1fb1278454d848f968d419e29c253b'] = 'Format : 2007-12-31 (inclus)'; $_LANGADM['AdminInvoices0df35f41ce9f64e7f14819bd4145a2be'] = 'Préfixe utilisé pour la numérotation des factures'; $_LANGADM['AdminInvoices1513c8f4f5c2d340ac3e1c3d09aeff4c'] = 'Texte libre :';