forked from thorsten/phpMyFAQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateHashes.php
More file actions
29 lines (25 loc) · 887 Bytes
/
Copy pathcreateHashes.php
File metadata and controls
29 lines (25 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/php
<?php
/**
* This scripts iterates recursively through the whole phpMyFAQ project and
* creates SHA-1 keys for all files
*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://mozilla.org/MPL/2.0/.
*
* @package phpMyFAQ
* @author Thorsten Rinne <thorsten@phpmyfaq.de>
* @copyright 2012-2025 phpMyFAQ Team
* @license https://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
* @link https://www.phpmyfaq.de
* @since 2012-04-11
*/
define('PMF_ROOT_DIR', dirname(__DIR__).'/phpmyfaq');
require PMF_ROOT_DIR . '/src/phpMyFAQ/System.php';
$system = new phpMyFAQ\System();
try {
echo $system->createHashes();
} catch (Exception $exception) {
echo 'Something went wrong: ' . $exception->getMessage();
}