It is quite often scenario that clients are running Magento websites and are not aware that their core Magento core files are modified. Desecrating Magento core files is punishable by death. So here is a little tip on how to quickly scan the core and see if someone needs to be hanged publicly or not:
$ diff -urbB default_sacred_core_folder clients_core_folder | lsdiff
To explain the parameters of diff, lets take a look at man pages:
output NUM (default 3) lines of unified context — required for lsdiff
recursively compare any subdirectories found
ignore changes in the amount of white space
ignore changes whose lines are all blank
As you can see, output of this command is piped to lsdiff command, in order to get more clear output. Once executed, you should(not?) get output like this:
$ diff -urbB default_sacred_core_folder clients_core_folder | lsdiff /client_core_folder/app/code/core/Enterprise/PageCache/Model/Config.php /client_core_folder/app/code/core/Enterprise/PageCache/Model/Container/Abstract.php /client_core_folder/app/code/core/Enterprise/PageCache/Model/Observer.php /client_core_folder/app/code/core/Enterprise/PageCache/Model/Processor.php /client_core_folder/app/code/core/Mage/Adminhtml/Block/Dashboard/Graph.php /client_core_folder/app/code/core/Mage/Adminhtml/controllers/Api/RoleController.php /client_core_folder/app/code/core/Mage/Adminhtml/controllers/DashboardController.php ...
Looks like someone is about to burn at the stake!
Note: If you would like Inchoo to perform a technical audit on your website, please check the details on our Magento Technical Audit Service.