12 lines
482 B
PHP
12 lines
482 B
PHP
<?php
|
|
require_once("./lib.php");
|
|
@require_once("./config.inc.php");
|
|
|
|
// Check if the config succesfully loaded, or if the mandatory config fields are missing.
|
|
if ( empty($config) || empty($config['key']) || empty($config['input']) ) {
|
|
echo "Please copy the config.sample.inc.php to config.inc.php and change the configuration to match your needs.";
|
|
exit(1);
|
|
}
|
|
|
|
// Echo out the results
|
|
echo $encryptedData = encryptData($config['input'], $config['key'], 'AES-256-CBC', TRUE); |