download all files

This commit is contained in:
Roman Pyrih
2025-06-24 14:14:35 +02:00
parent ebed09c00b
commit 4c71b5d9c2
72007 changed files with 10407727 additions and 40029 deletions

View File

@@ -0,0 +1,59 @@
<?php
/*
* This file is part of SwiftMailer.
* (c) 2004-2009 Chris Corbyn
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* A reporter which "collects" failures for the Reporter plugin.
*
* @author Chris Corbyn
*/
class NewsletterPro_Swift_Plugins_Reporters_HitReporter implements NewsletterPro_Swift_Plugins_Reporter
{
/**
* The list of failures.
*
* @var array
*/
private $_failures = array();
private $_failures_cache = array();
/**
* Notifies this ReportNotifier that $address failed or succeeded.
*
* @param NewsletterPro_Swift_Mime_Message $message
* @param string $address
* @param int $result from {@link RESULT_PASS, RESULT_FAIL}
*/
public function notify(NewsletterPro_Swift_Mime_Message $message, $address, $result)
{
if (self::RESULT_FAIL == $result && !isset($this->_failures_cache[$address])) {
$this->_failures[] = $address;
$this->_failures_cache[$address] = true;
}
}
/**
* Get an array of addresses for which delivery failed.
*
* @return array
*/
public function getFailedRecipients()
{
return $this->_failures;
}
/**
* Clear the buffer (empty the list).
*/
public function clear()
{
$this->_failures = $this->_failures_cache = array();
}
}

View File

@@ -0,0 +1,39 @@
<?php
/*
* This file is part of SwiftMailer.
* (c) 2004-2009 Chris Corbyn
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* A HTML output reporter for the Reporter plugin.
*
* @author Chris Corbyn
*/
class NewsletterPro_Swift_Plugins_Reporters_HtmlReporter implements NewsletterPro_Swift_Plugins_Reporter
{
/**
* Notifies this ReportNotifier that $address failed or succeeded.
*
* @param NewsletterPro_Swift_Mime_Message $message
* @param string $address
* @param int $result from {@see RESULT_PASS, RESULT_FAIL}
*/
public function notify(NewsletterPro_Swift_Mime_Message $message, $address, $result)
{
if (self::RESULT_PASS == $result) {
echo "<div style=\"color: #fff; background: #006600; padding: 2px; margin: 2px;\">".PHP_EOL;
echo "PASS ".$address.PHP_EOL;
echo "</div>".PHP_EOL;
flush();
} else {
echo "<div style=\"color: #fff; background: #880000; padding: 2px; margin: 2px;\">".PHP_EOL;
echo "FAIL ".$address.PHP_EOL;
echo "</div>".PHP_EOL;
flush();
}
}
}

View File

@@ -0,0 +1,26 @@
<?php
/**
* Since 2013 Ovidiu Cimpean
*
* Ovidiu Cimpean - Newsletter Pro © All rights reserved.
*
* DISCLAIMER
*
* Do not edit, modify or copy this file.
* If you wish to customize it, contact us at addons4prestashop@gmail.com.
*
* @author Ovidiu Cimpean <addons4prestashop@gmail.com>
* @copyright Since 2013 Ovidiu Cimpean
* @license Do not edit, modify or copy this file
* @version Release: 4
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;