| 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/usa_sites/vx/usa/functions/ |
Upload File : |
<?php
include_once($_SERVER['DOCUMENT_ROOT']."/vx/lib/xinc.php");
if(!empty($_POST['site_code']) && !empty($_POST['client_id'])) {
$cancelSite = $db->clean($_POST['site_code']);
$siteDatabase = "lc2{$cancelSite}_lc";
$cancelResellerID = $db->clean($_POST['client_id']);
$db->query("
UPDATE {$siteDatabase}.lc_reseller
SET
monthly_fee = 4.99
WHERE
id = '$cancelResellerID'
");
$db->query("UPDATE {$siteDatabase}.lc_clients_subscriptions
SET
amount=4.99
WHERE
reseller_id = '$cancelResellerID'
AND subscription_id = 2
");
$db->query("UPDATE {$siteDatabase}.lc_clients_subscriptions
SET
amount=0
WHERE
reseller_id = '$cancelResellerID'
AND subscription_id = 3
");
$db->query("INSERT INTO lc2admin.client_reduced_fee
(
site_code
,client_id
,fee_reduced_to
,source
,ts
) VALUES (
'".$db->clean($cancelSite)."'
,'".$db->clean($cancelResellerID)."'
,'4.99'
,'".$db->clean($cancelSite)."'
,NOW()
)");
$db->query("
INSERT INTO surfcrm.notes
(
timeclock_id,
site_code,
client_type,
client_id,
date,
type,
note,
username,
first_name,
last_name,
active
)
VALUES
(
'0',
'$cancelSite',
'clients',
'$cancelResellerID',
NOW(),
'System Note',
'Client reduced their monthly fee to $4.99',
'Client',
'".$db->clean($cancelSite)."',
'CRM',
'1'
)
");
}
?>
<div class="rb" style="padding-top:0px;">
<p>Great! Your <strong>grant application service monthly fee has been reduced to $4.99.<br />You will continue to receive the same grant benefits:</strong></p>
<ul>
<li><i class="glyphicons glyphicons-government glyphicons-fw f14"></i> Newest Applications</li>
<li><i class="glyphicon glyphicon-facetime-video glyphicons-fw f14"></i> Video Tutorials</li>
<li><i class="glyphicons glyphicons-bell glyphicons-fw f14"></i> Grant Alerts</li>
<li><i class="glyphicons glyphicons-display glyphicons-fw f14"></i> Weekly Grant Teleconferences</li>
<li><i class="glyphicons glyphicons-lock glyphicons-fw f14"></i> Master Application Question Vault</li>
<li><i class="glyphicons glyphicons-list glyphicons-fw f14"></i> Grant Application Organizer</li>
<li><i class="glyphicons glyphicons-calendar glyphicons-fw f14"></i> Grant Deadline Calendar</li>
</ul>
</div>