Jump to content

New Delivery Plugin


Recommended Posts



I need to secure data, sended in a "Site - Variable" targeting channel.


I'm using this code to hide data in request

define("ENCRYPTION_KEY", "[email protected]%^&*");

$string = "var1=one;var2=somedata;var3=anotherdata;othervar=youknow;foo=bar;";
$encrypted = urlencode(base64_encode(mcrypt_ecb(MCRYPT_DES, ENCRYPTION_KEY, $string, MCRYPT_ENCRYPT)));
$decrypted = mcrypt_ecb(MCRYPT_DES, ENCRYPTION_KEY, base64_decode(urldecode($encrypted)), MCRYPT_DECRYPT);

printf("String: %s <br/> Salt: %s, <br/> Encrypted: %s <br/> Decrypted: %s",
        $string, ENCRYPTION_KEY, $encrypted, $decrypted);

So, I want to get explode $encrypted on server, and get value by key (lik in Site - Variable).


When I'm trying to copy Site - Source method to edit it for my needs

cp plugins/deliveryLimitations/Site/Source.class.php plugins/deliveryLimitations/Site/Hidden.class.php
cp plugins/deliveryLimitations/Site/Source.delivery.php plugins/deliveryLimitations/Site/Hidden.delivery.php

"Targeting Channel" page return this:



I've tried to add files path to plugin/etc/Site/Site.xml and edited "$this->nameEnglish" in Hidden.class.php but it doesn't changed anything.


What am I doing wrong? Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...