reasonableframework/helper/jcryption.lnk.php

29 lines
626 B
PHP
Raw Normal View History

2018-09-29 18:20:00 +00:00
<?php
2018-09-29 18:30:30 +00:00
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();";
}
}
2018-09-29 18:42:40 +00:00
if(!function_exists("jcryption_get_jscode")) {
function jcryption_get_jscode($selector) {
return "$(function() { $(" . $selector . ").jCryption(); });";
}
}