Example #1
0
}
$subscriberId = intval(mosGetParam($_REQUEST, 'subscriber', 0));
$listId = intval(mosGetParam($_REQUEST, 'listid', 0));
$mailingId = intval(mosGetParam($_REQUEST, 'mailingid', 0));
$lisType = intval(mosGetParam($_REQUEST, 'listype', 0));
$action = mosGetParam($_REQUEST, 'act', '');
$task = mosGetParam($_REQUEST, 'task', '');
$message = mosGetParam($_REQUEST, 'message', '');
$name = mosGetParam($_REQUEST, 'name', '');
$email = mosGetParam($_REQUEST, 'email', '');
$cle = addslashes(mosGetParam($_REQUEST, 'cle', ''));
$redirectlink = str_replace('&', '&', trim(mosGetParam($_REQUEST, 'redirectlink', '')));
$userId = $my->id;
$validated = false;
if ($subscriberId > 0 && !empty($cle) && $userId < 1) {
    if (subscribers::checkValidKey($subscriberId, $cle)) {
        $userId = $subscriberId;
        $validated = true;
    } else {
        echo acajoom::printM('red', _NOT_AUTH);
        $subscriberId = 0;
    }
}
global $mainframe;
$mainframe->addCustomHeadTag('<link rel="stylesheet" href="components/com_acajoom/css/acajoom.css" type="text/css" >');
$d['subscriberId'] = $subscriberId;
$d['cle'] = $cle;
if ($userId > 0 && empty($cle)) {
    $validated = true;
    $subscriberId = subscribers::getSubscriberIdFromUserId($userId);
}