Пример #1
0
                 $sr = new Statement_Result($opCamp);
                 $opCamp->fetch();
                 $campID = $sr->Get('ID');
                 $subArray = getSubscriber($sid, 2);
                 if (is_array($subArray) && count($subArray) != 0) {
                     # Add Report
                     $addRpt = new lethe();
                     $addRpt->OID = $subArray['subscriber_OID'];
                     $addRpt->reportCID = $campID;
                     $addRpt->reportPos = 0;
                     # Click
                     $addRpt->reportIP = $_SERVER['REMOTE_ADDR'];
                     $addRpt->reportMail = $subArray['subscriber_mail'];
                     $addRpt->reportBounceType = 'unknown';
                     $addRpt->reportExtraInfo = 'URL: ' . $redu . PHP_EOL;
                     $addRpt->addReport();
                     # Redirect URL
                     header('Location: ' . $redu);
                 } else {
                     die('Error Occurred');
                 }
             } else {
                 die('Invalid Campaign');
             }
         }
         $opCamp->close();
     } else {
         # Invalid Pos / 404
         echo base64_decode('PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CjxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KPHRpdGxlPkxldGhlIE5ld3NsZXR0ZXIgVmVyaWZpY2F0aW9uPC90aXRsZT4KPGxpbmsgaHJlZj0nLy9mb250cy5nb29nbGVhcGlzLmNvbS9jc3M/ZmFtaWx5PUxvYnN0ZXInIHJlbD0nc3R5bGVzaGVldCcgdHlwZT0ndGV4dC9jc3MnPgo8bGluayBocmVmPScvL2ZvbnRzLmdvb2dsZWFwaXMuY29tL2Nzcz9mYW1pbHk9T3BlbitTYW5zOjQwMCw2MDAsNzAwJmFtcDtzdWJzZXQ9bGF0aW4sbGF0aW4tZXh0JyByZWw9J3N0eWxlc2hlZXQnIHR5cGU9J3RleHQvY3NzJz4KPHN0eWxlPgojbGV0aGUtaGVhZHt0ZXh0LWFsaWduOmNlbnRlcjsgbWFyZ2luLXRvcDo1MHB4O21hcmdpbi1ib3R0b206NDBweDt9CiNsZXRoZS1mb290ZXIgcHtsaW5lLWhlaWdodDo1cHg7Y29sb3I6IzJDM0U1MDt9Cmgz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