<script type="text/javascript" charset="utf-8"> [[!activate]] </script>
<?php $hid = $_GET['hid']; list ($app_id, $token, $mac) = explode(':', $hid); $query = "SELECT * FROM AK_activations WHERE token = '$token'"; $userdata = $sql->Query($query); var_dump($userdata);
["admin_name"]=> string(2) "EB" ["order_id"]=>string(2) "55"
["email"]=> string(15) "e& #114;& #x76;& #105;& #110;& #64;& #x70;& #117;& #x6e;& #x6b;& #x65;r& #x2e;& #x65;& #x65;"
["email"]=> string(15) "& #x65;r& #118;& #105;& #110;& #64;& #112;& #x75;& #x6e;& #x6b;& #101;& #x72;.& #x65;& #x65;"
["email"]=> string(15) "& #101;& #114;& #118;& #x69;& #110;& #64;& #x70;& #117;& #x6e;& #x6b;& #101;& #x72;& #46;& #101;e"
["email"]=> string(16) "ervin @punker.ee"
[[!activate]]<script type="text/javascript" charset="utf-8"></script>
This question has been answered by BobRay. See the first response.
$query("SET NAMES 'utf8'");
$query = "SELECT * FROM AK_activations WHERE token = '$token'"; $userdata = $sql->Query($query); $userdata = $userdata[0]; var_dump($userdata); foreach ($userdata as $key => $value) { $userdata[$key] = stripslashes($value); } var_dump($userdata);
<?php /** * ObfuscateEmail plugin for MODx. * By Aloysius Lim. * / .... / function replaceEntities($matches) { $address = html_entity_decode($matches[1]); $replaced = ''; / .... / } $output = &$modx->resource->_output; $output = preg_replace_callback(email_regex(), "replaceEntities", $output); $output = preg_replace_callback('/(mailto:)/', "replaceEntities", $output); return;
Look in the modx_site_plugins table in the DB and see if the plugin is still there.