Log confirmed subscriptions

master
Sven Slootweg 11 years ago
parent 97797e5592
commit 4a5409cd00

@ -20,6 +20,15 @@ try
$sSubscription->uIsConfirmed = true;
$sSubscription->InsertIntoDatabase();
$sLogEntry = new LogEntry(0);
$sLogEntry->uType = LogEntry::SUBSCRIPTION_CONFIRMED;
$sLogEntry->uIp = $_SERVER['REMOTE_ADDR'];
$sLogEntry->uData = json_encode(array("email" => $router->uParameters[1]));
$sLogEntry->uCampaignId = $sCampaign->sId;
$sLogEntry->uDate = time();
$sLogEntry->uSessionId = session_id();
$sLogEntry->InsertIntoDatabase();
flash_notice("Your subscription was successfully confirmed. Welcome on board!");
redirect("/manage/{$sSubscription->sEmailAddress}/{$sSubscription->sSettingsKey}");
}

Loading…
Cancel
Save