Update jcryption.lnk.php

This commit is contained in:
Namhyeon Go 2018-09-30 03:30:30 +09:00 committed by GitHub
parent 79aa5cdd7d
commit b639d9209f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,22 @@
<?php
require_once("./vendor/jCryption/sqAES.php");
require_once("./vendor/jCryption/sJCryption.php");
if(!function_exists("jcryption_load")) {
function jcryption_load() {
$required_files = array(
"jCryption/sqAES",
"jCryption/JCryption"
);
foreach($required_files as $file) {
$inc_file = "./vendor/" . $file . ".php";
if(file_exists($inc_file)) {
include($inc_file);
}
}
}
}
if(!function_exists("jcryption_get_code")) {
function jcryption_get_code() {
return "JCryption::decrypt();";
}
}