<?php require_once('../../../../../wp-config.php'); require_once('../../opt.php'); require_once('../../includes/dwpc_start.php'); require_once('../../includes/opt_apptop.php'); if(!isset($_GET['dwpc_impression_id']) || !isset($_GET['dwpc_visitor_id']) || !isset($_GET['link_id'])){die();} $impression_id = mysql_real_escape_string($_GET['dwpc_impression_id']); $visitor_id = mysql_real_escape_string($_GET['dwpc_visitor_id']); $link_id = mysql_real_escape_string($_GET['link_id']); $optin_link = $wpdb->get_row('SELECT * FROM '.OPT_DB_PREFIX.'opt_optin_links WHERE id='.$link_id,ARRAY_A); if($optin_link == ''){echo 'Invalid Optin Link'; die();} $mailers = $wpdb->get_results('SELECT * FROM '.OPT_DB_PREFIX.'opt_mailers WHERE mailer_type="SendReach" AND parent_id <> 0 AND id IN(SELECT opt_mailer_id FROM '.OPT_DB_PREFIX.'opt_mailers_to_campaigns WHERE opt_campaign_id='.$optin_link['opt_campaign_id'].')',ARRAY_A); $api = opt_api_from_id($mailers[0]['id']); $mailers[0]['data'] = opt_unserialize($mailers[0]['data']); ?> <iframe src="https://www.facebook.com/plugins/registration.php?client_id=<?php echo '421142751285209' ?>&redirect_uri=https%3A%2F%2Fregister.sendreach.com%2Freg.php%3Flid=<?php echo $mailers[0]['list_name'] ?>&fields=[{'name':'name'},{'name':'email'},{'name':'location'},{'name':'gender'},{'name':'birthday'},{'name':'lid','description':'ListID','type':'hidden','default':'<?php echo $mailers[0]['list_name'] ?>'}]&fb_only=true" scrolling="auto" frameborder="no" style="border:none" allowTransparency="true" width="490" height="385"></iframe> <?php die(); ?>