taloweb
taloweb

Reputation: 1

Prestashop: check if some core file was modified

I have a legacy Prestashop 1.7.2.2 installation and I would like to know if some core file was modified compared with the original version. I have to move, upgrade and fix some issue in this installation but if someone modified the original core files I can find difficulties or the website could rise errors.

Do you know some method to smartly do this check?

Thanks!

Upvotes: 0

Views: 672

Answers (3)

Scott C Wilson
Scott C Wilson

Reputation: 20026

1) Download a fresh version of 1.7.2.2 from PrestaShop.com. Let's call this directory $BASE.

2) Download the files for your cart. Let's call this directory $YOUR_CART.

3) Compare $BASE to $YOUR_CART. This will show you changes in core.

cd $BASE
for i in `find . -type f`
do
  diff -q $i $YOUR_CART/$i
done

4) Do the same thing in reverse, to find files that have been added to your installation that are not in $BASE.

cd $YOUR_CART
for i in `find . -type f`
do
  diff -q $i $BASE/$i 2>>/tmp/newfiles
done

Now the file /tmp/newfiles has a list of additions that have been made in your installation.

Upvotes: 0

Roman K.
Roman K.

Reputation: 965

Do you have the original files? Then all you need to do is compare the directories and files with the right tool. I would use Total Commander and it's "Synchronize dirs" command. You can have original files on your local computer and compare them over FTP with you server files.

You can also use WinMerge but you can only compare local directories so you'll need to download your Prestashop install from the server.

Upvotes: 1

ravi2432
ravi2432

Reputation: 211

In admin You go on information page under "Advance Parameter" menu. IN the last box you will see "List of changed files"

Upvotes: 0

Related Questions