renamed zarafa to kopano

This commit is contained in:
robing
2016-10-24 10:53:03 +00:00
parent 9b51e42fed
commit b8e000193f
5 changed files with 217 additions and 0 deletions

20
Inject Files/deencode.php Normal file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env php
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
include "/etc/kopano/webapp/config-files.php";
if ( $argv[1] == 'encode' ) {
$value = openssl_encrypt($argv[2], "des-ede3-cbc", FILES_PASSWORD_KEY, 0, FILES_PASSWORD_IV);
}
elseif ( $argv[1] == 'decode' ) {
$value = openssl_decrypt($argv[2], "des-ede3-cbc", FILES_PASSWORD_KEY, 0, FILES_PASSWORD_IV);
}
else {
print "No valid options provided usage php dencode.php encode/decode string\n";
}
if ( ! empty($value) ) {
print $value;
}
?>