Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added CLI script to create hashes

  • Loading branch information...
commit 648630eee4f4f0cd0d7f210731b045cb5f91fbb7 1 parent b81eb5e
@thorsten authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 scripts/createHashes.php
View
25 scripts/createHashes.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * This scripts iterates recursively through the whole phpMyFAQ project and
+ * creates SHA-1 keys for all files
+ *
+ * PHP Version 5.2.3
+ *
+ * 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 http://mozilla.org/MPL/2.0/.
+ *
+ * @category phpMyFAQ
+ * @package Scripts
+ * @author Thorsten Rinne <thorsten@phpmyfaq.de>
+ * @copyright 2012 phpMyFAQ Team
+ * @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
+ * @link http://www.phpmyfaq.de
+ * @since 2012-04-11
+ */
+
+require __DIR__ . '/../phpmyfaq/inc/System.php';
+
+$system = new PMF_System();
+
+print $system->createHashes();
Please sign in to comment.
Something went wrong with that request. Please try again.