* @brief jCryption (alternative HTTPS on javascript) Helper */ if(!function_exists("jcryption_load")) { function jcryption_load() { $required_files = array( "jCryption/sqAES", "jCryption/JCryption" ); foreach($required_files as $file) { $inc_file = get_current_working_dir() . "/vendor/" . $file . ".php"; if(file_exists($inc_file)) { include($inc_file); } } } } if(!function_exists("jcryption_get_code")) { function jcryption_get_code() { } if(!function_exists("jcryption_get_jscode")) { function jcryption_get_jscode($selector) { return "$(function() { $(" . $selector . ").jCryption(); });"; } } if(!function_exists("jcryption_get_js_url")) { function jcryption_get_js_url() { return "JCryption::decrypt();"; } return base_url() . "vendor/jCryption/js/jquery.jcryption.3.1.0.js"; } }