Dump everything from SVN

This commit is contained in:
Fándly Gergő
2019-08-08 16:40:15 +03:00
parent 7391f609d6
commit bcf29a3d4f
46 changed files with 4205 additions and 0 deletions

25
setup/001-generateKey.php Normal file
View File

@ -0,0 +1,25 @@
<?php
/**
* /setup/001-generateKey.php
* @version 1.0
* @desc Generate Crypto key
* @author Fándly Gergő Zoltán
* @copy 2017 Fándly Gergő Zoltán
*/
header("Content-type: text/plain; charset=UTF-8");
require_once("../config/lib/defuse-crypto.phar");
echo "Generating key...\n";
flush();
$key=\Defuse\Crypto\Key::createNewRandomKey();
echo "Key generated!\n";
flush();
echo "Writeing to file...\n";
flush();
file_put_contents("../config/cryptokey.cnf", $key->saveToAsciiSafeString());
echo "Done! Proceed to step 2!";
flush();
?>