| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/development/dev.americansocietyforassetprotection.com/member/ |
Upload File : |
<?php session_start();
$LOGIN = $_SESSION['logged'];
?>
<html>
<head>
<?php
$body_id = 'login';
$title = 'Member Login';
require_once("binx/includes/includes.php");
require_once("binx/vars/meta_data.php");
require($_SERVER['DOCUMENT_ROOT'].'/inc/db_connect.php');
$db = db_connect('asap_leads');
$client_name = '';
$client_email = '';
if(!empty($_GET['esi'])) {
$esi = base64_decode($_GET['esi']);
$arr = explode('|||',$esi);
$email_id = $arr[0];
$series_client_id = $arr[1];
$res = $db->query("SELECT ci.association_id,ci.contact,ci.email FROM email_series.series_clients sc
LEFT JOIN asap_leads.association_proposal_meeting_planner ci ON ci.association_id=sc.client AND ci.association_proposal_group_id=sc.extra_id
WHERE sc.id='".$db->clean($series_client_id)."'");
if(count($res)) {
$row = $res[0];
$client_name = $row['contact'];
$client_email = $row['email'];
$db->query("UPDATE asap_leads.association_info SET do_not_contact='1' WHERE id='".$db->clean($row['association_id'])."'");
$db->query("INSERT INTO asap_leads.association_notes
(
leadid
,employee
,notedate
,notes
,sys_note
) VALUES (
'".$db->clean($row['association_id'])."'
,'SurfCRM'
,NOW()
,'This client unsubscribed using the unsubscribe button on their email.'
,'1'
)");
$db->query("INSERT INTO email_series.unsubscribes
(
emails_id
,series_clients_id
,ts
) VALUES (
'".$db->clean($email_id)."'
,'".$db->clean($series_client_id)."'
,NOW()
)");
}
}
?>
<style type="text/css">
body{
background-image:url(images/bg.jpg);
background-repeat:repeat-x;
}
.ui-headerbar{
background-color:#221f30;
}
</style>
<!--<script src="binx/js/image_preload.js" type="text/javascript"></script>-->
<script src="binx/js/index.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="styles.css"/>
<style type="text/css">
.ui-login{
box-shadow: 0px 12px 32px rgba(18, 2, 0, 0.39);
-moz-box-shadow: 0px 12px 32px rgba(18, 2, 0, 0.39);
-webkit-box-shadow: 0px 12px 32px rgba(18, 2, 0, 0.39);
}
.ui-cancel
{
position:relative;
right:-378px;
top:-26px;
background-image:url(images/close_me.png);
}
</style>
</head>
<body>
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" style="position:absolute; top:0px; left:0px; background-position:center top; background-repeat:no-repeat;" background="images/bg_flag.jpg">
<tr>
<td width="33%" height="15%" align="right" valign="middle">
<img src="images/logo.png" height="150" width="150" onClick="window.location = 'http://americansocietyforassetprotection.com/'" style="cursor:pointer" />
</td>
<td width="33%" height="15%" align="center" valign="middle">
</td>
<td width="33%" height="15%" align="left" valign="middle">
</td>
</tr>
<tr>
<td width="33%" height="16px" align="center" valign="middle" colspan="3">
<div class="ui-form-packet ui-login" style="width:384px;margin:0px auto;" align="left">
<?php if(!empty($client_email)) { ?>
<h6><?= $client_name;?> (<?= $client_email;?>), you have successfully unsubscribed.</h6>
<?php } else { ?>
<h6>There was an error when looking up your email address. Please contact customer service.</h6>
<?php } ?>
</div>
</td>
</tr>
<tr>
<td width="33%" align="center" valign="middle">
</td>
<td width="33%" align="center" valign="top">
<br><br>
</td>
<td width="33%" align="center" valign="middle">
</td>
</tr>
<tr>
<td width="33%" align="center" valign="middle" colspan="3" style="color:#FFFFFF">
<center>
<ul id="base" style="list-style:none; float:none;">
<li style="font-size:11px;">American Society for Asset Protection, Copyright © <? echo date("Y");?></li>
</ul>
</center>
</td>
</tr>
</table>
</body>
</html>