$price_point = (isset($extractParams['EventId']) and $extractParams['EventId'] != '' and $extractParams['EventId'] != null) ? base64_decode($extractParams['EventId']) : $OprSubParam['CPEVENT'];
// print_r($userStatus);
// $userStatus = 'NEWUSER';
if ($userStatus == 'NEWUSER' or $userStatus == 'UNSUBSCRIBED') {
    // print_r($operator);
    // print_r($config->allowedOperators);
    // exit;
    if (!in_array($operator, $config->allowedOperators)) {
        header("Location: error.php?responseId=999999&resDesc=Invalid Operator Info");
        exit;
    } else {
        $direct2cg = new Direct2CG\direct2cg($promo, $f);
        // $campaignDetails = new Campaign\Campaign();
        // $user->setCapaignDetails();
        $image_url = $direct2cg->getCGimages();
        $retUrl = $direct2cg->getUrlFromParams();
        // print_r($campaignDetails);
        // echo $fUrl;
        //print_r($hostName);
        $urlPart = strtok($_SERVER["REQUEST_URI"], '?');
        $urlPart = substr(strtok($_SERVER["REQUEST_URI"], '?'), 0, strrpos($urlPart, "/"));
        if (stripos($hostName, "http://") !== false) {
            $fUrl = $hostName . $urlPart . '/error.php';
        } else {
            $fUrl = 'http://' . $hostName . $urlPart . '/error.php';
        }
        // echo $price_point;
        if (isset($t) and isset($n) and isset($d) and isset($m)) {
            $n1 = base64_decode($n);
            if ($i == null) {
                $retUrl .= '?t=' . $t . '_n=' . $n1 . '_d=' . $d . '_m=' . $m;