]*href=[\'"]([^\'"]+)[\'"]/i', $html, $matches); if(count($matches[1])) { for($j=0; $jget_hash(), $campaign_recipient->get_id()); $proxified_content .= static::get_white_pixel($campaign_recipient); return $proxified_content; } protected static function get_white_pixel($campaign_recipient) { global $opac_url_base; $image_url = $opac_url_base."pixel.php"; return ""; } protected static function gen_hash($recipient_hash, $url) { return md5($recipient_hash."_".$url); } public static function check($hash, $url, $id) { $campaign_recipient = new campaign_recipient($id); if($hash == static::gen_hash($campaign_recipient->get_hash(), $url)) { return true; } return false; } public static function redirect($url) { header('Location: '.html_entity_decode($url)); } }