Resource icon

Unmaintained File Hashes CLI Script 1.0.0

No permission to download
Compatible XF 1.x versions
  1. 1.0
  2. 1.1
  3. 1.2
  4. 1.3
  5. 1.4
Visible branding
No
Super basic PHP CLI script that'll take a directory path, and spit out a copy/pasteable code snippet containing the array of the file hashes for the file_health_check callback.

Note: You have to set two variables near the top of the file for it to work correctly!

Usage: php GenSums.php <directory> <extensions> [<exclude_files>]

Extensions and exclude_files are a comma separated list. Directory is one value only.

Example Output:

Code:
Liams-Mac:LiamW liam$ ./GenSums.php ../PayToPost .php FileHashes.php
return array(
'library/PayToPost/Addon.php' => 'f140b9466ec2e67e76e6bc4fd2d3b781',
'library/PayToPost/Cron/CleanUp.php' => 'bf3418a747586697343918c6eb0c0f01',
'library/PayToPost/DatabaseSchema/Abstract.php' => '6fc2ae9fd587d7bacb88509eeff5f4ec',
'library/PayToPost/DatabaseSchema/Category.php' => '87ab50423258ff84f11b905bfdbc6822',
'library/PayToPost/DatabaseSchema/Forum.php' => '3662aa0b75fb874f44d169ebc744d318',
'library/PayToPost/DatabaseSchema/Resource.php' => '63b442b0edf479ad42893ebb99fa358c',
'library/PayToPost/DatabaseSchema/Thread.php' => '0344cb7dfa58a6ae96c4fb66eb0d9953',
'library/PayToPost/Extend/XenForo/ControllerAdmin/Forum.php' => 'eaedb7e698b72ad5976fc8556b878cf9',
'library/PayToPost/Extend/XenForo/ControllerPublic/Forum.php' => 'db1f2e51102697ee3077656084ca7d32',
'library/PayToPost/Extend/XenForo/ControllerPublic/Thread.php' => '3e0c86cfc26c62829f9924f4acbb3562',
'library/PayToPost/Extend/XenForo/DataWriter/Discussion/Thread.php' => 'ea51c8ec2a7c68e90833e6de31f500e4',
'library/PayToPost/Extend/XenForo/DataWriter/Forum.php' => 'ae4d02a517d2a1184ecf69639deb7ac5',
'library/PayToPost/Extend/XenForo/Model/Forum.php' => 'ae416ee106167227d695058f242de5e9',
'library/PayToPost/Extend/XenForo/Model/Thread.php' => 'e632f589e4c2689d225e0d187389cb4d',
'library/PayToPost/Extend/XenForo/ViewPublic/Thread/Create.php' => 'cb7eefc0fe4f0ed3cec78534fb9ef582',
'library/PayToPost/Extend/XenResource/ControllerAdmin/Category.php' => '743c4f8eb9d51a25f27bdce39f153c5c',
'library/PayToPost/Extend/XenResource/ControllerPublic/Resource.php' => '7401adcc41ef687c2324f4dca5479067',
'library/PayToPost/Extend/XenResource/DataWriter/Category.php' => 'd4f9addb5c7550f639f25914cc502294',
'library/PayToPost/Extend/XenResource/DataWriter/Resource.php' => '903f71c9f17e01258472395dbe27fd40',
'library/PayToPost/Extend/XenResource/Model/Category.php' => '04db13895e4644699cb72fb9d812b070',
'library/PayToPost/Extend/XenResource/Model/Resource.php' => 'cc661ec1de314b0433eebfcc38dd063f',
'library/PayToPost/PayToPostProcessor/PayPal.php' => 'a3d8822f2b0a870dffce6d85fd4b194f',
);
Author
Liam W
Downloads
13
Views
1,279
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Liam W

Top Bottom