Risorse







[trx_title type=”4″]ABICabReport[/trx_title]
[insert_php]
define(‘key’, ‘12345678901234567890123456789012’);
$query_string = urlencode(encrypt());
echo”
“;
function encrypt(){
$current_user = wp_get_current_user();
return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, key, (“id_wordpress=” . $current_user->ID . “&username=” . $current_user->user_login . “&nome=” . $current_user->user_firstname . “&cognome=” . $current_user->user_lastname . “&timestamp=” . (time() + 14400)), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)));
}
[/insert_php]