├── robots.txt ├── app ├── .htaccess ├── scripts │ └── nette.phar ├── index.html ├── cfg │ ├── zp.neon │ ├── netteInit.php │ └── dbConnect.php ├── pages │ └── footer.php └── forms │ ├── login.php │ ├── password.php │ └── renderer.php ├── log └── .htaccess ├── temp └── .htaccess ├── vendor ├── .htaccess ├── swiftmailer │ └── swiftmailer │ │ ├── VERSION │ │ ├── tests │ │ ├── _samples │ │ │ ├── files │ │ │ │ ├── data.txt │ │ │ │ └── swiftmailer.png │ │ │ ├── smime │ │ │ │ ├── CA.srl │ │ │ │ ├── sign.crt │ │ │ │ ├── encrypt.crt │ │ │ │ ├── encrypt2.crt │ │ │ │ ├── sign2.crt │ │ │ │ ├── intermediate.crt │ │ │ │ ├── ca.crt │ │ │ │ ├── ca.key │ │ │ │ ├── sign.key │ │ │ │ ├── encrypt.key │ │ │ │ ├── sign2.key │ │ │ │ ├── encrypt2.key │ │ │ │ └── intermediate.key │ │ │ ├── dkim │ │ │ │ ├── dkim.test.pub │ │ │ │ └── dkim.test.priv │ │ │ └── charsets │ │ │ │ ├── utf-8 │ │ │ │ ├── two.txt │ │ │ │ └── one.txt │ │ │ │ └── iso-2022-jp │ │ │ │ └── one.txt │ │ ├── StreamCollector.php │ │ ├── fixtures │ │ │ ├── EsmtpTransportFixture.php │ │ │ └── MimeEntityFixture.php │ │ ├── acceptance │ │ │ └── Swift │ │ │ │ ├── AttachmentAcceptanceTest.php │ │ │ │ ├── EmbeddedFileAcceptanceTest.php │ │ │ │ ├── MimePartAcceptanceTest.php │ │ │ │ ├── DependencyContainerAcceptanceTest.php │ │ │ │ ├── Transport │ │ │ │ └── StreamBuffer │ │ │ │ │ ├── ProcessAcceptanceTest.php │ │ │ │ │ ├── BasicSocketAcceptanceTest.php │ │ │ │ │ ├── TlsSocketAcceptanceTest.php │ │ │ │ │ └── SslSocketAcceptanceTest.php │ │ │ │ ├── EncodingAcceptanceTest.php │ │ │ │ ├── Mime │ │ │ │ └── HeaderEncoder │ │ │ │ │ └── Base64HeaderEncoderAcceptanceTest.php │ │ │ │ └── Encoder │ │ │ │ ├── Base64EncoderAcceptanceTest.php │ │ │ │ ├── QpEncoderAcceptanceTest.php │ │ │ │ └── Rfc2231EncoderAcceptanceTest.php │ │ ├── unit │ │ │ └── Swift │ │ │ │ ├── Mime │ │ │ │ ├── SimpleMimeEntityTest.php │ │ │ │ ├── HeaderEncoder │ │ │ │ │ └── Base64HeaderEncoderTest.php │ │ │ │ └── EmbeddedFileTest.php │ │ │ │ ├── Plugins │ │ │ │ ├── Loggers │ │ │ │ │ └── EchoLoggerTest.php │ │ │ │ └── Reporters │ │ │ │ │ └── HtmlReporterTest.php │ │ │ │ ├── Events │ │ │ │ ├── TransportChangeEventTest.php │ │ │ │ ├── EventObjectTest.php │ │ │ │ ├── CommandEventTest.php │ │ │ │ ├── ResponseEventTest.php │ │ │ │ └── TransportExceptionEventTest.php │ │ │ │ ├── Signers │ │ │ │ └── OpenDKIMSignerTest.php │ │ │ │ ├── StreamFilters │ │ │ │ └── StringReplacementFilterFactoryTest.php │ │ │ │ ├── Transport │ │ │ │ └── StreamBufferTest.php │ │ │ │ ├── CharacterReader │ │ │ │ ├── GenericFixedWidthReaderTest.php │ │ │ │ └── UsAsciiReaderTest.php │ │ │ │ └── Mailer │ │ │ │ └── ArrayRecipientIteratorTest.php │ │ ├── bug │ │ │ └── Swift │ │ │ │ ├── Bug118Test.php │ │ │ │ ├── Bug71Test.php │ │ │ │ ├── Bug274Test.php │ │ │ │ ├── Bug518Test.php │ │ │ │ ├── Bug111Test.php │ │ │ │ ├── Bug534Test.php │ │ │ │ └── Bug206Test.php │ │ ├── bootstrap.php │ │ ├── smoke │ │ │ └── Swift │ │ │ │ └── Smoke │ │ │ │ ├── BasicSmokeTest.php │ │ │ │ ├── AttachmentSmokeTest.php │ │ │ │ ├── HtmlWithAttachmentSmokeTest.php │ │ │ │ └── InternationalSmokeTest.php │ │ ├── SwiftMailerTestCase.php │ │ ├── acceptance.conf.php.default │ │ ├── IdenticalBinaryConstraint.php │ │ ├── SwiftMailerSmokeTestCase.php │ │ └── smoke.conf.php.default │ │ ├── .gitignore │ │ ├── doc │ │ ├── uml │ │ │ ├── Mime.graffle │ │ │ ├── Encoders.graffle │ │ │ └── Transports.graffle │ │ ├── index.rst │ │ ├── japanese.rst │ │ ├── including-the-files.rst │ │ └── help-resources.rst │ │ ├── .gitattributes │ │ ├── lib │ │ ├── dependency_maps │ │ │ ├── message_deps.php │ │ │ └── cache_deps.php │ │ ├── classes │ │ │ └── Swift │ │ │ │ ├── Events │ │ │ │ ├── EventListener.php │ │ │ │ ├── CommandListener.php │ │ │ │ ├── ResponseListener.php │ │ │ │ ├── TransportChangeEvent.php │ │ │ │ ├── TransportExceptionListener.php │ │ │ │ ├── SendListener.php │ │ │ │ ├── Event.php │ │ │ │ ├── TransportExceptionEvent.php │ │ │ │ ├── TransportChangeListener.php │ │ │ │ ├── EventObject.php │ │ │ │ ├── ResponseEvent.php │ │ │ │ └── CommandEvent.php │ │ │ │ ├── Signer.php │ │ │ │ ├── Plugins │ │ │ │ ├── Timer.php │ │ │ │ ├── Sleeper.php │ │ │ │ ├── Pop │ │ │ │ │ ├── Pop3Exception.php │ │ │ │ │ └── Pop3Connection.php │ │ │ │ ├── Logger.php │ │ │ │ ├── Decorator │ │ │ │ │ └── Replacements.php │ │ │ │ ├── Reporter.php │ │ │ │ ├── Loggers │ │ │ │ │ ├── EchoLogger.php │ │ │ │ │ └── ArrayLogger.php │ │ │ │ ├── Reporters │ │ │ │ │ ├── HtmlReporter.php │ │ │ │ │ └── HitReporter.php │ │ │ │ ├── MessageLogger.php │ │ │ │ └── ImpersonatePlugin.php │ │ │ │ ├── SignedMessage.php │ │ │ │ ├── FileStream.php │ │ │ │ ├── Mime │ │ │ │ ├── HeaderEncoder.php │ │ │ │ ├── CharsetObserver.php │ │ │ │ ├── EncodingObserver.php │ │ │ │ ├── ParameterizedHeader.php │ │ │ │ ├── ContentEncoder.php │ │ │ │ ├── EmbeddedFile.php │ │ │ │ ├── ContentEncoder │ │ │ │ │ └── RawContentEncoder.php │ │ │ │ └── HeaderEncoder │ │ │ │ │ └── Base64HeaderEncoder.php │ │ │ │ ├── CharacterReaderFactory.php │ │ │ │ ├── ReplacementFilterFactory.php │ │ │ │ ├── RfcComplianceException.php │ │ │ │ ├── DependencyException.php │ │ │ │ ├── IoException.php │ │ │ │ ├── SwiftException.php │ │ │ │ ├── Filterable.php │ │ │ │ ├── TransportException.php │ │ │ │ ├── Encoder.php │ │ │ │ ├── StreamFilter.php │ │ │ │ ├── Transport │ │ │ │ ├── MailInvoker.php │ │ │ │ ├── Esmtp │ │ │ │ │ ├── Authenticator.php │ │ │ │ │ └── Auth │ │ │ │ │ │ ├── PlainAuthenticator.php │ │ │ │ │ │ └── LoginAuthenticator.php │ │ │ │ ├── SmtpAgent.php │ │ │ │ ├── SimpleMailInvoker.php │ │ │ │ └── IoBuffer.php │ │ │ │ ├── Mailer │ │ │ │ ├── RecipientIterator.php │ │ │ │ └── ArrayRecipientIterator.php │ │ │ │ ├── Signers │ │ │ │ ├── BodySigner.php │ │ │ │ └── HeaderSigner.php │ │ │ │ ├── NullTransport.php │ │ │ │ ├── Validate.php │ │ │ │ ├── ByteStream │ │ │ │ └── TemporaryFileByteStream.php │ │ │ │ ├── SpoolTransport.php │ │ │ │ ├── MailTransport.php │ │ │ │ ├── OutputByteStream.php │ │ │ │ ├── FailoverTransport.php │ │ │ │ ├── LoadBalancedTransport.php │ │ │ │ ├── SendmailTransport.php │ │ │ │ ├── KeyCache │ │ │ │ └── KeyCacheInputStream.php │ │ │ │ ├── Spool.php │ │ │ │ ├── StreamFilters │ │ │ │ ├── StringReplacementFilterFactory.php │ │ │ │ └── StringReplacementFilter.php │ │ │ │ ├── Transport.php │ │ │ │ ├── ConfigurableSpool.php │ │ │ │ ├── Encoding.php │ │ │ │ ├── MimePart.php │ │ │ │ ├── Image.php │ │ │ │ ├── Encoder │ │ │ │ └── Base64Encoder.php │ │ │ │ └── CharacterReader.php │ │ ├── swift_required_pear.php │ │ ├── swift_required.php │ │ ├── swift_init.php │ │ └── preferences.php │ │ ├── .travis.yml │ │ ├── README │ │ ├── composer.json │ │ ├── LICENSE │ │ └── phpunit.xml.dist ├── composer │ ├── autoload_psr4.php │ ├── autoload_namespaces.php │ ├── autoload_files.php │ └── LICENSE └── autoload.php ├── favicon.ico ├── assets └── images │ ├── HowTo.png │ ├── logo │ ├── ZP.png │ ├── logo.png │ └── favicon.png │ ├── ipad │ ├── newSlide.jpg │ └── ipad-slide-1.png │ ├── people │ ├── Mojmir.jpg │ └── Uzivatel.png │ └── team │ └── MultiTricker.png ├── index.php ├── .gitignore └── README.md /robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | -------------------------------------------------------------------------------- /app/.htaccess: -------------------------------------------------------------------------------- 1 | Order Allow,Deny 2 | Deny from all 3 | -------------------------------------------------------------------------------- /log/.htaccess: -------------------------------------------------------------------------------- 1 | Order Allow,Deny 2 | Deny from all 3 | -------------------------------------------------------------------------------- /temp/.htaccess: -------------------------------------------------------------------------------- 1 | Order Allow,Deny 2 | Deny from all 3 | -------------------------------------------------------------------------------- /vendor/.htaccess: -------------------------------------------------------------------------------- 1 | Order Allow,Deny 2 | Deny from all 3 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/VERSION: -------------------------------------------------------------------------------- 1 | Swift-5.4.1 2 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/files/data.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/CA.srl: -------------------------------------------------------------------------------- 1 | D42DA34CF90FA0DE 2 | -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/favicon.ico -------------------------------------------------------------------------------- /app/scripts/nette.phar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/app/scripts/nette.phar -------------------------------------------------------------------------------- /assets/images/HowTo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/assets/images/HowTo.png -------------------------------------------------------------------------------- /assets/images/logo/ZP.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/assets/images/logo/ZP.png -------------------------------------------------------------------------------- /assets/images/logo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/assets/images/logo/logo.png -------------------------------------------------------------------------------- /assets/images/ipad/newSlide.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/assets/images/ipad/newSlide.jpg -------------------------------------------------------------------------------- /assets/images/logo/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/assets/images/logo/favicon.png -------------------------------------------------------------------------------- /assets/images/people/Mojmir.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/assets/images/people/Mojmir.jpg -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/.gitignore: -------------------------------------------------------------------------------- 1 | /tests/acceptance.conf.php 2 | /tests/smoke.conf.php 3 | /build/* 4 | /vendor/ 5 | -------------------------------------------------------------------------------- /assets/images/people/Uzivatel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/assets/images/people/Uzivatel.png -------------------------------------------------------------------------------- /assets/images/ipad/ipad-slide-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/assets/images/ipad/ipad-slide-1.png -------------------------------------------------------------------------------- /assets/images/team/MultiTricker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/assets/images/team/MultiTricker.png -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/doc/uml/Mime.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/vendor/swiftmailer/swiftmailer/doc/uml/Mime.graffle -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/doc/uml/Encoders.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/vendor/swiftmailer/swiftmailer/doc/uml/Encoders.graffle -------------------------------------------------------------------------------- /app/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | nope 9 | 10 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/doc/uml/Transports.graffle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/vendor/swiftmailer/swiftmailer/doc/uml/Transports.graffle -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/files/swiftmailer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MultiTricker/zakovskapostou/master/vendor/swiftmailer/swiftmailer/tests/_samples/files/swiftmailer.png -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | content .= $arg; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/dependency_maps/message_deps.php: -------------------------------------------------------------------------------- 1 | register('message.message') 5 | ->asNewInstanceOf('Swift_Message') 6 | 7 | ->register('message.mimepart') 8 | ->asNewInstanceOf('Swift_MimePart') 9 | ; 10 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/fixtures/EsmtpTransportFixture.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/tracy/tracy/src/shortcuts.php', 10 | 'a1d067aa2e53d6b47171c03cfc0ea5be' => $vendorDir . '/nette/safe-stream/src/loader.php', 11 | '2c102faa651ef8ea5874edb585946bce' => $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php', 12 | ); 13 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Signer.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | interface Swift_Signer 18 | { 19 | public function reset(); 20 | } 21 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/acceptance/Swift/MimePartAcceptanceTest.php: -------------------------------------------------------------------------------- 1 | register('properties.charset')->asValue(null); 12 | 13 | return Swift_MimePart::newInstance(); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Mime/HeaderEncoder/Base64HeaderEncoderTest.php: -------------------------------------------------------------------------------- 1 | assertEquals('B', $encoder->getName()); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /app/pages/footer.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/bug/Swift/Bug118Test.php: -------------------------------------------------------------------------------- 1 | _message = new Swift_Message(); 10 | } 11 | 12 | public function testCallingGenerateIdChangesTheMessageId() 13 | { 14 | $currentId = $this->_message->getId(); 15 | $this->_message->generateId(); 16 | $newId = $this->_message->getId(); 17 | 18 | $this->assertNotEquals($currentId, $newId); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/Timer.php: -------------------------------------------------------------------------------- 1 | 18 | * 19 | * @deprecated 20 | */ 21 | class Swift_SignedMessage extends Swift_Message 22 | { 23 | } 24 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | 3 | php: 4 | - 5.3 5 | - 5.4 6 | - 5.5 7 | - 5.6 8 | - hhvm-nightly 9 | 10 | before_script: 11 | - cp tests/acceptance.conf.php.default tests/acceptance.conf.php 12 | - cp tests/smoke.conf.php.default tests/smoke.conf.php 13 | - composer self-update 14 | - composer update --no-interaction --prefer-source 15 | - gem install mailcatcher 16 | - mailcatcher --smtp-port 4456 17 | 18 | script: 19 | - phpunit --verbose 20 | 21 | matrix: 22 | allow_failures: 23 | - php: 5.6 24 | - php: hhvm-nightly 25 | fast_finish: true 26 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/bug/Swift/Bug71Test.php: -------------------------------------------------------------------------------- 1 | _message = new Swift_Message('test'); 10 | } 11 | 12 | public function testCallingToStringAfterSettingNewBodyReflectsChanges() 13 | { 14 | $this->_message->setBody('BODY1'); 15 | $this->assertRegExp('/BODY1/', $this->_message->toString()); 16 | 17 | $this->_message->setBody('BODY2'); 18 | $this->assertRegExp('/BODY2/', $this->_message->toString()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/FileStream.php: -------------------------------------------------------------------------------- 1 | listItems() as $itemName) { 13 | try { 14 | $di->lookup($itemName); 15 | } catch (Swift_DependencyException $e) { 16 | $this->fail($e->getMessage()); 17 | } 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/CharacterReaderFactory.php: -------------------------------------------------------------------------------- 1 | setExpectedException('Swift_IoException', 'The path cannot be empty'); 9 | $message->attach(Swift_Attachment::fromPath('')); 10 | } 11 | 12 | public function testNonEmptyFileNameAsAttachement() 13 | { 14 | $message = new Swift_Message(); 15 | try { 16 | $message->attach(Swift_Attachment::fromPath(__FILE__)); 17 | } catch (Exception $e) { 18 | $this->fail('Path should not be empty'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/ResponseListener.php: -------------------------------------------------------------------------------- 1 | getSource(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/DependencyException.php: -------------------------------------------------------------------------------- 1 | setDebugMode('IP'); 7 | //$configurator->enableDebugger(__DIR__ . '/../../log', "multi@tricker.cz"); 8 | $configurator->setTempDirectory(__DIR__ . '/../../temp'); 9 | $configurator->addConfig(__DIR__ . '/zp.neon'); 10 | $container = $configurator->createContainer(); 11 | 12 | session_name("zakovskapostou"); 13 | ini_set("session.gc_maxlifetime", "7200"); 14 | ini_set("session.cookie_domain", ".zakovskapostou.cz"); 15 | ini_set('session.save_path', dirname(__FILE__) . "/../../../tmp"); 16 | session_save_path(dirname(__FILE__) . "/../../../tmp"); 17 | 18 | // seshny 19 | if(!isset($_SESSION)) 20 | { 21 | session_start(); 22 | } -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | add('Swift_', __DIR__.'/unit'); 5 | 6 | set_include_path(get_include_path().PATH_SEPARATOR.dirname(__DIR__).'/lib'); 7 | 8 | \Mockery::getConfiguration()->allowMockingNonExistentMethods(false); 9 | 10 | if (is_file(__DIR__.'/acceptance.conf.php')) { 11 | require_once __DIR__.'/acceptance.conf.php'; 12 | } 13 | if (is_file(__DIR__.'/smoke.conf.php')) { 14 | require_once __DIR__.'/smoke.conf.php'; 15 | } 16 | require_once __DIR__.'/StreamCollector.php'; 17 | require_once __DIR__.'/IdenticalBinaryConstraint.php'; 18 | require_once __DIR__.'/SwiftMailerTestCase.php'; 19 | require_once __DIR__.'/SwiftMailerSmokeTestCase.php'; 20 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/dependency_maps/cache_deps.php: -------------------------------------------------------------------------------- 1 | register('cache') 5 | ->asAliasOf('cache.array') 6 | 7 | ->register('tempdir') 8 | ->asValue('/tmp') 9 | 10 | ->register('cache.null') 11 | ->asSharedInstanceOf('Swift_KeyCache_NullKeyCache') 12 | 13 | ->register('cache.array') 14 | ->asSharedInstanceOf('Swift_KeyCache_ArrayKeyCache') 15 | ->withDependencies(array('cache.inputstream')) 16 | 17 | ->register('cache.disk') 18 | ->asSharedInstanceOf('Swift_KeyCache_DiskKeyCache') 19 | ->withDependencies(array('cache.inputstream', 'tempdir')) 20 | 21 | ->register('cache.inputstream') 22 | ->asNewInstanceOf('Swift_KeyCache_SimpleKeyCacheInputStream') 23 | ; 24 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/doc/japanese.rst: -------------------------------------------------------------------------------- 1 | Using Swift Mailer for Japanese Emails 2 | ====================================== 3 | 4 | To send emails in Japanese, you need to tweak the default configuration. 5 | 6 | After requiring the Swift Mailer autoloader (by including the 7 | ``swift_required.php`` file), call the ``Swift::init()`` method with the 8 | following code:: 9 | 10 | require_once '/path/to/swift-mailer/lib/swift_required.php'; 11 | 12 | Swift::init(function () { 13 | Swift_DependencyContainer::getInstance() 14 | ->register('mime.qpheaderencoder') 15 | ->asAliasOf('mime.base64headerencoder'); 16 | 17 | Swift_Preferences::getInstance()->setCharset('iso-2022-jp'); 18 | }); 19 | 20 | /* rest of code goes here */ 21 | 22 | That's all! 23 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/TransportExceptionListener.php: -------------------------------------------------------------------------------- 1 | add('>> Foo'); 10 | $data = ob_get_clean(); 11 | 12 | $this->assertEquals('>> Foo'.PHP_EOL, $data); 13 | } 14 | 15 | public function testAddingEntryDumpsEscapedLineWithHtml() 16 | { 17 | $logger = new Swift_Plugins_Loggers_EchoLogger(true); 18 | ob_start(); 19 | $logger->add('>> Foo'); 20 | $data = ob_get_clean(); 21 | 22 | $this->assertEquals('>> Foo
'.PHP_EOL, $data); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/smoke/Swift/Smoke/BasicSmokeTest.php: -------------------------------------------------------------------------------- 1 | _getMailer(); 11 | $message = Swift_Message::newInstance() 12 | ->setSubject('[Swift Mailer] BasicSmokeTest') 13 | ->setFrom(array(SWIFT_SMOKE_EMAIL_ADDRESS => 'Swift Mailer')) 14 | ->setTo(SWIFT_SMOKE_EMAIL_ADDRESS) 15 | ->setBody('One, two, three, four, five...'.PHP_EOL. 16 | 'six, seven, eight...' 17 | ) 18 | ; 19 | $this->assertEquals(1, $mailer->send($message), 20 | '%s: The smoke test should send a single message' 21 | ); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/swift_required_pear.php: -------------------------------------------------------------------------------- 1 | =5.3.3" 19 | }, 20 | "require-dev": { 21 | "mockery/mockery": "~0.9.1,<0.9.4" 22 | }, 23 | "autoload": { 24 | "files": ["lib/swift_required.php"] 25 | }, 26 | "extra": { 27 | "branch-alias": { 28 | "dev-master": "5.4-dev" 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Filterable.php: -------------------------------------------------------------------------------- 1 | 'Foo') or ('foo@bar' => NULL). 28 | * 29 | * @return array 30 | */ 31 | public function nextRecipient(); 32 | } 33 | -------------------------------------------------------------------------------- /app/cfg/dbConnect.php: -------------------------------------------------------------------------------- 1 | 6 | Nepodarilo se spojit s databazovym serverem a prihlasit se. Prosim, zkontrolujte nastaveni.
7 | Unable to connect to database server and log in. Please, check out your settings. 8 | "); 9 | } 10 | 11 | if(!((bool)mysqli_query($GLOBALS["DBC"], "USE database"))) 12 | { 13 | die ("
14 | Chyba ve vybrani databaze \"{$dbDb}\". Prosim, zkontrolujte nastaveni.
15 | Unable to select database \"{$dbDb}\". Please, check out your settings. 16 |
"); 17 | } 18 | 19 | mysqli_query($GLOBALS["DBC"], "SET NAMES utf8;"); -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/SendListener.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | interface Swift_Signers_BodySigner extends Swift_Signer 17 | { 18 | /** 19 | * Change the Swift_Signed_Message to apply the singing. 20 | * 21 | * @param Swift_Message $message 22 | * 23 | * @return Swift_Signers_BodySigner 24 | */ 25 | public function signMessage(Swift_Message $message); 26 | 27 | /** 28 | * Return the list of header a signer might tamper. 29 | * 30 | * @return array 31 | */ 32 | public function getAlteredHeaders(); 33 | } 34 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/acceptance/Swift/Transport/StreamBuffer/ProcessAcceptanceTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped( 12 | 'Cannot run test without a path to sendmail (define '. 13 | 'SWIFT_SENDMAIL_PATH in tests/acceptance.conf.php if you wish to run this test)' 14 | ); 15 | } 16 | 17 | parent::setUp(); 18 | } 19 | 20 | protected function _initializeBuffer() 21 | { 22 | $this->_buffer->initialize(array( 23 | 'type' => Swift_Transport_IoBuffer::TYPE_PROCESS, 24 | 'command' => SWIFT_SENDMAIL_PATH.' -bs', 25 | )); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/SwiftMailerTestCase.php: -------------------------------------------------------------------------------- 1 | _createTransport(); 8 | $evt = $this->_createEvent($transport); 9 | $ref = $evt->getTransport(); 10 | $this->assertEquals($transport, $ref); 11 | } 12 | 13 | public function testSourceIsTransport() 14 | { 15 | $transport = $this->_createTransport(); 16 | $evt = $this->_createEvent($transport); 17 | $ref = $evt->getSource(); 18 | $this->assertEquals($transport, $ref); 19 | } 20 | 21 | // -- Creation Methods 22 | 23 | private function _createEvent(Swift_Transport $source) 24 | { 25 | return new Swift_Events_TransportChangeEvent($source); 26 | } 27 | 28 | private function _createTransport() 29 | { 30 | return $this->getMock('Swift_Transport'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Authenticator.php: -------------------------------------------------------------------------------- 1 | assertEquals('7bit', $encoder->getName()); 11 | } 12 | 13 | public function testGet8BitEncodingReturns8BitEncoder() 14 | { 15 | $encoder = Swift_Encoding::get8BitEncoding(); 16 | $this->assertEquals('8bit', $encoder->getName()); 17 | } 18 | 19 | public function testGetQpEncodingReturnsQpEncoder() 20 | { 21 | $encoder = Swift_Encoding::getQpEncoding(); 22 | $this->assertEquals('quoted-printable', $encoder->getName()); 23 | } 24 | 25 | public function testGetBase64EncodingReturnsBase64Encoder() 26 | { 27 | $encoder = Swift_Encoding::getBase64Encoding(); 28 | $this->assertEquals('base64', $encoder->getName()); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Signers/OpenDKIMSignerTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped( 12 | 'Need OpenDKIM extension run these tests.' 13 | ); 14 | } 15 | } 16 | 17 | public function testBasicSigningHeaderManipulation() 18 | { 19 | } 20 | 21 | // Default Signing 22 | public function testSigningDefaults() 23 | { 24 | } 25 | 26 | // SHA256 Signing 27 | public function testSigning256() 28 | { 29 | } 30 | 31 | // Relaxed/Relaxed Hash Signing 32 | public function testSigningRelaxedRelaxed256() 33 | { 34 | } 35 | 36 | // Relaxed/Simple Hash Signing 37 | public function testSigningRelaxedSimple256() 38 | { 39 | } 40 | 41 | // Simple/Relaxed Hash Signing 42 | public function testSigningSimpleRelaxed256() 43 | { 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Events/EventObjectTest.php: -------------------------------------------------------------------------------- 1 | _createEvent($source); 9 | $ref = $evt->getSource(); 10 | $this->assertEquals($source, $ref); 11 | } 12 | 13 | public function testEventDoesNotHaveCancelledBubbleWhenNew() 14 | { 15 | $source = new stdClass(); 16 | $evt = $this->_createEvent($source); 17 | $this->assertFalse($evt->bubbleCancelled()); 18 | } 19 | 20 | public function testBubbleCanBeCancelledInEvent() 21 | { 22 | $source = new stdClass(); 23 | $evt = $this->_createEvent($source); 24 | $evt->cancelBubble(); 25 | $this->assertTrue($evt->bubbleCancelled()); 26 | } 27 | 28 | // -- Creation Methods 29 | 30 | private function _createEvent($source) 31 | { 32 | return new Swift_Events_EventObject($source); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/NullTransport.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | /** 12 | * Pretends messages have been sent, but just ignores them. 13 | * 14 | * @author Fabien Potencier 15 | */ 16 | class Swift_NullTransport extends Swift_Transport_NullTransport 17 | { 18 | /** 19 | * Create a new NullTransport. 20 | */ 21 | public function __construct() 22 | { 23 | call_user_func_array( 24 | array($this, 'Swift_Transport_NullTransport::__construct'), 25 | Swift_DependencyContainer::getInstance() 26 | ->createDependenciesFor('transport.null') 27 | ); 28 | } 29 | 30 | /** 31 | * Create a new NullTransport instance. 32 | * 33 | * @return Swift_NullTransport 34 | */ 35 | public static function newInstance() 36 | { 37 | return new self(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Fabien Potencier 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /app/forms/login.php: -------------------------------------------------------------------------------- 1 | setMethod("POST"); 7 | if(in_array($_SERVER['HTTP_HOST'], ["zakovskapostou.cz", "www.zakovskapostou.cz"])) 8 | { 9 | $form->setAction("https://zakovskapostou.cz"); 10 | } 11 | $form->addHidden("logInAndDoNotForget", 1); 12 | $form->addText("email", "E-mail: ") 13 | ->setType('email') 14 | ->setRequired("Vyplňte Váš e-mail použitý pro přístup do administrace.") 15 | ->addRule(Nette\Forms\Form::EMAIL, 'Musíte vyplnit platnou e-mailovou adresu.') 16 | ->addRule('zpEmailExists', "Tento e-mail na tomto serveru není registrovaný."); 17 | $form->addPassword("heslo", "Heslo: ") 18 | ->setRequired("Vyplňte Vaše heslo.") 19 | ->addRule(Nette\Forms\Form::MIN_LENGTH, 'Vaše heslo musí být dlouhé alespoň %d znaků. Toto jste při registraci nemohli použít.', 6) 20 | ->addRule('zpValidLogin', "Tyto přihlašovací údaje nejsou správné."); 21 | $form->addSubmit("odeslat", "Přihlásit se")->setAttribute('class', 'btn btn-primary'); 22 | $form->setDefaults([]); 23 | 24 | if(!$form->isSuccess()) 25 | { 26 | $form->render(); 27 | } 28 | -------------------------------------------------------------------------------- /vendor/composer/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Copyright (c) 2016 Nils Adermann, Jordi Boggiano 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/ContentEncoder.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | class Swift_Validate 16 | { 17 | /** 18 | * Grammar Object. 19 | * 20 | * @var Swift_Mime_Grammar 21 | */ 22 | private static $grammar = null; 23 | 24 | /** 25 | * Checks if an e-mail address matches the current grammars. 26 | * 27 | * @param string $email 28 | * 29 | * @return bool 30 | */ 31 | public static function email($email) 32 | { 33 | if (self::$grammar === null) { 34 | self::$grammar = Swift_DependencyContainer::getInstance() 35 | ->lookup('mime.grammar'); 36 | } 37 | 38 | return (bool) preg_match( 39 | '/^'.self::$grammar->getDefinition('addr-spec').'$/D', 40 | $email 41 | ); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/smoke/Swift/Smoke/AttachmentSmokeTest.php: -------------------------------------------------------------------------------- 1 | _attFile = __DIR__.'/../../../_samples/files/textfile.zip'; 11 | } 12 | 13 | public function testAttachmentSending() 14 | { 15 | $mailer = $this->_getMailer(); 16 | $message = Swift_Message::newInstance() 17 | ->setSubject('[Swift Mailer] AttachmentSmokeTest') 18 | ->setFrom(array(SWIFT_SMOKE_EMAIL_ADDRESS => 'Swift Mailer')) 19 | ->setTo(SWIFT_SMOKE_EMAIL_ADDRESS) 20 | ->setBody('This message should contain an attached ZIP file (named "textfile.zip").'.PHP_EOL. 21 | 'When unzipped, the archive should produce a text file which reads:'.PHP_EOL. 22 | '"This is part of a Swift Mailer v4 smoke test."' 23 | ) 24 | ->attach(Swift_Attachment::fromPath($this->_attFile)) 25 | ; 26 | $this->assertEquals(1, $mailer->send($message), 27 | '%s: The smoke test should send a single message' 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SimpleMailInvoker.php: -------------------------------------------------------------------------------- 1 | markTestSkipped( 12 | 'Cannot run test without an SMTP host to connect to (define '. 13 | 'SWIFT_SMTP_HOST in tests/acceptance.conf.php if you wish to run this test)' 14 | ); 15 | } 16 | parent::setUp(); 17 | } 18 | 19 | protected function _initializeBuffer() 20 | { 21 | $parts = explode(':', SWIFT_SMTP_HOST); 22 | $host = $parts[0]; 23 | $port = isset($parts[1]) ? $parts[1] : 25; 24 | 25 | $this->_buffer->initialize(array( 26 | 'type' => Swift_Transport_IoBuffer::TYPE_SOCKET, 27 | 'host' => $host, 28 | 'port' => $port, 29 | 'protocol' => 'tcp', 30 | 'blocking' => 1, 31 | 'timeout' => 15, 32 | )); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/charsets/utf-8/one.txt: -------------------------------------------------------------------------------- 1 | Код одно гринспана руководишь на. Его вы знания движение. Ты две начать 2 | одиночку, сказать основатель удовольствием но миф. Бы какие система тем. 3 | Полностью использует три мы, человек клоунов те нас, бы давать творческую 4 | эзотерическая шеф. 5 | 6 | Мог не помнить никакого сэкономленного, две либо какие пишите бы. Должен 7 | компанию кто те, этот заключалась проектировщик не ты. Глупые периоды ты 8 | для. Вам который хороший он. Те любых кремния концентрируются мог, 9 | собирать принадлежите без вы. 10 | 11 | Джоэла меньше хорошего вы миф, за тем году разработки. Даже управляющим 12 | руководители был не. Три коде выпускать заботиться ну. То его система 13 | удовольствием безостановочно, или ты главной процессорах. Мы без джоэл 14 | знания получат, статьи остальные мы ещё. 15 | 16 | Них русском касается поскольку по, образование должником 17 | систематизированный ну мои. Прийти кандидата университет но нас, для бы 18 | должны никакого, биг многие причин интервьюирования за. 19 | 20 | Тем до плиту почему. Вот учёт такие одного бы, об биг разным внешних 21 | промежуток. Вас до какому возможностей безответственный, были погодите бы 22 | его, по них глупые долгий количества. 23 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/sign.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDFjCCAf4CCQDULaNM+Q+g3DANBgkqhkiG9w0BAQUFADBMMRcwFQYDVQQDDA5T 3 | d2lmdG1haWxlciBDQTEUMBIGA1UECgwLU3dpZnRtYWlsZXIxDjAMBgNVBAcMBVBh 4 | cmlzMQswCQYDVQQGEwJGUjAeFw0xMzExMjcwODM5MTBaFw0xNzExMjYwODM5MTBa 5 | ME4xGTAXBgNVBAMMEFN3aWZ0bWFpbGVyLVVzZXIxFDASBgNVBAoMC1N3aWZ0bWFp 6 | bGVyMQ4wDAYDVQQHDAVQYXJpczELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEB 7 | AQUAA4IBDwAwggEKAoIBAQCTe8ZouyjVGgqlljhaswYqLj7icMoHq+Qg13CE+zJg 8 | tl2/UzyPhAd3WWOIvlQ0lu+E/n0bXrS6+q28DrQ3UgJ9BskzzLz15qUO12b92AvG 9 | vLJ+9kKuiM5KXDljOAsXc7/A9UUGwEFA1D0mkeMmkHuiQavAMkzBLha22hGpg/hz 10 | VbE6W9MGna0szd8yh38IY1M5uR+OZ0dG3KbVZb7H3N0OLOP8j8n+4YtAGAW+Onz/ 11 | 2CGPfZ1kaDMvY/WTZwyGeA4FwCPy1D8tfeswqKnWDB9Sfl8hns5VxnoJ3dqKQHeX 12 | iC4OMfQ0U4CcuM5sVYJZRNNwP7/TeUh3HegnOnuZ1hy9AgMBAAEwDQYJKoZIhvcN 13 | AQEFBQADggEBAAEPjGt98GIK6ecAEat52aG+8UP7TuZaxoH3cbZdhFTafrP8187F 14 | Rk5G3LCPTeA/QIzbHppA4fPAiS07OVSwVCknpTJbtKKn0gmtTZxThacFHF2NlzTH 15 | XxM5bIbkK3jzIF+WattyTSj34UHHfaNAmvmS7Jyq6MhjSDbcQ+/dZ9eo2tF/AmrC 16 | +MBhyH8aUYwKhTOQQh8yC11niziHhGO99FQ4tpuD9AKlun5snHq4uK9AOFe8VhoR 17 | q2CqX5g5v8OAtdlvzhp50IqD4BNOP+JrUxjGLHDG76BZZIK2Ai1eBz+GhRlIQru/ 18 | 8EhQzd94mdFEPblGbmuD2QXWLFFKLiYOwOc= 19 | -----END CERTIFICATE----- 20 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/encrypt.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDFjCCAf4CCQDULaNM+Q+g3TANBgkqhkiG9w0BAQUFADBMMRcwFQYDVQQDDA5T 3 | d2lmdG1haWxlciBDQTEUMBIGA1UECgwLU3dpZnRtYWlsZXIxDjAMBgNVBAcMBVBh 4 | cmlzMQswCQYDVQQGEwJGUjAeFw0xMzExMjcwODM5MTFaFw0xNzExMjYwODM5MTFa 5 | ME4xGTAXBgNVBAMMEFN3aWZ0bWFpbGVyLVVzZXIxFDASBgNVBAoMC1N3aWZ0bWFp 6 | bGVyMQ4wDAYDVQQHDAVQYXJpczELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEB 7 | AQUAA4IBDwAwggEKAoIBAQCcNO+fVZBT2znmVwXXZ08n3G5WA1kyvqh9z4RBBZOD 8 | V46Gc1X9MMXr9+wzZBFkAckKaa6KsTkeUr4pC8XUBpQnakxH/kW9CaDPdOE+7wNo 9 | FkPfc6pjWWgpAVxdkrtk7pb4/aGQ++HUkqVu0cMpIcj/7ht7H+3QLZHybn+oMr2+ 10 | FDnn8vPmHxVioinSrxKTlUITuLWS9ZZUTrDa0dG8UAv55A/Tba4T4McCPDpJSA4m 11 | 9jrW321NGQUntQoItOJxagaueSvh6PveGV826gTXoU5X+YJ3I2OZUEQ2l6yByAzf 12 | nT+QlxPj5ikotFwL72HsenYtetynOO/k43FblAF/V/l7AgMBAAEwDQYJKoZIhvcN 13 | AQEFBQADggEBAJ048Sdb9Sw5OJM5L00OtGHgcT1B/phqdzSjkM/s64cg3Q20VN+F 14 | fZIIkOnxgyYWcpOWXcdNw2tm5OWhWPGsBcYgMac7uK/ukgoOJSjICg+TTS5kRo96 15 | iHtmImqkWc6WjNODh7uMnQ6DsZsscdl7Bkx5pKhgGnEdHr5GW8sztgXgyPQO5LUs 16 | YzCmR1RK1WoNMxwbPrGLgYdcpJw69ns5hJbZbMWwrdufiMjYWvTfBPABkk1JRCcY 17 | K6rRTAx4fApsw1kEIY8grGxyAzfRXLArpro7thJr0SIquZ8GpXkQT/mgRR8JD9Hp 18 | z9yhr98EnKzITE/yclGN4pUsuk9S3jiyzUU= 19 | -----END CERTIFICATE----- 20 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/encrypt2.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDFzCCAf8CCQDULaNM+Q+g3jANBgkqhkiG9w0BAQUFADBMMRcwFQYDVQQDDA5T 3 | d2lmdG1haWxlciBDQTEUMBIGA1UECgwLU3dpZnRtYWlsZXIxDjAMBgNVBAcMBVBh 4 | cmlzMQswCQYDVQQGEwJGUjAeFw0xMzExMjcwODM5MTJaFw0xNzExMjYwODM5MTJa 5 | ME8xGjAYBgNVBAMMEVN3aWZ0bWFpbGVyLVVzZXIyMRQwEgYDVQQKDAtTd2lmdG1h 6 | aWxlcjEOMAwGA1UEBwwFUGFyaXMxCzAJBgNVBAYTAkZSMIIBIjANBgkqhkiG9w0B 7 | AQEFAAOCAQ8AMIIBCgKCAQEAw4AoYVYss2sa1BWJAJpK6gVemjXrp1mVXVpb1/z6 8 | SH15AGsp3kiNXsMpgvsdofbqC/5HXrw2G8gWqo+uh6GuK67+Tvp7tO2aD4+8CZzU 9 | K1cffj7Pbx95DUPwXckv79PT5ZcuyeFaVo92aug11+gS/P8n0WXSlzZxNuZ1f3G2 10 | r/IgwfNKZlarEf1Ih781L2SwmyveW/dtsV2pdrd4IZwsV5SOF2zBFIXSuhPN0c+m 11 | mtwSJe+Ow1udLX4KJkAX8sGVFJ5P5q4s2nS9vLkkj7X6YRQscbyJO9L7e1TksRqL 12 | DLxZwiko6gUhp4/bIs1wDj5tzkQBi4qXviRq3i7A9b2d0QIDAQABMA0GCSqGSIb3 13 | DQEBBQUAA4IBAQAj8iARhPB2DA3YfT5mJJrgU156Sm0Z3mekAECsr+VqFZtU/9Dz 14 | pPFYEf0hg61cjvwhLtOmaTB+50hu1KNNlu8QlxAfPJqNxtH85W0CYiZHJwW9eSTr 15 | z1swaHpRHLDUgo3oAXdh5syMbdl0MWos0Z14WP5yYu4IwJXs+j2JRW70BICyrNjm 16 | d+AjCzoYjKMdJkSj4uxQEOuW2/5veAoDyU+kHDdfT7SmbyoKu+Pw4Xg/XDuKoWYg 17 | w5/sRiw5vxsmOr9+anspDHdP9rUe1JEfwAJqZB3fwdqEyxu54Xw/GedG4wZBEJf0 18 | ZcS1eh31emcjYUHQa1IA93jcFSmXzJ+ftJrY 19 | -----END CERTIFICATE----- 20 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/sign2.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDGTCCAgECAQEwDQYJKoZIhvcNAQEFBQAwVjEhMB8GA1UEAwwYU3dpZnRtYWls 3 | ZXIgSW50ZXJtZWRpYXRlMRQwEgYDVQQKDAtTd2lmdG1haWxlcjEOMAwGA1UEBwwF 4 | UGFyaXMxCzAJBgNVBAYTAkZSMB4XDTE0MTEyMDEzMjYyNloXDTE4MTExOTEzMjYy 5 | NlowTzEaMBgGA1UEAwwRU3dpZnRtYWlsZXItVXNlcjIxFDASBgNVBAoMC1N3aWZ0 6 | bWFpbGVyMQ4wDAYDVQQHDAVQYXJpczELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3 7 | DQEBAQUAA4IBDwAwggEKAoIBAQDbr1m4z/rzFS/DxUUQIhKNx19oAeGYLt3niaEP 8 | twfvBMNB80gMgM9d+XtqrPAMPeY/2C8t5NlChNPKMcR70JBKdmlSH4/aTjaIfWmD 9 | PoZJjvRRXINZgSHNKIt4ZGAN/EPFr19CBisV4iPxzu+lyIbbkaZJ/qtyatlP7m/q 10 | 8TnykFRlyxNEveCakpcXeRd3YTFGKWoED+/URhVc0cCPZVjoeSTtPHAYBnC29lG5 11 | VFbq6NBQiyF4tpjOHRarq6G8PtQFH9CpAZg5bPk3bqka9C8mEr5jWfrM4EHtUkTl 12 | CwVLOQRBsz/nMBT27pXZh18GU0hc3geNDN4kqaeqgNBo0mblAgMBAAEwDQYJKoZI 13 | hvcNAQEFBQADggEBAAHDMuv6oxWPsTQWWGWWFIk7QZu3iogMqFuxhhQxg8BE37CT 14 | Vt1mBVEjYGMkWhMSwWBMWuP6yuOZecWtpp6eOie/UKGg1XoW7Y7zq2aQaP7YPug0 15 | 8Lgq1jIo7iO2b6gZeMtLiTZrxyte0z1XzS3wy7ZC9mZjYd7QE7mZ+/rzQ0x5zjOp 16 | G8b3msS/yYYJCMN+HtHln++HOGmm6uhvbsHTfvvZvtl7F5vJ5WhGGlUfjhanSEtZ 17 | 1RKx+cbgIv1eFOGO1OTuZfEuKdLb0T38d/rjLeI99nVVKEIGtLmX4dj327GHe/D3 18 | aPr2blF2gOvlzkfN9Vz6ZUE2s3rVBeCg2AVseYQ= 19 | -----END CERTIFICATE----- 20 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/TemporaryFileByteStream.php: -------------------------------------------------------------------------------- 1 | getPath())) === false) { 30 | throw new Swift_IoException('Failed to get temporary file content.'); 31 | } 32 | 33 | return $content; 34 | } 35 | 36 | public function __destruct() 37 | { 38 | if (file_exists($this->getPath())) { 39 | @unlink($this->getPath()); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/intermediate.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDFjCCAf4CAQEwDQYJKoZIhvcNAQEFBQAwTDEXMBUGA1UEAwwOU3dpZnRtYWls 3 | ZXIgQ0ExFDASBgNVBAoMC1N3aWZ0bWFpbGVyMQ4wDAYDVQQHDAVQYXJpczELMAkG 4 | A1UEBhMCRlIwHhcNMTQxMTIwMTMyNTQxWhcNMTgxMTE5MTMyNTQxWjBWMSEwHwYD 5 | VQQDDBhTd2lmdG1haWxlciBJbnRlcm1lZGlhdGUxFDASBgNVBAoMC1N3aWZ0bWFp 6 | bGVyMQ4wDAYDVQQHDAVQYXJpczELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3DQEB 7 | AQUAA4IBDwAwggEKAoIBAQDSgEhftX6f1wV+uqWl4J+zwCn8fHaLZT6GZ0Gs9ThE 8 | 4e+4mkLG1rvSEIJon8U0ic8Zph1UGa1Grveh5bgbldHlFxYSsCCyDGgixRvRWNhI 9 | KuO+SxaIZChqqKwVn3aNQ4BZOSo/MjJ/jQyr9BMgMmdxlHR3e1wkkeAkW//sOsfu 10 | xQGF1h9yeQvuu/GbG6K7vHSGOGd5O3G7bftfQ7l78TMqeJ7jV32AdJeuO5MD4dRn 11 | W4CQLTaeribLN0MKn35UdSiFoZxKHqqWcgtl5xcJWPOmq6CsAJ2Eo90kW/BHOrLv 12 | 10h6Oan9R1PdXSvSCvVnXY3Kz30zofw305oA/KJk/hVzAgMBAAEwDQYJKoZIhvcN 13 | AQEFBQADggEBABijZ2NNd05Js5VFNr4uyaydam9Yqu/nnrxbPRbAXPlCduydu2Gd 14 | d1ekn3nblMJ87Bc7zVyHdAQD8/AfS1LOKuoWHpTzmlpIL+8T5sbCYG5J1jKdeLkh 15 | 7L/UD5v1ACgA33oKtN8GzcrIq8Zp73r0n+c3hFCfDYRSZRCxGyIf3qgU2LBOD0A3 16 | wTff/N8E/p3WaJX9VnuQ7xyRMOubDuqJnlo5YsFv7wjyGOIAz9afZzcEbH6czt/t 17 | g0Xc/kGr/fkAjUu+z3ZfE4247Gut5m3hEVwWkpEEzQo4osX/BEX20Q2nPz9WBq4a 18 | pK3qNNGwAqS4gdE3ihOExMWxAKgr9d2CcU4= 19 | -----END CERTIFICATE----- 20 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/smoke/Swift/Smoke/HtmlWithAttachmentSmokeTest.php: -------------------------------------------------------------------------------- 1 | _attFile = __DIR__.'/../../../_samples/files/textfile.zip'; 11 | } 12 | 13 | public function testAttachmentSending() 14 | { 15 | $mailer = $this->_getMailer(); 16 | $message = Swift_Message::newInstance('[Swift Mailer] HtmlWithAttachmentSmokeTest') 17 | ->setFrom(array(SWIFT_SMOKE_EMAIL_ADDRESS => 'Swift Mailer')) 18 | ->setTo(SWIFT_SMOKE_EMAIL_ADDRESS) 19 | ->attach(Swift_Attachment::fromPath($this->_attFile)) 20 | ->setBody('

This HTML-formatted message should contain an attached ZIP file (named "textfile.zip").'.PHP_EOL. 21 | 'When unzipped, the archive should produce a text file which reads:

'.PHP_EOL. 22 | '

This is part of a Swift Mailer v4 smoke test.

', 'text/html' 23 | ) 24 | ; 25 | $this->assertEquals(1, $mailer->send($message), 26 | '%s: The smoke test should send a single message' 27 | ); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/preferences.php: -------------------------------------------------------------------------------- 1 | setCharset('utf-8'); 13 | 14 | // Without these lines the default caching mechanism is "array" but this uses a lot of memory. 15 | // If possible, use a disk cache to enable attaching large attachments etc. 16 | // You can override the default temporary directory by setting the TMPDIR environment variable. 17 | if (@is_writable($tmpDir = sys_get_temp_dir())) { 18 | $preferences->setTempDir($tmpDir)->setCacheType('disk'); 19 | } 20 | 21 | // this should only be done when Swiftmailer won't use the native QP content encoder 22 | // see mime_deps.php 23 | if (version_compare(phpversion(), '5.4.7', '<')) { 24 | $preferences->setQPDotEscape(false); 25 | } 26 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Events/CommandEventTest.php: -------------------------------------------------------------------------------- 1 | _createEvent($this->_createTransport(), "FOO\r\n"); 8 | $this->assertEquals("FOO\r\n", $evt->getCommand()); 9 | } 10 | 11 | public function testSuccessCodesCanBeFetchedViaGetter() 12 | { 13 | $evt = $this->_createEvent($this->_createTransport(), "FOO\r\n", array(250)); 14 | $this->assertEquals(array(250), $evt->getSuccessCodes()); 15 | } 16 | 17 | public function testSourceIsBuffer() 18 | { 19 | $transport = $this->_createTransport(); 20 | $evt = $this->_createEvent($transport, "FOO\r\n"); 21 | $ref = $evt->getSource(); 22 | $this->assertEquals($transport, $ref); 23 | } 24 | 25 | // -- Creation Methods 26 | 27 | private function _createEvent(Swift_Transport $source, $command, $successCodes = array()) 28 | { 29 | return new Swift_Events_CommandEvent($source, $command, $successCodes); 30 | } 31 | 32 | private function _createTransport() 33 | { 34 | return $this->getMock('Swift_Transport'); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/TransportExceptionEvent.php: -------------------------------------------------------------------------------- 1 | _exception = $ex; 35 | } 36 | 37 | /** 38 | * Get the TransportException thrown. 39 | * 40 | * @return Swift_TransportException 41 | */ 42 | public function getException() 43 | { 44 | return $this->_exception; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/acceptance/Swift/Mime/HeaderEncoder/Base64HeaderEncoderAcceptanceTest.php: -------------------------------------------------------------------------------- 1 | _encoder = new Swift_Mime_HeaderEncoder_Base64HeaderEncoder(); 10 | } 11 | 12 | public function testEncodingJIS() 13 | { 14 | if (function_exists('mb_convert_encoding')) { 15 | // base64_encode and split cannot handle long JIS text to fold 16 | $subject = '長い長い長い長い長い長い長い長い長い長い長い長い長い長い長い長い長い長い長い長い件名'; 17 | 18 | $encodedWrapperLength = strlen('=?iso-2022-jp?'.$this->_encoder->getName().'??='); 19 | 20 | $old = mb_internal_encoding(); 21 | mb_internal_encoding('utf-8'); 22 | $newstring = mb_encode_mimeheader($subject, 'iso-2022-jp', 'B', "\r\n"); 23 | mb_internal_encoding($old); 24 | 25 | $encoded = $this->_encoder->encodeString($subject, 0, 75 - $encodedWrapperLength, 'iso-2022-jp'); 26 | $this->assertEquals( 27 | $encoded, $newstring, 28 | 'Encoded string should decode back to original string for sample ' 29 | ); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/SpoolTransport.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | /** 12 | * Stores Messages in a queue. 13 | * 14 | * @author Fabien Potencier 15 | */ 16 | class Swift_SpoolTransport extends Swift_Transport_SpoolTransport 17 | { 18 | /** 19 | * Create a new SpoolTransport. 20 | * 21 | * @param Swift_Spool $spool 22 | */ 23 | public function __construct(Swift_Spool $spool) 24 | { 25 | $arguments = Swift_DependencyContainer::getInstance() 26 | ->createDependenciesFor('transport.spool'); 27 | 28 | $arguments[] = $spool; 29 | 30 | call_user_func_array( 31 | array($this, 'Swift_Transport_SpoolTransport::__construct'), 32 | $arguments 33 | ); 34 | } 35 | 36 | /** 37 | * Create a new SpoolTransport instance. 38 | * 39 | * @param Swift_Spool $spool 40 | * 41 | * @return Swift_SpoolTransport 42 | */ 43 | public static function newInstance(Swift_Spool $spool) 44 | { 45 | return new self($spool); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/bug/Swift/Bug518Test.php: -------------------------------------------------------------------------------- 1 | setTo('foo@bar.com'); 12 | 13 | $that = $this; 14 | $messageValidation = function ($m) use ($that) { 15 | //the getTo should return the same value as we put in 16 | $that->assertEquals('foo@bar.com', key($m->getTo()), 'The message has changed after it was put to the memory queue'); 17 | 18 | return true; 19 | }; 20 | 21 | $transport = m::mock('Swift_Transport'); 22 | $transport->shouldReceive('isStarted')->andReturn(true); 23 | $transport->shouldReceive('send') 24 | ->with(m::on($messageValidation), $failedRecipients) 25 | ->andReturn(1); 26 | 27 | $memorySpool = new Swift_MemorySpool(); 28 | $memorySpool->queueMessage($message); 29 | 30 | /* 31 | * The message is queued in memory. 32 | * Lets change the message 33 | */ 34 | $message->setTo('other@value.com'); 35 | 36 | $memorySpool->flushQueue($transport, $failedRecipients); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/MailTransport.php: -------------------------------------------------------------------------------- 1 | createDependenciesFor('transport.mail') 29 | ); 30 | 31 | $this->setExtraParams($extraParams); 32 | } 33 | 34 | /** 35 | * Create a new MailTransport instance. 36 | * 37 | * @param string $extraParams To be passed to mail() 38 | * 39 | * @return Swift_MailTransport 40 | */ 41 | public static function newInstance($extraParams = '-f%s') 42 | { 43 | return new self($extraParams); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/ca.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDazCCAlOgAwIBAgIJAKJCGQYLxWT1MA0GCSqGSIb3DQEBBQUAMEwxFzAVBgNV 3 | BAMMDlN3aWZ0bWFpbGVyIENBMRQwEgYDVQQKDAtTd2lmdG1haWxlcjEOMAwGA1UE 4 | BwwFUGFyaXMxCzAJBgNVBAYTAkZSMB4XDTEzMTEyNzA4MzkxMFoXDTE3MTEyNjA4 5 | MzkxMFowTDEXMBUGA1UEAwwOU3dpZnRtYWlsZXIgQ0ExFDASBgNVBAoMC1N3aWZ0 6 | bWFpbGVyMQ4wDAYDVQQHDAVQYXJpczELMAkGA1UEBhMCRlIwggEiMA0GCSqGSIb3 7 | DQEBAQUAA4IBDwAwggEKAoIBAQC7RLdHE3OWo9aZwv1xA/cYyPui/gegxpTqClRp 8 | gGcVQ+jxIfnJQDQndyoAvFDiqOiZ+gAjZGJeUHDp9C/2IZp05MLh+omt9N8pBykm 9 | 3nj/3ZwPXOAO0uyDPAOHhISITAxEuZCqDnq7iYujywtwfQ7bpW1hCK9PfNZYMStM 10 | kw7LsGr5BqcKkPuOWTvxE3+NqK8HxydYolsoApEGhgonyImVh1Pg1Kjkt5ojvwAX 11 | zOdjfw5poY5NArwuLORUH+XocetRo8DC6S42HkU/MoqcYxa9EuRuwuQh7GtE6baR 12 | PgrDsEYaY4Asy43sK81V51F/8Q1bHZKN/goQdxQwzv+/nOLTAgMBAAGjUDBOMB0G 13 | A1UdDgQWBBRHgqkl543tKhsVAvcx1I0JFU7JuDAfBgNVHSMEGDAWgBRHgqkl543t 14 | KhsVAvcx1I0JFU7JuDAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAz 15 | OJiEQcygKGkkXXDiXGBvP/cSznj3nG9FolON0yHUBgdvLfNnctRMStGzPke0siLt 16 | RJvjqiL0Uw+blmLJU8lgMyLJ9ctXkiLJ/WflabN7VzmwYRWe5HzafGQJAg5uFjae 17 | VtAAHQgvbmdXB6brWvcMQmB8di7wjVedeigZvkt1z2V0FtBy8ybJaT5H6bX9Bf5C 18 | dS9r4mLhk/0ThthpRhRxsmupSL6e49nJaIk9q0UTEQVnorJXPcs4SPTIY51bCp6u 19 | cOebhNgndSxCiy0zSD7vRjNiyB/YNGZ9Uv/3DNTLleMZ9kZgfoKVpwYKrRL0IFT/ 20 | cfS2OV1wxRxq668qaOfK 21 | -----END CERTIFICATE----- 22 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/OutputByteStream.php: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | tests/unit 22 | 23 | 24 | tests/acceptance 25 | 26 | 27 | tests/bug 28 | 29 | 30 | tests/smoke 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/FailoverTransport.php: -------------------------------------------------------------------------------- 1 | createDependenciesFor('transport.failover') 29 | ); 30 | 31 | $this->setTransports($transports); 32 | } 33 | 34 | /** 35 | * Create a new FailoverTransport instance. 36 | * 37 | * @param Swift_Transport[] $transports 38 | * 39 | * @return Swift_FailoverTransport 40 | */ 41 | public static function newInstance($transports = array()) 42 | { 43 | return new self($transports); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/acceptance.conf.php.default: -------------------------------------------------------------------------------- 1 | _isHtml = $isHtml; 29 | } 30 | 31 | /** 32 | * Add a log entry. 33 | * 34 | * @param string $entry 35 | */ 36 | public function add($entry) 37 | { 38 | if ($this->_isHtml) { 39 | printf('%s%s%s', htmlspecialchars($entry, ENT_QUOTES), '
', PHP_EOL); 40 | } else { 41 | printf('%s%s', $entry, PHP_EOL); 42 | } 43 | } 44 | 45 | /** 46 | * Not implemented. 47 | */ 48 | public function clear() 49 | { 50 | } 51 | 52 | /** 53 | * Not implemented. 54 | */ 55 | public function dump() 56 | { 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/LoadBalancedTransport.php: -------------------------------------------------------------------------------- 1 | createDependenciesFor('transport.loadbalanced') 29 | ); 30 | 31 | $this->setTransports($transports); 32 | } 33 | 34 | /** 35 | * Create a new LoadBalancedTransport instance. 36 | * 37 | * @param array $transports 38 | * 39 | * @return Swift_LoadBalancedTransport 40 | */ 41 | public static function newInstance($transports = array()) 42 | { 43 | return new self($transports); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/SendmailTransport.php: -------------------------------------------------------------------------------- 1 | createDependenciesFor('transport.sendmail') 29 | ); 30 | 31 | $this->setCommand($command); 32 | } 33 | 34 | /** 35 | * Create a new SendmailTransport instance. 36 | * 37 | * @param string $command 38 | * 39 | * @return Swift_SendmailTransport 40 | */ 41 | public static function newInstance($command = '/usr/sbin/sendmail -bs') 42 | { 43 | return new self($command); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/StreamFilters/StringReplacementFilterFactoryTest.php: -------------------------------------------------------------------------------- 1 | _createFactory(); 8 | $this->assertInstanceof( 9 | 'Swift_StreamFilters_StringReplacementFilter', 10 | $factory->createFilter('a', 'b') 11 | ); 12 | } 13 | 14 | public function testSameInstancesAreCached() 15 | { 16 | $factory = $this->_createFactory(); 17 | $filter1 = $factory->createFilter('a', 'b'); 18 | $filter2 = $factory->createFilter('a', 'b'); 19 | $this->assertSame($filter1, $filter2, '%s: Instances should be cached'); 20 | } 21 | 22 | public function testDifferingInstancesAreNotCached() 23 | { 24 | $factory = $this->_createFactory(); 25 | $filter1 = $factory->createFilter('a', 'b'); 26 | $filter2 = $factory->createFilter('a', 'c'); 27 | $this->assertNotEquals($filter1, $filter2, 28 | '%s: Differing instances should not be cached' 29 | ); 30 | } 31 | 32 | // -- Creation methods 33 | 34 | private function _createFactory() 35 | { 36 | return new Swift_StreamFilters_StringReplacementFilterFactory(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Events/ResponseEventTest.php: -------------------------------------------------------------------------------- 1 | _createEvent($this->_createTransport(), "250 Ok\r\n", true); 8 | $this->assertEquals("250 Ok\r\n", $evt->getResponse(), 9 | '%s: Response should be available via getResponse()' 10 | ); 11 | } 12 | 13 | public function testResultCanBeFetchedViaGetter() 14 | { 15 | $evt = $this->_createEvent($this->_createTransport(), "250 Ok\r\n", false); 16 | $this->assertFalse($evt->isValid(), 17 | '%s: Result should be checkable via isValid()' 18 | ); 19 | } 20 | 21 | public function testSourceIsBuffer() 22 | { 23 | $transport = $this->_createTransport(); 24 | $evt = $this->_createEvent($transport, "250 Ok\r\n", true); 25 | $ref = $evt->getSource(); 26 | $this->assertEquals($transport, $ref); 27 | } 28 | 29 | // -- Creation Methods 30 | 31 | private function _createEvent(Swift_Transport $source, $response, $result) 32 | { 33 | return new Swift_Events_ResponseEvent($source, $response, $result); 34 | } 35 | 36 | private function _createTransport() 37 | { 38 | return $this->getMock('Swift_Transport'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/Reporters/HtmlReporter.php: -------------------------------------------------------------------------------- 1 | '.PHP_EOL; 29 | echo 'PASS '.$address.PHP_EOL; 30 | echo ''.PHP_EOL; 31 | flush(); 32 | } else { 33 | echo '
'.PHP_EOL; 34 | echo 'FAIL '.$address.PHP_EOL; 35 | echo '
'.PHP_EOL; 36 | flush(); 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/forms/password.php: -------------------------------------------------------------------------------- 1 | setMethod("POST"); 7 | $form->setAction(""); 8 | $form->addPassword("stare_heslo", "Staré heslo: ") 9 | ->setRequired("Vyplňte správně Vaše staré heslo.") 10 | ->addRule('oldPasswordCheck', "Staré heslo se neshoduje s tím, které jste zadali."); 11 | $form->addPassword("nove_heslo", "Nové heslo:") 12 | ->setRequired("Vyplňte Vaše nové heslo.") 13 | ->addRule(Nette\Forms\Form::MIN_LENGTH, 'Vaše heslo musí být dlouhé alespoň %d znaků.', 6); 14 | $form->addPassword("nove_heslo_znovu", "Nové heslo znovu pro kontrolu: ") 15 | ->setRequired("Vyplňte znovu Vaše nové heslo pro kontrolu, že je správně zadané.") 16 | ->addRule(Nette\Forms\Form::EQUAL, 'Zadaná hesla se neshodují', $form['nove_heslo']); 17 | $form->addSubmit("odeslat", "Změnit heslo")->setAttribute('class', 'btn btn-primary'); 18 | 19 | if($form->isSuccess()) 20 | { 21 | $_POST['nove_heslo'] = password_hash($_POST['nove_heslo'], PASSWORD_BCRYPT); 22 | 23 | mysqli_query($GLOBALS["DBC"], "UPDATE uzivatel 24 | SET heslo = \"" . mysqli_real_escape_string($GLOBALS["DBC"], $_POST['nove_heslo']) . "\" 25 | WHERE id = '{$uzivatel['id']}';"); 26 | 27 | echo "

Heslo bylo změněno

"; 28 | } 29 | else 30 | { 31 | $form->render(); 32 | } 33 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/KeyCache/KeyCacheInputStream.php: -------------------------------------------------------------------------------- 1 | getRenderer(); 4 | $renderer->wrappers['controls']['container'] = null; 5 | $renderer->wrappers['pair']['container'] = 'div class=form-group'; 6 | $renderer->wrappers['pair']['.error'] = 'has-error'; 7 | $renderer->wrappers['control']['container'] = 'div class=col-sm-6'; 8 | $renderer->wrappers['label']['container'] = 'div class="col-sm-6 control-label"'; 9 | $renderer->wrappers['control']['description'] = 'span class=help-block'; 10 | $renderer->wrappers['control']['errorcontainer'] = 'span class=help-block'; 11 | // make form and controls compatible with Twitter Bootstrap 12 | $form->getElementPrototype()->class('form-horizontal'); 13 | foreach($form->getControls() as $control) 14 | { 15 | if($control instanceof Controls\Button) 16 | { 17 | $control->getControlPrototype()->addClass(empty($usedPrimary) ? 'btn btn-primary' : 'btn btn-default'); 18 | $usedPrimary = true; 19 | } 20 | elseif($control instanceof Controls\TextBase || $control instanceof Controls\SelectBox || $control instanceof Controls\MultiSelectBox) 21 | { 22 | $control->getControlPrototype()->addClass('form-control'); 23 | } 24 | elseif($control instanceof Controls\Checkbox || $control instanceof Controls\CheckboxList || $control instanceof Controls\RadioList) 25 | { 26 | $control->getSeparatorPrototype()->setName('div')->addClass($control->getControlPrototype()->type); 27 | } 28 | } -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/fixtures/MimeEntityFixture.php: -------------------------------------------------------------------------------- 1 | level = $level; 12 | $this->string = $string; 13 | $this->contentType = $contentType; 14 | } 15 | 16 | public function getNestingLevel() 17 | { 18 | return $this->level; 19 | } 20 | 21 | public function toString() 22 | { 23 | return $this->string; 24 | } 25 | 26 | public function getContentType() 27 | { 28 | return $this->contentType; 29 | } 30 | 31 | // These methods are here to account for the implemented interfaces 32 | public function getId() 33 | { 34 | } 35 | public function getHeaders() 36 | { 37 | } 38 | public function getBody() 39 | { 40 | } 41 | public function setBody($body, $contentType = null) 42 | { 43 | } 44 | public function toByteStream(Swift_InputByteStream $is) 45 | { 46 | } 47 | public function charsetChanged($charset) 48 | { 49 | } 50 | public function encoderChanged(Swift_Mime_ContentEncoder $encoder) 51 | { 52 | } 53 | public function getChildren() 54 | { 55 | } 56 | public function setChildren(array $children) 57 | { 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Events/TransportExceptionEventTest.php: -------------------------------------------------------------------------------- 1 | _createException(); 8 | $transport = $this->_createTransport(); 9 | $evt = $this->_createEvent($transport, $ex); 10 | $ref = $evt->getException(); 11 | $this->assertEquals($ex, $ref, 12 | '%s: Exception should be available via getException()' 13 | ); 14 | } 15 | 16 | public function testSourceIsTransport() 17 | { 18 | $ex = $this->_createException(); 19 | $transport = $this->_createTransport(); 20 | $evt = $this->_createEvent($transport, $ex); 21 | $ref = $evt->getSource(); 22 | $this->assertEquals($transport, $ref, 23 | '%s: Transport should be available via getSource()' 24 | ); 25 | } 26 | 27 | // -- Creation Methods 28 | 29 | private function _createEvent(Swift_Transport $transport, Swift_TransportException $ex) 30 | { 31 | return new Swift_Events_TransportExceptionEvent($transport, $ex); 32 | } 33 | 34 | private function _createTransport() 35 | { 36 | return $this->getMock('Swift_Transport'); 37 | } 38 | 39 | private function _createException() 40 | { 41 | return new Swift_TransportException(''); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/TransportChangeListener.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | /** 12 | * Interface for spools. 13 | * 14 | * @author Fabien Potencier 15 | */ 16 | interface Swift_Spool 17 | { 18 | /** 19 | * Starts this Spool mechanism. 20 | */ 21 | public function start(); 22 | 23 | /** 24 | * Stops this Spool mechanism. 25 | */ 26 | public function stop(); 27 | 28 | /** 29 | * Tests if this Spool mechanism has started. 30 | * 31 | * @return bool 32 | */ 33 | public function isStarted(); 34 | 35 | /** 36 | * Queues a message. 37 | * 38 | * @param Swift_Mime_Message $message The message to store 39 | * 40 | * @return bool Whether the operation has succeeded 41 | */ 42 | public function queueMessage(Swift_Mime_Message $message); 43 | 44 | /** 45 | * Sends messages using the given transport instance. 46 | * 47 | * @param Swift_Transport $transport A transport instance 48 | * @param string[] $failedRecipients An array of failures by-reference 49 | * 50 | * @return int The number of sent emails 51 | */ 52 | public function flushQueue(Swift_Transport $transport, &$failedRecipients = null); 53 | } 54 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/EmbeddedFile.php: -------------------------------------------------------------------------------- 1 | setDisposition('inline'); 31 | $this->setId($this->getId()); 32 | } 33 | 34 | /** 35 | * Get the nesting level of this EmbeddedFile. 36 | * 37 | * Returns {@see LEVEL_RELATED}. 38 | * 39 | * @return int 40 | */ 41 | public function getNestingLevel() 42 | { 43 | return self::LEVEL_RELATED; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/StreamFilters/StringReplacementFilterFactory.php: -------------------------------------------------------------------------------- 1 | _filters[$search][$replace])) { 32 | if (!isset($this->_filters[$search])) { 33 | $this->_filters[$search] = array(); 34 | } 35 | 36 | if (!isset($this->_filters[$search][$replace])) { 37 | $this->_filters[$search][$replace] = array(); 38 | } 39 | 40 | $this->_filters[$search][$replace] = new Swift_StreamFilters_StringReplacementFilter($search, $replace); 41 | } 42 | 43 | return $this->_filters[$search][$replace]; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/acceptance/Swift/Transport/StreamBuffer/TlsSocketAcceptanceTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped( 13 | 'TLS is not configured for your system. It is not possible to run this test' 14 | ); 15 | } 16 | if (!defined('SWIFT_TLS_HOST')) { 17 | $this->markTestSkipped( 18 | 'Cannot run test without a TLS enabled SMTP host to connect to (define '. 19 | 'SWIFT_TLS_HOST in tests/acceptance.conf.php if you wish to run this test)' 20 | ); 21 | } 22 | parent::setUp(); 23 | } 24 | 25 | protected function _initializeBuffer() 26 | { 27 | $parts = explode(':', SWIFT_TLS_HOST); 28 | $host = $parts[0]; 29 | $port = isset($parts[1]) ? $parts[1] : 25; 30 | 31 | $this->_buffer->initialize(array( 32 | 'type' => Swift_Transport_IoBuffer::TYPE_SOCKET, 33 | 'host' => $host, 34 | 'port' => $port, 35 | 'protocol' => 'tls', 36 | 'blocking' => 1, 37 | 'timeout' => 15, 38 | )); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/acceptance/Swift/Transport/StreamBuffer/SslSocketAcceptanceTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped( 13 | 'SSL is not configured for your system. It is not possible to run this test' 14 | ); 15 | } 16 | if (!defined('SWIFT_SSL_HOST')) { 17 | $this->markTestSkipped( 18 | 'Cannot run test without an SSL enabled SMTP host to connect to (define '. 19 | 'SWIFT_SSL_HOST in tests/acceptance.conf.php if you wish to run this test)' 20 | ); 21 | } 22 | 23 | parent::setUp(); 24 | } 25 | 26 | protected function _initializeBuffer() 27 | { 28 | $parts = explode(':', SWIFT_SSL_HOST); 29 | $host = $parts[0]; 30 | $port = isset($parts[1]) ? $parts[1] : 25; 31 | 32 | $this->_buffer->initialize(array( 33 | 'type' => Swift_Transport_IoBuffer::TYPE_SOCKET, 34 | 'host' => $host, 35 | 'port' => $port, 36 | 'protocol' => 'ssl', 37 | 'blocking' => 1, 38 | 'timeout' => 15, 39 | )); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer/ArrayRecipientIterator.php: -------------------------------------------------------------------------------- 1 | _recipients = $recipients; 33 | } 34 | 35 | /** 36 | * Returns true only if there are more recipients to send to. 37 | * 38 | * @return bool 39 | */ 40 | public function hasNext() 41 | { 42 | return !empty($this->_recipients); 43 | } 44 | 45 | /** 46 | * Returns an array where the keys are the addresses of recipients and the 47 | * values are the names. e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL). 48 | * 49 | * @return array 50 | */ 51 | public function nextRecipient() 52 | { 53 | return array_splice($this->_recipients, 0, 1); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/bug/Swift/Bug111Test.php: -------------------------------------------------------------------------------- 1 | array( 9 | 'email1@example.com', 10 | 'email2@example.com', 11 | 'email3@example.com', 12 | 'email4@example.com', 13 | 'email5@example.com', 14 | ), 15 | 'sub' => array( 16 | '-name-' => array( 17 | 'email1', 18 | '"email2"', 19 | 'email3\\', 20 | 'email4', 21 | 'email5', 22 | ), 23 | '-url-' => array( 24 | 'http://google.com', 25 | 'http://yahoo.com', 26 | 'http://hotmail.com', 27 | 'http://aol.com', 28 | 'http://facebook.com', 29 | ), 30 | ), 31 | ); 32 | $json = json_encode($complicated_header); 33 | 34 | $message = new Swift_Message(); 35 | $headers = $message->getHeaders(); 36 | $headers->addTextHeader('X-SMTPAPI', $json); 37 | $header = $headers->get('X-SMTPAPI'); 38 | 39 | $this->assertEquals('Swift_Mime_Headers_UnstructuredHeader', get_class($header)); 40 | $this->assertEquals($json, $header->getFieldBody()); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport.php: -------------------------------------------------------------------------------- 1 | value = $value; 15 | } 16 | 17 | /** 18 | * Evaluates the constraint for parameter $other. Returns TRUE if the 19 | * constraint is met, FALSE otherwise. 20 | * 21 | * @param mixed $other Value or object to evaluate. 22 | * 23 | * @return bool 24 | */ 25 | public function matches($other) 26 | { 27 | $aHex = $this->asHexString($this->value); 28 | $bHex = $this->asHexString($other); 29 | 30 | return $aHex === $bHex; 31 | } 32 | 33 | /** 34 | * Returns a string representation of the constraint. 35 | * 36 | * @return string 37 | */ 38 | public function toString() 39 | { 40 | return 'indentical binary'; 41 | } 42 | 43 | /** 44 | * Get the given string of bytes as a stirng of Hexadecimal sequences. 45 | * 46 | * @param string $binary 47 | * 48 | * @return string 49 | */ 50 | private function asHexString($binary) 51 | { 52 | $hex = ''; 53 | 54 | $bytes = unpack('H*', $binary); 55 | 56 | foreach ($bytes as &$byte) { 57 | $byte = strtoupper($byte); 58 | } 59 | 60 | return implode('', $bytes); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/bug/Swift/Bug534Test.php: -------------------------------------------------------------------------------- 1 | setFrom('from@example.com') 11 | ->setTo('to@example.com') 12 | ->setSubject('test') 13 | ; 14 | $cid = $message->embed(Swift_Image::fromPath(__DIR__.'/../../_samples/files/swiftmailer.png')); 15 | $message->setBody('', 'text/html'); 16 | 17 | $that = $this; 18 | $messageValidation = function (Swift_Mime_Message $message) use ($that) { 19 | preg_match('/cid:(.*)"/', $message->toString(), $matches); 20 | $cid = $matches[1]; 21 | preg_match('/Content-ID: <(.*)>/', $message->toString(), $matches); 22 | $contentId = $matches[1]; 23 | $that->assertEquals($cid, $contentId, 'cid in body and mime part Content-ID differ'); 24 | 25 | return true; 26 | }; 27 | 28 | $failedRecipients = array(); 29 | 30 | $transport = m::mock('Swift_Transport'); 31 | $transport->shouldReceive('isStarted')->andReturn(true); 32 | $transport->shouldReceive('send')->with(m::on($messageValidation), $failedRecipients)->andReturn(1); 33 | 34 | $memorySpool = new Swift_MemorySpool(); 35 | $memorySpool->queueMessage($message); 36 | $memorySpool->flushQueue($transport, $failedRecipients); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/PlainAuthenticator.php: -------------------------------------------------------------------------------- 1 | executeCommand(sprintf("AUTH PLAIN %s\r\n", $message), array(235)); 42 | 43 | return true; 44 | } catch (Swift_TransportException $e) { 45 | $agent->executeCommand("RSET\r\n", array(250)); 46 | 47 | return false; 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/smoke/Swift/Smoke/InternationalSmokeTest.php: -------------------------------------------------------------------------------- 1 | _attFile = __DIR__.'/../../../_samples/files/textfile.zip'; 11 | } 12 | 13 | public function testAttachmentSending() 14 | { 15 | $mailer = $this->_getMailer(); 16 | $message = Swift_Message::newInstance() 17 | ->setCharset('utf-8') 18 | ->setSubject('[Swift Mailer] InternationalSmokeTest (διεθνής)') 19 | ->setFrom(array(SWIFT_SMOKE_EMAIL_ADDRESS => 'Χριστοφορου (Swift Mailer)')) 20 | ->setTo(SWIFT_SMOKE_EMAIL_ADDRESS) 21 | ->setBody('This message should contain an attached ZIP file (named "κείμενο, εδάφιο, θέμα.zip").'.PHP_EOL. 22 | 'When unzipped, the archive should produce a text file which reads:'.PHP_EOL. 23 | '"This is part of a Swift Mailer v4 smoke test."'.PHP_EOL. 24 | PHP_EOL. 25 | 'Following is some arbitrary Greek text:'.PHP_EOL. 26 | 'Δεν βρέθηκαν λέξεις.' 27 | ) 28 | ->attach(Swift_Attachment::fromPath($this->_attFile) 29 | ->setContentType('application/zip') 30 | ->setFilename('κείμενο, εδάφιο, θέμα.zip') 31 | ) 32 | ; 33 | $this->assertEquals(1, $mailer->send($message), 34 | '%s: The smoke test should send a single message' 35 | ); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Transport/StreamBufferTest.php: -------------------------------------------------------------------------------- 1 | _createFactory(); 8 | $factory->expects($this->once()) 9 | ->method('createFilter') 10 | ->with('a', 'b') 11 | ->will($this->returnCallback(array($this, '_createFilter'))); 12 | 13 | $buffer = $this->_createBuffer($factory); 14 | $buffer->setWriteTranslations(array('a' => 'b')); 15 | } 16 | 17 | public function testOverridingTranslationsOnlyAddsNeededFilters() 18 | { 19 | $factory = $this->_createFactory(); 20 | $factory->expects($this->exactly(2)) 21 | ->method('createFilter') 22 | ->will($this->returnCallback(array($this, '_createFilter'))); 23 | 24 | $buffer = $this->_createBuffer($factory); 25 | $buffer->setWriteTranslations(array('a' => 'b')); 26 | $buffer->setWriteTranslations(array('x' => 'y', 'a' => 'b')); 27 | } 28 | 29 | // -- Creation methods 30 | 31 | private function _createBuffer($replacementFactory) 32 | { 33 | return new Swift_Transport_StreamBuffer($replacementFactory); 34 | } 35 | 36 | private function _createFactory() 37 | { 38 | return $this->getMock('Swift_ReplacementFilterFactory'); 39 | } 40 | 41 | public function _createFilter() 42 | { 43 | return $this->getMock('Swift_StreamFilter'); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/charsets/iso-2022-jp/one.txt: -------------------------------------------------------------------------------- 1 | ISO-2022-JPは、インターネット上(特に電子メール)などで使われる日本の文字用の文字符号化方式。ISO/IEC 2022のエスケープシーケンスを利用して文字集合を切り替える7ビットのコードであることを特徴とする (アナウンス機能のエスケープシーケンスは省略される)。俗に「JISコード」と呼ばれることもある。 2 | 3 | 概要 4 | 日本語表記への利用が想定されている文字コードであり、日本語の利用されるネットワークにおいて、日本の規格を応用したものである。また文字集合としては、日本語で用いられる漢字、ひらがな、カタカナはもちろん、ラテン文字、ギリシア文字、キリル文字なども含んでおり、学術や産業の分野での利用も考慮たものとなっている。規格名に、ISOの日本語の言語コードであるjaではなく、国・地域名コードのJPが示されているゆえんである。 5 | 文字集合としてJIS X 0201のC0集合(制御文字)、JIS X 0201のラテン文字集合、ISO 646の国際基準版図形文字、JIS X 0208の1978年版(JIS C 6226-1978)と1983年および1990年版が利用できる。JIS X 0201の片仮名文字集合は利用できない。1986年以降、日本の電子メールで用いられてきたJUNETコードを、村井純・Mark Crispin・Erik van der Poelが1993年にRFC化したもの(RFC 1468)。後にJIS X 0208:1997の附属書2としてJISに規定された。MIMEにおける文字符号化方式の識別用の名前として IANA に登録されている。 6 | なお、符号化の仕様についてはISO/IEC 2022#ISO-2022-JPも参照。 7 | 8 | ISO-2022-JPと非標準的拡張使用 9 | 「JISコード」(または「ISO-2022-JP」)というコード名の規定下では、その仕様通りの使用が求められる。しかし、Windows OS上では、実際にはCP932コード (MicrosoftによるShift JISを拡張した亜種。ISO-2022-JP規定外文字が追加されている。)による独自拡張(の文字)を断りなく使うアプリケーションが多い。この例としてInternet ExplorerやOutlook Expressがある。また、EmEditor、秀丸エディタやThunderbirdのようなMicrosoft社以外のWindowsアプリケーションでも同様の場合がある。この場合、ISO-2022-JPの範囲外の文字を使ってしまうと、異なる製品間では未定義不明文字として認識されるか、もしくは文字化けを起こす原因となる。そのため、Windows用の電子メールクライアントであっても独自拡張の文字を使用すると警告を出したり、あえて使えないように制限しているものも存在する。さらにはISO-2022-JPの範囲内であってもCP932は非標準文字(FULLWIDTH TILDE等)を持つので文字化けの原因になり得る。 10 | また、符号化方式名をISO-2022-JPとしているのに、文字集合としてはJIS X 0212 (いわゆる補助漢字) やJIS X 0201の片仮名文字集合 (いわゆる半角カナ) をも符号化している例があるが、ISO-2022-JPではこれらの文字を許容していない。これらの符号化は独自拡張の実装であり、中にはISO/IEC 2022の仕様に準拠すらしていないものもある[2]。従って受信側の電子メールクライアントがこれらの独自拡張に対応していない場合、その文字あるいはその文字を含む行、時にはテキスト全体が文字化けすることがある。 11 | 12 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/CharacterReader/GenericFixedWidthReaderTest.php: -------------------------------------------------------------------------------- 1 | assertSame(1, $reader->getInitialByteSize()); 9 | 10 | $reader = new Swift_CharacterReader_GenericFixedWidthReader(4); 11 | $this->assertSame(4, $reader->getInitialByteSize()); 12 | } 13 | 14 | public function testValidationValueIsBasedOnOctetCount() 15 | { 16 | $reader = new Swift_CharacterReader_GenericFixedWidthReader(4); 17 | 18 | $this->assertSame( 19 | 1, $reader->validateByteSequence(array(0x01, 0x02, 0x03), 3) 20 | ); //3 octets 21 | 22 | $this->assertSame( 23 | 2, $reader->validateByteSequence(array(0x01, 0x0A), 2) 24 | ); //2 octets 25 | 26 | $this->assertSame( 27 | 3, $reader->validateByteSequence(array(0xFE), 1) 28 | ); //1 octet 29 | 30 | $this->assertSame( 31 | 0, $reader->validateByteSequence(array(0xFE, 0x03, 0x67, 0x9A), 4) 32 | ); //All 4 octets 33 | } 34 | 35 | public function testValidationFailsIfTooManyOctets() 36 | { 37 | $reader = new Swift_CharacterReader_GenericFixedWidthReader(6); 38 | 39 | $this->assertSame(-1, $reader->validateByteSequence( 40 | array(0xFE, 0x03, 0x67, 0x9A, 0x10, 0x09, 0x85), 7 41 | )); //7 octets 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/Loggers/ArrayLogger.php: -------------------------------------------------------------------------------- 1 | _size = $size; 40 | } 41 | 42 | /** 43 | * Add a log entry. 44 | * 45 | * @param string $entry 46 | */ 47 | public function add($entry) 48 | { 49 | $this->_log[] = $entry; 50 | while (count($this->_log) > $this->_size) { 51 | array_shift($this->_log); 52 | } 53 | } 54 | 55 | /** 56 | * Clear the log contents. 57 | */ 58 | public function clear() 59 | { 60 | $this->_log = array(); 61 | } 62 | 63 | /** 64 | * Get this log as a string. 65 | * 66 | * @return string 67 | */ 68 | public function dump() 69 | { 70 | return implode(PHP_EOL, $this->_log); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/EventObject.php: -------------------------------------------------------------------------------- 1 | _source = $source; 32 | } 33 | 34 | /** 35 | * Get the source object of this event. 36 | * 37 | * @return object 38 | */ 39 | public function getSource() 40 | { 41 | return $this->_source; 42 | } 43 | 44 | /** 45 | * Prevent this Event from bubbling any further up the stack. 46 | * 47 | * @param bool $cancel, optional 48 | */ 49 | public function cancelBubble($cancel = true) 50 | { 51 | $this->_bubbleCancelled = $cancel; 52 | } 53 | 54 | /** 55 | * Returns true if this Event will not bubble any further up the stack. 56 | * 57 | * @return bool 58 | */ 59 | public function bubbleCancelled() 60 | { 61 | return $this->_bubbleCancelled; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/Esmtp/Auth/LoginAuthenticator.php: -------------------------------------------------------------------------------- 1 | executeCommand("AUTH LOGIN\r\n", array(334)); 41 | $agent->executeCommand(sprintf("%s\r\n", base64_encode($username)), array(334)); 42 | $agent->executeCommand(sprintf("%s\r\n", base64_encode($password)), array(235)); 43 | 44 | return true; 45 | } catch (Swift_TransportException $e) { 46 | $agent->executeCommand("RSET\r\n", array(250)); 47 | 48 | return false; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/CharacterReader/UsAsciiReaderTest.php: -------------------------------------------------------------------------------- 1 | read($size); ) { 8 | $c .= $bytes; 9 | $size = $v->validateCharacter($c); 10 | if (-1 == $size) { 11 | throw new Exception( ... invalid char .. ); 12 | } elseif (0 == $size) { 13 | return $c; //next character in $os 14 | } 15 | } 16 | 17 | */ 18 | 19 | private $_reader; 20 | 21 | public function setUp() 22 | { 23 | $this->_reader = new Swift_CharacterReader_UsAsciiReader(); 24 | } 25 | 26 | public function testAllValidAsciiCharactersReturnZero() 27 | { 28 | for ($ordinal = 0x00; $ordinal <= 0x7F; ++$ordinal) { 29 | $this->assertSame( 30 | 0, $this->_reader->validateByteSequence(array($ordinal), 1) 31 | ); 32 | } 33 | } 34 | 35 | public function testMultipleBytesAreInvalid() 36 | { 37 | for ($ordinal = 0x00; $ordinal <= 0x7F; $ordinal += 2) { 38 | $this->assertSame( 39 | -1, $this->_reader->validateByteSequence(array($ordinal, $ordinal + 1), 2) 40 | ); 41 | } 42 | } 43 | 44 | public function testBytesAboveAsciiRangeAreInvalid() 45 | { 46 | for ($ordinal = 0x80; $ordinal <= 0xFF; ++$ordinal) { 47 | $this->assertSame( 48 | -1, $this->_reader->validateByteSequence(array($ordinal), 1) 49 | ); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/ResponseEvent.php: -------------------------------------------------------------------------------- 1 | _response = $response; 43 | $this->_valid = $valid; 44 | } 45 | 46 | /** 47 | * Get the response which was received from the server. 48 | * 49 | * @return string 50 | */ 51 | public function getResponse() 52 | { 53 | return $this->_response; 54 | } 55 | 56 | /** 57 | * Get the success status of this Event. 58 | * 59 | * @return bool 60 | */ 61 | public function isValid() 62 | { 63 | return $this->_valid; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/ConfigurableSpool.php: -------------------------------------------------------------------------------- 1 | 6 | * 7 | * For the full copyright and license information, please view the LICENSE 8 | * file that was distributed with this source code. 9 | */ 10 | 11 | /** 12 | * Base class for Spools (implements time and message limits). 13 | * 14 | * @author Fabien Potencier 15 | */ 16 | abstract class Swift_ConfigurableSpool implements Swift_Spool 17 | { 18 | /** The maximum number of messages to send per flush */ 19 | private $_message_limit; 20 | 21 | /** The time limit per flush */ 22 | private $_time_limit; 23 | 24 | /** 25 | * Sets the maximum number of messages to send per flush. 26 | * 27 | * @param int $limit 28 | */ 29 | public function setMessageLimit($limit) 30 | { 31 | $this->_message_limit = (int) $limit; 32 | } 33 | 34 | /** 35 | * Gets the maximum number of messages to send per flush. 36 | * 37 | * @return int The limit 38 | */ 39 | public function getMessageLimit() 40 | { 41 | return $this->_message_limit; 42 | } 43 | 44 | /** 45 | * Sets the time limit (in seconds) per flush. 46 | * 47 | * @param int $limit The limit 48 | */ 49 | public function setTimeLimit($limit) 50 | { 51 | $this->_time_limit = (int) $limit; 52 | } 53 | 54 | /** 55 | * Gets the time limit (in seconds) per flush. 56 | * 57 | * @return int The limit 58 | */ 59 | public function getTimeLimit() 60 | { 61 | return $this->_time_limit; 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/acceptance/Swift/Encoder/Base64EncoderAcceptanceTest.php: -------------------------------------------------------------------------------- 1 | _samplesDir = realpath(__DIR__.'/../../../_samples/charsets'); 11 | $this->_encoder = new Swift_Encoder_Base64Encoder(); 12 | } 13 | 14 | public function testEncodingAndDecodingSamples() 15 | { 16 | $sampleFp = opendir($this->_samplesDir); 17 | while (false !== $encodingDir = readdir($sampleFp)) { 18 | if (substr($encodingDir, 0, 1) == '.') { 19 | continue; 20 | } 21 | 22 | $sampleDir = $this->_samplesDir.'/'.$encodingDir; 23 | 24 | if (is_dir($sampleDir)) { 25 | $fileFp = opendir($sampleDir); 26 | while (false !== $sampleFile = readdir($fileFp)) { 27 | if (substr($sampleFile, 0, 1) == '.') { 28 | continue; 29 | } 30 | 31 | $text = file_get_contents($sampleDir.'/'.$sampleFile); 32 | $encodedText = $this->_encoder->encodeString($text); 33 | 34 | $this->assertEquals( 35 | base64_decode($encodedText), $text, 36 | '%s: Encoded string should decode back to original string for sample '. 37 | $sampleDir.'/'.$sampleFile 38 | ); 39 | } 40 | closedir($fileFp); 41 | } 42 | } 43 | closedir($sampleFp); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Mailer/ArrayRecipientIteratorTest.php: -------------------------------------------------------------------------------- 1 | assertFalse($it->hasNext()); 9 | } 10 | 11 | public function testHasNextReturnsTrueIfItemsLeft() 12 | { 13 | $it = new Swift_Mailer_ArrayRecipientIterator(array('foo@bar' => 'Foo')); 14 | $this->assertTrue($it->hasNext()); 15 | } 16 | 17 | public function testReadingToEndOfListCausesHasNextToReturnFalse() 18 | { 19 | $it = new Swift_Mailer_ArrayRecipientIterator(array('foo@bar' => 'Foo')); 20 | $this->assertTrue($it->hasNext()); 21 | $it->nextRecipient(); 22 | $this->assertFalse($it->hasNext()); 23 | } 24 | 25 | public function testReturnedValueHasPreservedKeyValuePair() 26 | { 27 | $it = new Swift_Mailer_ArrayRecipientIterator(array('foo@bar' => 'Foo')); 28 | $this->assertEquals(array('foo@bar' => 'Foo'), $it->nextRecipient()); 29 | } 30 | 31 | public function testIteratorMovesNextAfterEachIteration() 32 | { 33 | $it = new Swift_Mailer_ArrayRecipientIterator(array( 34 | 'foo@bar' => 'Foo', 35 | 'zip@button' => 'Zip thing', 36 | 'test@test' => null, 37 | )); 38 | $this->assertEquals(array('foo@bar' => 'Foo'), $it->nextRecipient()); 39 | $this->assertEquals(array('zip@button' => 'Zip thing'), $it->nextRecipient()); 40 | $this->assertEquals(array('test@test' => null), $it->nextRecipient()); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/SwiftMailerSmokeTestCase.php: -------------------------------------------------------------------------------- 1 | markTestSkipped( 14 | 'Smoke tests are skipped if tests/smoke.conf.php is not edited' 15 | ); 16 | } 17 | } 18 | 19 | protected function _getMailer() 20 | { 21 | switch (SWIFT_SMOKE_TRANSPORT_TYPE) { 22 | case 'smtp': 23 | $transport = Swift_DependencyContainer::getInstance()->lookup('transport.smtp') 24 | ->setHost(SWIFT_SMOKE_SMTP_HOST) 25 | ->setPort(SWIFT_SMOKE_SMTP_PORT) 26 | ->setUsername(SWIFT_SMOKE_SMTP_USER) 27 | ->setPassword(SWIFT_SMOKE_SMTP_PASS) 28 | ->setEncryption(SWIFT_SMOKE_SMTP_ENCRYPTION) 29 | ; 30 | break; 31 | case 'sendmail': 32 | $transport = Swift_DependencyContainer::getInstance()->lookup('transport.sendmail') 33 | ->setCommand(SWIFT_SMOKE_SENDMAIL_COMMAND) 34 | ; 35 | break; 36 | case 'mail': 37 | case 'nativemail': 38 | $transport = Swift_DependencyContainer::getInstance()->lookup('transport.mail'); 39 | break; 40 | default: 41 | throw new Exception('Undefined transport ['.SWIFT_SMOKE_TRANSPORT_TYPE.']'); 42 | } 43 | 44 | return new Swift_Mailer($transport); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Encoding.php: -------------------------------------------------------------------------------- 1 | lookup($key); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/Reporters/HitReporter.php: -------------------------------------------------------------------------------- 1 | _failures_cache[$address])) { 37 | $this->_failures[] = $address; 38 | $this->_failures_cache[$address] = true; 39 | } 40 | } 41 | 42 | /** 43 | * Get an array of addresses for which delivery failed. 44 | * 45 | * @return array 46 | */ 47 | public function getFailedRecipients() 48 | { 49 | return $this->_failures; 50 | } 51 | 52 | /** 53 | * Clear the buffer (empty the list). 54 | */ 55 | public function clear() 56 | { 57 | $this->_failures = $this->_failures_cache = array(); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/bug/Swift/Bug206Test.php: -------------------------------------------------------------------------------- 1 | _factory = new Swift_Mime_SimpleHeaderFactory($headerEncoder, $paramEncoder, $grammar); 18 | } 19 | 20 | public function testMailboxHeaderEncoding() 21 | { 22 | $this->_testHeaderIsFullyEncoded('email@example.org', 'Family Name, Name', ' "Family Name, Name" '); 23 | $this->_testHeaderIsFullyEncoded('email@example.org', 'Family Namé, Name', ' Family =?utf-8?Q?Nam=C3=A9=2C?= Name'); 24 | $this->_testHeaderIsFullyEncoded('email@example.org', 'Family Namé , Name', ' Family =?utf-8?Q?Nam=C3=A9_=2C?= Name'); 25 | $this->_testHeaderIsFullyEncoded('email@example.org', 'Family Namé ;Name', ' Family =?utf-8?Q?Nam=C3=A9_=3BName?= '); 26 | } 27 | 28 | private function _testHeaderIsFullyEncoded($email, $name, $expected) 29 | { 30 | $mailboxHeader = $this->_factory->createMailboxHeader('To', array( 31 | $email => $name, 32 | )); 33 | 34 | $headerBody = substr($mailboxHeader->toString(), 3, strlen($expected)); 35 | 36 | $this->assertEquals($expected, $headerBody); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/MessageLogger.php: -------------------------------------------------------------------------------- 1 | messages = array(); 26 | } 27 | 28 | /** 29 | * Get the message list. 30 | * 31 | * @return array 32 | */ 33 | public function getMessages() 34 | { 35 | return $this->messages; 36 | } 37 | 38 | /** 39 | * Get the message count. 40 | * 41 | * @return int count 42 | */ 43 | public function countMessages() 44 | { 45 | return count($this->messages); 46 | } 47 | 48 | /** 49 | * Empty the message list. 50 | */ 51 | public function clear() 52 | { 53 | $this->messages = array(); 54 | } 55 | 56 | /** 57 | * Invoked immediately before the Message is sent. 58 | * 59 | * @param Swift_Events_SendEvent $evt 60 | */ 61 | public function beforeSendPerformed(Swift_Events_SendEvent $evt) 62 | { 63 | $this->messages[] = clone $evt->getMessage(); 64 | } 65 | 66 | /** 67 | * Invoked immediately after the Message is sent. 68 | * 69 | * @param Swift_Events_SendEvent $evt 70 | */ 71 | public function sendPerformed(Swift_Events_SendEvent $evt) 72 | { 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Events/CommandEvent.php: -------------------------------------------------------------------------------- 1 | _command = $command; 43 | $this->_successCodes = $successCodes; 44 | } 45 | 46 | /** 47 | * Get the command which was sent to the server. 48 | * 49 | * @return string 50 | */ 51 | public function getCommand() 52 | { 53 | return $this->_command; 54 | } 55 | 56 | /** 57 | * Get the numeric response codes which indicate success for this command. 58 | * 59 | * @return integer[] 60 | */ 61 | public function getSuccessCodes() 62 | { 63 | return $this->_successCodes; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/doc/including-the-files.rst: -------------------------------------------------------------------------------- 1 | Including Swift Mailer (Autoloading) 2 | ==================================== 3 | 4 | If you are using Composer, Swift Mailer will be automatically autoloaded. 5 | 6 | If not, you can use the built-in autoloader by requiring the 7 | ``swift_required.php`` file:: 8 | 9 | require_once '/path/to/swift-mailer/lib/swift_required.php'; 10 | 11 | /* rest of code goes here */ 12 | 13 | If you want to override the default Swift Mailer configuration, call the 14 | ``init()`` method on the ``Swift`` class and pass it a valid PHP callable (a 15 | PHP function name, a PHP 5.3 anonymous function, ...):: 16 | 17 | require_once '/path/to/swift-mailer/lib/swift_required.php'; 18 | 19 | function swiftmailer_configurator() { 20 | // configure Swift Mailer 21 | 22 | Swift_DependencyContainer::getInstance()->... 23 | Swift_Preferences::getInstance()->... 24 | } 25 | 26 | Swift::init('swiftmailer_configurator'); 27 | 28 | /* rest of code goes here */ 29 | 30 | The advantage of using the ``init()`` method is that your code will be 31 | executed only if you use Swift Mailer in your script. 32 | 33 | .. note:: 34 | 35 | While Swift Mailer's autoloader is designed to play nicely with other 36 | autoloaders, sometimes you may have a need to avoid using Swift Mailer's 37 | autoloader and use your own instead. Include the ``swift_init.php`` 38 | instead of the ``swift_required.php`` if you need to do this. The very 39 | minimum include is the ``swift_init.php`` file since Swift Mailer will not 40 | work without the dependency injection this file sets up: 41 | 42 | .. code-block:: php 43 | 44 | require_once '/path/to/swift-mailer/lib/swift_init.php'; 45 | 46 | /* rest of code goes here */ 47 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/ca.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEogIBAAKCAQEAu0S3RxNzlqPWmcL9cQP3GMj7ov4HoMaU6gpUaYBnFUPo8SH5 3 | yUA0J3cqALxQ4qjomfoAI2RiXlBw6fQv9iGadOTC4fqJrfTfKQcpJt54/92cD1zg 4 | DtLsgzwDh4SEiEwMRLmQqg56u4mLo8sLcH0O26VtYQivT3zWWDErTJMOy7Bq+Qan 5 | CpD7jlk78RN/jaivB8cnWKJbKAKRBoYKJ8iJlYdT4NSo5LeaI78AF8znY38OaaGO 6 | TQK8LizkVB/l6HHrUaPAwukuNh5FPzKKnGMWvRLkbsLkIexrROm2kT4Kw7BGGmOA 7 | LMuN7CvNVedRf/ENWx2Sjf4KEHcUMM7/v5zi0wIDAQABAoIBAGyaWkvu/O7Uz2TW 8 | z1JWgVuvWzfYaKYV5FCicvfITn/npVUKZikPge+NTR+mFqaMXHDHqoLb+axGrGUR 9 | hysPq9q0vEx/lo763tyVWYlAJh4E8Dd8njganK0zBbz23kGJEOheUYY95XGTQBda 10 | bqTq8c3x7zAB8GGBvXDh+wFqm38GLyMF6T+YEzWJZqXfg31f1ldRvf6+VFwlLfz6 11 | cvTR7oUpYIsUeGE47kBs13SN7Oju6a355o/7wy9tOCRiu+r/ikXFh8rFGLfeTiwv 12 | R1dhYjcEYGxZUD8u64U+Cj4qR1P0gHJL0kbh22VMMqgALOc8FpndkjNdg1Nun2X8 13 | BWpsPwECgYEA7C9PfTOIZfxGBlCl05rmWex++/h5E5PbH1Cw/NGjIH1HjmAkO3+5 14 | WyMXhySOJ8yWyCBQ/nxqc0w7+TO4C7wQcEdZdUak25KJ74v0sfmWWrVw6kcnLU6k 15 | oawW/L2F2w7ET3zDoxKh4fOF34pfHpSbZk7XJ68YOfHpYVnP4efkQVMCgYEAyvrM 16 | KA7xjnsKumWh206ag3QEI0M/9uPHWmrh2164p7w1MtawccZTxYYJ5o5SsjTwbxkf 17 | 0cAamp4qLInmRUxU1gk76tPYC3Ndp6Yf1C+dt0q/vtzyJetCDrdz8HHT1SpKbW0l 18 | g6z1I5FMwa6oWvWsfS++W51vsxUheNsOJ4uxKIECgYBwM7GRiw+7U3N4wItm0Wmp 19 | Qp642Tu7vzwTzmOmV3klkB6UVrwfv/ewgiVFQGqAIcNn42JW44g2qfq70oQWnws4 20 | K80l15+t6Bm7QUPH4Qg6o4O26IKGFZxEadqpyudyP7um/2B5cfqRuvzYS4YQowyI 21 | N+AirB3YOUJjyyTk7yMSnQKBgGNLpSvDg6+ryWe96Bwcq8G6s3t8noHsk81LlAl4 22 | oOSNUYj5NX+zAbATDizXWuUKuMPgioxVaa5RyVfYbelgme/KvKD32Sxg12P4BIIM 23 | eR79VifMdjjOiZYhcHojdPlGovo89qkfpxwrLF1jT8CPhj4HaRvwPIBiyekRYC9A 24 | Sv4BAoGAXCIC1xxAJP15osUuQjcM8KdsL1qw+LiPB2+cJJ2VMAZGV7CR2K0aCsis 25 | OwRaYM0jZKUpxzp1uwtfrfqbhdYsv+jIBkfwoShYZuo6MhbUrj0sffkhJC3WrT2z 26 | xafCFLFv1idzGvvNxatlp1DNKrndG2NS3syVAox9MnL5OMsvGM8= 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/sign.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEowIBAAKCAQEAk3vGaLso1RoKpZY4WrMGKi4+4nDKB6vkINdwhPsyYLZdv1M8 3 | j4QHd1ljiL5UNJbvhP59G160uvqtvA60N1ICfQbJM8y89ealDtdm/dgLxryyfvZC 4 | rojOSlw5YzgLF3O/wPVFBsBBQNQ9JpHjJpB7okGrwDJMwS4WttoRqYP4c1WxOlvT 5 | Bp2tLM3fMod/CGNTObkfjmdHRtym1WW+x9zdDizj/I/J/uGLQBgFvjp8/9ghj32d 6 | ZGgzL2P1k2cMhngOBcAj8tQ/LX3rMKip1gwfUn5fIZ7OVcZ6Cd3aikB3l4guDjH0 7 | NFOAnLjObFWCWUTTcD+/03lIdx3oJzp7mdYcvQIDAQABAoIBAH2vrw/T6GFrlwU0 8 | twP8q1VJIghCDLpq77hZQafilzU6VTxWyDaaUu6QPDXt1b8Xnjnd02p+1FDAj0zD 9 | zyuR9VLtdIxzf9mj3KiAQ2IzOx3787YlUgCB0CQo4jM/MJyk5RahL1kogLOp7A8x 10 | pr5XxTUq+B6L/0Nmbq8XupOXRyWp53amZ5N8sgWDv4oKh9fqgAhxbSG6KUkTmhYs 11 | DLinWg86Q28pSn+eivf4dehR56YwtTBVguXW3WKO70+GW1RotSrS6e6SSxfKYksZ 12 | a7/J1hCmJkEE3+4C8BpcI0MelgaK66ocN0pOqDF9ByxphARqyD7tYCfoS2P8gi81 13 | XoiZJaECgYEAwqx4AnDX63AANsfKuKVsEQfMSAG47SnKOVwHB7prTAgchTRcDph1 14 | EVOPtJ+4ssanosXzLcN/dCRlvqLEqnKYAOizy3C56CyRguCpO1AGbRpJjRmHTRgA 15 | w8iArhM07HgJ3XLFn99V/0bsPCMxW8dje1ZMjKjoQtDrXRQMtWaVY+UCgYEAwfGi 16 | f0If6z7wJj9gQUkGimWDAg/bxDkvEeh3nSD/PQyNiW0XDclcb3roNPQsal2ZoMwt 17 | f1bwkclw7yUCIZBvXWEkZapjKCdseTp6nglScxr8GAzfN9p5KQl+OS3GzC6xZf6C 18 | BsZQ5ucsHTHsCAi3WbwGK829z9c7x0qRwgwu9/kCgYEAsqwEwYi8Q/RZ3e1lXC9H 19 | jiHwFi6ugc2XMyoJscghbnkLZB54V1UKLUraXFcz97FobnbsCJajxf8Z+uv9QMtI 20 | Q51QV2ow1q0BKHP2HuAF5eD4nK5Phix/lzHRGPO74UUTGNKcG22pylBXxaIvTSMl 21 | ZTABth/YfGqvepBKUbvDZRkCgYB5ykbUCW9H6D8glZ3ZgYU09ag+bD0CzTIs2cH7 22 | j1QZPz/GdBYNF00PyKv3TPpzVRH7cxyDIdJyioB7/M6Iy03T4wPbQBOCjLdGrZ2A 23 | jrQTCngSlkq6pVx+k7KLL57ua8gFF70JihIV3kfKkaX6KZcSJ8vsSAgRc8TbUo2T 24 | wNjh6QKBgDyxw4bG2ULs+LVaHcnp7nizLgRGXJsCkDICjla6y0eCgAnG8fSt8CcG 25 | s5DIfJeVs/NXe/NVNuVrfwsUx0gBOirtFwQStvi5wJnY/maGAyjmgafisNFgAroT 26 | aM5f+wyGPQeGCs7bj7JWY7Nx9lkyuUV7DdKBTZNMOe51K3+PTEL3 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/MimePart.php: -------------------------------------------------------------------------------- 1 | createDependenciesFor('mime.part') 33 | ); 34 | 35 | if (!isset($charset)) { 36 | $charset = Swift_DependencyContainer::getInstance() 37 | ->lookup('properties.charset'); 38 | } 39 | $this->setBody($body); 40 | $this->setCharset($charset); 41 | if ($contentType) { 42 | $this->setContentType($contentType); 43 | } 44 | } 45 | 46 | /** 47 | * Create a new MimePart. 48 | * 49 | * @param string $body 50 | * @param string $contentType 51 | * @param string $charset 52 | * 53 | * @return Swift_Mime_MimePart 54 | */ 55 | public static function newInstance($body = null, $contentType = null, $charset = null) 56 | { 57 | return new self($body, $contentType, $charset); 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/encrypt.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpAIBAAKCAQEAnDTvn1WQU9s55lcF12dPJ9xuVgNZMr6ofc+EQQWTg1eOhnNV 3 | /TDF6/fsM2QRZAHJCmmuirE5HlK+KQvF1AaUJ2pMR/5FvQmgz3ThPu8DaBZD33Oq 4 | Y1loKQFcXZK7ZO6W+P2hkPvh1JKlbtHDKSHI/+4bex/t0C2R8m5/qDK9vhQ55/Lz 5 | 5h8VYqIp0q8Sk5VCE7i1kvWWVE6w2tHRvFAL+eQP022uE+DHAjw6SUgOJvY61t9t 6 | TRkFJ7UKCLTicWoGrnkr4ej73hlfNuoE16FOV/mCdyNjmVBENpesgcgM350/kJcT 7 | 4+YpKLRcC+9h7Hp2LXrcpzjv5ONxW5QBf1f5ewIDAQABAoIBADmuMm2botfUM+Ui 8 | bT3FIC2P8A5C3kUmsgEDB8sazAXL5w0uuanswKkJu2aepO1Q23PE4nbESlswIpf1 9 | iO9qHnsPfWt4MThEveTdO++JQrDEx/tTMq/M6/F4VysWa6wxjf4Taf2nhRSBsiTh 10 | wDcICri2q98jQyWELkhfFTR+yCHPsn6iNtzE2OpNv9ojKiSqck/sVjC39Z+uU/HD 11 | N4v0CPf9pDGkO+modaVGKf2TpvZT7Hpq/jsPzkk1h7BY7aWdZiIY4YkBkWYqZk8f 12 | 0dsxKkOR2glfuEYNtcywG+4UGx3i1AY0mMu96hH5M1ACFmFrTCoodmWDnWy9wUpm 13 | leLmG8ECgYEAywWdryqcvLyhcmqHbnmUhCL9Vl4/5w5fr/5/FNvqArxSGwd2CxcN 14 | Jtkvu22cxWAUoe155eMc6GlPIdNRG8KdWg4sg0TN3Jb2jiHQ3QkHXUJlWU6onjP1 15 | g2n5h052JxVNGBEb7hr3U7ZMW6wnuYnGdYwCB9P3r5oGxxtfVRB8ygUCgYEAxPfy 16 | tAd3SNT8Sv/cciw76GYKbztUjJRXkLo6GOBGq/AQxP1NDWMuL2AES11YIahidMsF 17 | TMmM+zhkNHsd5P69p87FTMWx0cLoH0M9iQNK7Q6C1luTjLf5DTFuk+nHGErM4Drs 18 | +6Ly1Z4KLXfXgBDD8Ce6U9+W3RrCc36poGZvjX8CgYEAna0P6WJr9r19mhIYevmc 19 | Gf/ex7xNXxMvx80dP8MIfPVrwyhJSpWtljVpt+SKtFRJ0fVRDfUUl4Bqf/fR74B3 20 | muCVO6ItTBxHAt5Ki9CeUpTlh7XqiWwLSvP8Y1TRuMr3ZDCtg4CYBAD6Ttxmwde6 21 | NcL2NMQwgsZaazrcEIHMmU0CgYEAl/Mn2tZ/oUIdt8YWzEVvmeNOXW0J1sGBo/bm 22 | ZtZt7qpuZWl7jb5bnNSXu4QxPxXljnAokIpUJmHke9AWydfze4c6EfXZLhcMd0Gq 23 | MQ7HOIWfTbqr4zzx9smRoq4Ql57s2nba521XpJAdDeKL7xH/9j7PsXCls8C3Dd5D 24 | AajEmgUCgYAGEdn6tYxIdX7jF39E3x7zHQf8jHIoQ7+cLTLtd944mSGgeqMfbiww 25 | CoUa+AAUqjdAD5ViAyJrA+gmDtWpkFnJZtToXYwfUF2o3zRo4k1DeBrVbFqwSQkE 26 | omrfiBGtviYIPdqQLE34LYpWEooNPraqO9qTyc+9w5038u2OFS+WmQ== 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/sign2.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpAIBAAKCAQEA269ZuM/68xUvw8VFECISjcdfaAHhmC7d54mhD7cH7wTDQfNI 3 | DIDPXfl7aqzwDD3mP9gvLeTZQoTTyjHEe9CQSnZpUh+P2k42iH1pgz6GSY70UVyD 4 | WYEhzSiLeGRgDfxDxa9fQgYrFeIj8c7vpciG25GmSf6rcmrZT+5v6vE58pBUZcsT 5 | RL3gmpKXF3kXd2ExRilqBA/v1EYVXNHAj2VY6Hkk7TxwGAZwtvZRuVRW6ujQUIsh 6 | eLaYzh0Wq6uhvD7UBR/QqQGYOWz5N26pGvQvJhK+Y1n6zOBB7VJE5QsFSzkEQbM/ 7 | 5zAU9u6V2YdfBlNIXN4HjQzeJKmnqoDQaNJm5QIDAQABAoIBAAM2FvuqnqJ7Bs23 8 | zoCj3t2PsodUr7WHydqemmoeZNFLoocORVlZcK6Q/QrcKE4lgX4hbN8g30QnqOjl 9 | vVeJ/vH3tSZsK7AnQIjSPH6cpV3h5xRhY9IlHxdepltGLFlH/L2hCKVwbaTOP3RD 10 | cCFeQwpmoKWoQV1UzoRqmdw3Vn+DMaUULomLVR9aSW9PnKeFL+tPWShf7GmVISfM 11 | 2H6xKw/qT0XAX59ZHA1laxSFVvbV5ZcKrBOFMV407Vzw2d3ojmfEzNsHjUVBXX8j 12 | B5nK1VeJiTVmcoVhnRX7tXESDaZy+Kv38pqOmc8Svn70lDJ35SM2EpWnX39w5LsQ 13 | 29NsIUECgYEA/vNKiMfVmmZNQrpcuHQe5adlmz9+I4xJ4wbRzrS7czpbKF0/iaPf 14 | dKoVz67yYHOJCBHTVaXWkElQsq1mkyuFt/cc0ReJXO8709+t+6ULsE50cLQm/HN5 15 | npg3gw0Ls/9dy/cHM5SdVIHMBm9oQ65rXup/dqWC8Dz2cAAOQhIPwx0CgYEA3Jbk 16 | DPdUlrj4sXcE3V/CtmBuK9Xq1xolJt026fYCrle0YhdMKmchRBDCc6BzM+F/vDyC 17 | llPfQu8TDXK40Oan7GbxMdoLqKK9gSIq1dvfG1YMMz8OrBcX8xKe61KFRWd7QSBJ 18 | BcY575NzYHapOHVGnUJ68j8zCow0gfb7q6iK4GkCgYEAz2mUuKSCxYL21hORfUqT 19 | HFjMU7oa38axEa6pn9XvLjZKlRMPruWP1HTPG9ADRa6Yy+TcnrA1V9sdeM+TRKXC 20 | usCiRAU27lF+xccS30gNs1iQaGRX10gGqJzDhK1nWP+nClmlFTSRrn+OQan/FBjh 21 | Jy31lsveM54VC1cwQlY5Vo0CgYEArtjfnLNzFiE55xjq/znHUd4vlYlzItrzddHE 22 | lEBOsbiNH29ODRI/2P7b0uDsT8Q/BoqEC/ohLqHn3TIA8nzRv91880HdGecdBL17 23 | bJZiSv2yn/AshhWsAxzQYMDBKFk05lNb7jrIc3DR9DU6PqketsoaP+f+Yi7t89I8 24 | fD0VD3kCgYAaJCoQshng/ijiHF/RJXLrXXHJSUmaOfbweX/mzFup0YR1LxUjcv85 25 | cxvwc41Y2iI5MwUXyX97/GYKeoobzWZy3XflNWtg04rcInVaPsb/OOFDDqI+MkzT 26 | B4PcCurOmjzcxHMVE34CYvl3YVwWrPb5JO1rYG9T2gKUJnLU6qG4Bw== 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/encrypt2.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpAIBAAKCAQEAw4AoYVYss2sa1BWJAJpK6gVemjXrp1mVXVpb1/z6SH15AGsp 3 | 3kiNXsMpgvsdofbqC/5HXrw2G8gWqo+uh6GuK67+Tvp7tO2aD4+8CZzUK1cffj7P 4 | bx95DUPwXckv79PT5ZcuyeFaVo92aug11+gS/P8n0WXSlzZxNuZ1f3G2r/IgwfNK 5 | ZlarEf1Ih781L2SwmyveW/dtsV2pdrd4IZwsV5SOF2zBFIXSuhPN0c+mmtwSJe+O 6 | w1udLX4KJkAX8sGVFJ5P5q4s2nS9vLkkj7X6YRQscbyJO9L7e1TksRqLDLxZwiko 7 | 6gUhp4/bIs1wDj5tzkQBi4qXviRq3i7A9b2d0QIDAQABAoIBAH8RvK1PmqxfkEeL 8 | W8oVf13OcafgJjRW6NuNkKa5mmAlldFs1gDRvXl7dm7ZE3CjkYqMEw2DXdP+4KSp 9 | 0TH9J7zi+A6ThnaZ/QniTcEdu1YUQbcH0kIS/dZec0wyKUNDtrXC5zl2jQY4Jyrj 10 | laOpBzaEDfhvq0p3q2yYrIRSgACpSEVEsfPoHrxtlLhfMkVNe8P0nkQkzdwou5MQ 11 | MZKV4JUopLHLgPH6IXQCqA1wzlU32yZ86w88GFcBVLkwlLJCKbuAo7yxMCD+nzvA 12 | xm5NuF1kzpP0gk+kZRXF+rFEV4av/2kSS+n8IeUBQZrxovLBuQHVDvJXoqcEjmlh 13 | ZUltznUCgYEA4inwieePfb7kh7L/ma5OLLn+uCNwzVw9LayzXT1dyPravOnkHl6h 14 | MgaoTspqDyU8k8pStedRrr5dVYbseni/A4WSMGvi4innqSXBQGp64TyeJy/e+LrS 15 | ypSWQ6RSJkCxI5t8s4mOpR7FMcdE34I5qeA4G5RS1HIacn7Hxc7uXtcCgYEA3Uqn 16 | E7EDfNfYdZm6AikvE6x64oihWI0x47rlkLu6lf6ihiF1dbfaEN+IAaIxQ/unGYwU 17 | 130F0TUwarXnVkeBIRlij4fXhExyd7USSQH1VpqmIqDwsS2ojrzQVMo5UcH+A22G 18 | bbHPtwJNmw8a7yzTPWo2/vnjgV2OaXEQ9vCVG5cCgYEAu1kEoihJDGBijSqxY4wp 19 | xBE7OSxamDNtlnV2i6l3FDMBmfaieqnnHDq5l7NDklJFUSQLyhXZ60hUprHDGV0G 20 | 1pMCW8wzQSh3d/4HjSXnrsd5N3sHWMHiNeBKbbQkPP3f/2AhN9SebpgDwE2S9xe4 21 | TsmnkOkYiFYRJIFzWaAmhDcCgYEAwxRCgZt0xaPKULG6RpljxOYyVm24PsYKCwYB 22 | xjuYWw5k2/W3BJWVCXblAPuojpPUVTMmVGkErc9D5W6Ch471iOZF+t334cs6xci8 23 | W9v8GeKvPqu+Q5NKmrpctcKoESkA8qik7yLnSCAhpeYFCn/roKJ35QMJyktddhqU 24 | p/yilfUCgYBxZ6YmFjYH6l5SxQdcfa5JQ2To8lZCfRJwB65EyWj4pKH4TaWFS7vb 25 | 50WOGTBwJgyhTKLCO3lOmXIUyIwC+OO9xzaeRCBjqEhpup/Ih3MsfMEd6BZRVK5E 26 | IxtmIWba5HQ52k8FKHeRrRB7PSVSADUN2pUFkLudH+j/01kSZyJoLA== 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/_samples/smime/intermediate.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpQIBAAKCAQEA0oBIX7V+n9cFfrqlpeCfs8Ap/Hx2i2U+hmdBrPU4ROHvuJpC 3 | xta70hCCaJ/FNInPGaYdVBmtRq73oeW4G5XR5RcWErAgsgxoIsUb0VjYSCrjvksW 4 | iGQoaqisFZ92jUOAWTkqPzIyf40Mq/QTIDJncZR0d3tcJJHgJFv/7DrH7sUBhdYf 5 | cnkL7rvxmxuiu7x0hjhneTtxu237X0O5e/EzKnie41d9gHSXrjuTA+HUZ1uAkC02 6 | nq4myzdDCp9+VHUohaGcSh6qlnILZecXCVjzpqugrACdhKPdJFvwRzqy79dIejmp 7 | /UdT3V0r0gr1Z12Nys99M6H8N9OaAPyiZP4VcwIDAQABAoIBAQDLJiKyu2XIvKsA 8 | 8wCKZY262+mpUjTVso/1BhHL6Zy0XZgMgFORsgrxYB16+zZGzfiguD/1uhIP9Svn 9 | gtt7Q8udW/phbrkfG/okFDYUg7m3bCz+qVjFqGOZC8+Hzq2LB2oGsbSj6L3zexyP 10 | lq4elIZghvUfml4CrQW0EVWbld79/kF7XHABcIOk2+3f63XAQWkjdFNxj5+z6TR0 11 | 52Rv7SmRioAsukW9wr77G3Luv/0cEzDFXgGW5s0wO+rJg28smlsIaj+Y0KsptTig 12 | reQvReAT/S5ZxEp4H6WtXQ1WmaliMB0Gcu4TKB0yE8DoTeCePuslo9DqGokXYT66 13 | oqtcVMqBAoGBAPoOL9byNNU/bBNDWSCiq8PqhSjl0M4vYBGqtgMXM4GFOJU+W2nX 14 | YRJbbxoSd/DKjnxEsR6V0vDTDHj4ZSkgmpEmVhEdAiwUwaZ0T8YUaCPhdiAENo5+ 15 | zRBWVJcvAC2XKTK1hy5D7Z5vlC32HHygYqitU+JsK4ylvhrdeOcGx5cfAoGBANeB 16 | X0JbeuqBEwwEHZqYSpzmtB+IEiuYc9ARTttHEvIWgCThK4ldAzbXhDUIQy3Hm0sL 17 | PzDA33furNl2WwB+vmOuioYMNjArKrfg689Aim1byg4AHM5XVQcqoDSOABtI55iP 18 | E0hYDe/d4ema2gk1uR/mT4pnLnk2VzRKsHUbP9stAoGBAKjyIuJwPMADnMqbC0Hg 19 | hnrVHejW9TAJlDf7hgQqjdMppmQ3gF3PdjeH7VXJOp5GzOQrKRxIEABEJ74n3Xlf 20 | HO+K3kWrusb7syb6mNd0/DOZ5kyVbCL0iypJmdeXmuAyrFQlj9LzdD1Cl/RBv1d4 21 | qY/bo7xsZzQc24edMU2uJ/XzAoGBAMHChA95iK5HlwR6vtM8kfk4REMFaLDhxV8R 22 | 8MCeyp33NQfzm91JT5aDd07nOt9yVGHInuwKveFrKuXq0C9FxZCCYfHcEOyGI0Zo 23 | aBxTfyKMIMMtvriXNM/Yt2oJMndVuUUlfsTQxtcfu/r5S4h0URopTOK3msVI4mcV 24 | sEnaUjORAoGAGDnslKYtROQMXTe4sh6CoJ32J8UZVV9M+8NLus9rO0v/eZ/pIFxo 25 | MXGrrrl51ScqahCQ+DXHzpLvInsdlAJvDP3ymhb7H2xGsyvb3x2YgsLmr1YVOnli 26 | ISbCssno3vZyFU1TDjeEIKqZHc92byHNMjMuhmlaA25g8kb0cCO76EA= 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Image.php: -------------------------------------------------------------------------------- 1 | setFile( 56 | new Swift_ByteStream_FileByteStream($path) 57 | ); 58 | 59 | return $image; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Signers/HeaderSigner.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | interface Swift_Signers_HeaderSigner extends Swift_Signer, Swift_InputByteStream 17 | { 18 | /** 19 | * Exclude an header from the signed headers. 20 | * 21 | * @param string $header_name 22 | * 23 | * @return Swift_Signers_HeaderSigner 24 | */ 25 | public function ignoreHeader($header_name); 26 | 27 | /** 28 | * Prepare the Signer to get a new Body. 29 | * 30 | * @return Swift_Signers_HeaderSigner 31 | */ 32 | public function startBody(); 33 | 34 | /** 35 | * Give the signal that the body has finished streaming. 36 | * 37 | * @return Swift_Signers_HeaderSigner 38 | */ 39 | public function endBody(); 40 | 41 | /** 42 | * Give the headers already given. 43 | * 44 | * @param Swift_Mime_SimpleHeaderSet $headers 45 | * 46 | * @return Swift_Signers_HeaderSigner 47 | */ 48 | public function setHeaders(Swift_Mime_HeaderSet $headers); 49 | 50 | /** 51 | * Add the header(s) to the headerSet. 52 | * 53 | * @param Swift_Mime_HeaderSet $headers 54 | * 55 | * @return Swift_Signers_HeaderSigner 56 | */ 57 | public function addSignature(Swift_Mime_HeaderSet $headers); 58 | 59 | /** 60 | * Return the list of header a signer might tamper. 61 | * 62 | * @return array 63 | */ 64 | public function getAlteredHeaders(); 65 | } 66 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/smoke.conf.php.default: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | class Swift_Mime_ContentEncoder_RawContentEncoder implements Swift_Mime_ContentEncoder 18 | { 19 | /** 20 | * Encode a given string to produce an encoded string. 21 | * 22 | * @param string $string 23 | * @param int $firstLineOffset ignored 24 | * @param int $maxLineLength ignored 25 | * 26 | * @return string 27 | */ 28 | public function encodeString($string, $firstLineOffset = 0, $maxLineLength = 0) 29 | { 30 | return $string; 31 | } 32 | 33 | /** 34 | * Encode stream $in to stream $out. 35 | * 36 | * @param Swift_OutputByteStream $in 37 | * @param Swift_InputByteStream $out 38 | * @param int $firstLineOffset ignored 39 | * @param int $maxLineLength ignored 40 | */ 41 | public function encodeByteStream(Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset = 0, $maxLineLength = 0) 42 | { 43 | while (false !== ($bytes = $os->read(8192))) { 44 | $is->write($bytes); 45 | } 46 | } 47 | 48 | /** 49 | * Get the name of this encoding scheme. 50 | * 51 | * @return string 52 | */ 53 | public function getName() 54 | { 55 | return 'raw'; 56 | } 57 | 58 | /** 59 | * Not used. 60 | */ 61 | public function charsetChanged($charset) 62 | { 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Encoder/Base64Encoder.php: -------------------------------------------------------------------------------- 1 | = $maxLineLength || 76 < $maxLineLength) { 34 | $maxLineLength = 76; 35 | } 36 | 37 | $encodedString = base64_encode($string); 38 | $firstLine = ''; 39 | 40 | if (0 != $firstLineOffset) { 41 | $firstLine = substr( 42 | $encodedString, 0, $maxLineLength - $firstLineOffset 43 | )."\r\n"; 44 | $encodedString = substr( 45 | $encodedString, $maxLineLength - $firstLineOffset 46 | ); 47 | } 48 | 49 | return $firstLine.trim(chunk_split($encodedString, $maxLineLength, "\r\n")); 50 | } 51 | 52 | /** 53 | * Does nothing. 54 | */ 55 | public function charsetChanged($charset) 56 | { 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/doc/help-resources.rst: -------------------------------------------------------------------------------- 1 | Getting Help 2 | ============ 3 | 4 | There are a number of ways you can get help when using Swift Mailer, depending 5 | upon the nature of your problem. For bug reports and feature requests create a 6 | new ticket in GitHub. For general advice ask on the Google Group 7 | (swiftmailer). 8 | 9 | Submitting Bugs & Feature Requests 10 | ---------------------------------- 11 | 12 | Bugs and feature requests should be posted on GitHub. 13 | 14 | If you post a bug or request a feature in the forum, or on the Google Group 15 | you will most likely be asked to create a ticket in `GitHub`_ since it is 16 | simply not feasible to manage such requests from a number of a different 17 | sources. 18 | 19 | When you go to GitHub you will be asked to create a username and password 20 | before you can create a ticket. This is free and takes very little time. 21 | 22 | When you create your ticket, do not assign it to any milestones. A developer 23 | will assess your ticket and re-assign it as needed. 24 | 25 | If your ticket is reporting a bug present in the current version, which was 26 | not present in the previous version please include the tag "regression" in 27 | your ticket. 28 | 29 | GitHub will update you when work is performed on your ticket. 30 | 31 | Ask on the Google Group 32 | ----------------------- 33 | 34 | You can seek advice at Google Groups, within the "swiftmailer" `group`_. 35 | 36 | You can post messages to this group if you want help, or there's something you 37 | wish to discuss with the developers and with other users. 38 | 39 | This is probably the fastest way to get help since it is primarily email-based 40 | for most users, though bug reports should not be posted here since they may 41 | not be resolved. 42 | 43 | .. _`GitHub`: https://github.com/swiftmailer/swiftmailer/issues 44 | .. _`group`: http://groups.google.com/group/swiftmailer 45 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/StreamFilters/StringReplacementFilter.php: -------------------------------------------------------------------------------- 1 | _search = $search; 33 | $this->_replace = $replace; 34 | } 35 | 36 | /** 37 | * Returns true if based on the buffer passed more bytes should be buffered. 38 | * 39 | * @param string $buffer 40 | * 41 | * @return bool 42 | */ 43 | public function shouldBuffer($buffer) 44 | { 45 | $endOfBuffer = substr($buffer, -1); 46 | foreach ((array) $this->_search as $needle) { 47 | if (false !== strpos($needle, $endOfBuffer)) { 48 | return true; 49 | } 50 | } 51 | 52 | return false; 53 | } 54 | 55 | /** 56 | * Perform the actual replacements on $buffer and return the result. 57 | * 58 | * @param string $buffer 59 | * 60 | * @return string 61 | */ 62 | public function filter($buffer) 63 | { 64 | return str_replace($this->_search, $this->_replace, $buffer); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/HeaderEncoder/Base64HeaderEncoder.php: -------------------------------------------------------------------------------- 1 | getName(), "\r\n"); 48 | mb_internal_encoding($old); 49 | 50 | return $newstring; 51 | } 52 | 53 | return parent::encodeString($string, $firstLineOffset, $maxLineLength); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/acceptance/Swift/Encoder/QpEncoderAcceptanceTest.php: -------------------------------------------------------------------------------- 1 | _samplesDir = realpath(__DIR__.'/../../../_samples/charsets'); 11 | $this->_factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory(); 12 | } 13 | 14 | public function testEncodingAndDecodingSamples() 15 | { 16 | $sampleFp = opendir($this->_samplesDir); 17 | while (false !== $encodingDir = readdir($sampleFp)) { 18 | if (substr($encodingDir, 0, 1) == '.') { 19 | continue; 20 | } 21 | 22 | $encoding = $encodingDir; 23 | $charStream = new Swift_CharacterStream_ArrayCharacterStream( 24 | $this->_factory, $encoding); 25 | $encoder = new Swift_Encoder_QpEncoder($charStream); 26 | 27 | $sampleDir = $this->_samplesDir.'/'.$encodingDir; 28 | 29 | if (is_dir($sampleDir)) { 30 | $fileFp = opendir($sampleDir); 31 | while (false !== $sampleFile = readdir($fileFp)) { 32 | if (substr($sampleFile, 0, 1) == '.') { 33 | continue; 34 | } 35 | 36 | $text = file_get_contents($sampleDir.'/'.$sampleFile); 37 | $encodedText = $encoder->encodeString($text); 38 | 39 | $this->assertEquals( 40 | quoted_printable_decode($encodedText), $text, 41 | '%s: Encoded string should decode back to original string for sample '. 42 | $sampleDir.'/'.$sampleFile 43 | ); 44 | } 45 | closedir($fileFp); 46 | } 47 | } 48 | closedir($sampleFp); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/IoBuffer.php: -------------------------------------------------------------------------------- 1 | _samplesDir = realpath(__DIR__.'/../../../_samples/charsets'); 11 | $this->_factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory(); 12 | } 13 | 14 | public function testEncodingAndDecodingSamples() 15 | { 16 | $sampleFp = opendir($this->_samplesDir); 17 | while (false !== $encodingDir = readdir($sampleFp)) { 18 | if (substr($encodingDir, 0, 1) == '.') { 19 | continue; 20 | } 21 | 22 | $encoding = $encodingDir; 23 | $charStream = new Swift_CharacterStream_ArrayCharacterStream( 24 | $this->_factory, $encoding); 25 | $encoder = new Swift_Encoder_Rfc2231Encoder($charStream); 26 | 27 | $sampleDir = $this->_samplesDir.'/'.$encodingDir; 28 | 29 | if (is_dir($sampleDir)) { 30 | $fileFp = opendir($sampleDir); 31 | while (false !== $sampleFile = readdir($fileFp)) { 32 | if (substr($sampleFile, 0, 1) == '.') { 33 | continue; 34 | } 35 | 36 | $text = file_get_contents($sampleDir.'/'.$sampleFile); 37 | $encodedText = $encoder->encodeString($text); 38 | 39 | $this->assertEquals( 40 | urldecode(implode('', explode("\r\n", $encodedText))), $text, 41 | '%s: Encoded string should decode back to original string for sample '. 42 | $sampleDir.'/'.$sampleFile 43 | ); 44 | } 45 | closedir($fileFp); 46 | } 47 | } 48 | closedir($sampleFp); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Mime/EmbeddedFileTest.php: -------------------------------------------------------------------------------- 1 | _createEmbeddedFile($this->_createHeaderSet(), 13 | $this->_createEncoder(), $this->_createCache() 14 | ); 15 | $this->assertEquals( 16 | Swift_Mime_MimeEntity::LEVEL_RELATED, $file->getNestingLevel() 17 | ); 18 | } 19 | 20 | public function testIdIsAutoGenerated() 21 | { 22 | $headers = $this->_createHeaderSet(array(), false); 23 | $headers->shouldReceive('addIdHeader') 24 | ->once() 25 | ->with('Content-ID', '/^.*?@.*?$/D'); 26 | 27 | $file = $this->_createEmbeddedFile($headers, $this->_createEncoder(), 28 | $this->_createCache() 29 | ); 30 | } 31 | 32 | public function testDefaultDispositionIsInline() 33 | { 34 | $headers = $this->_createHeaderSet(array(), false); 35 | $headers->shouldReceive('addParameterizedHeader') 36 | ->once() 37 | ->with('Content-Disposition', 'inline'); 38 | $headers->shouldReceive('addParameterizedHeader') 39 | ->zeroOrMoreTimes(); 40 | 41 | $file = $this->_createEmbeddedFile($headers, $this->_createEncoder(), 42 | $this->_createCache() 43 | ); 44 | } 45 | 46 | // -- Private helpers 47 | 48 | protected function _createAttachment($headers, $encoder, $cache, $mimeTypes = array()) 49 | { 50 | return $this->_createEmbeddedFile($headers, $encoder, $cache, $mimeTypes); 51 | } 52 | 53 | private function _createEmbeddedFile($headers, $encoder, $cache) 54 | { 55 | return new Swift_Mime_EmbeddedFile($headers, $encoder, $cache, new Swift_Mime_Grammar()); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/Plugins/ImpersonatePlugin.php: -------------------------------------------------------------------------------- 1 | _sender = $sender; 33 | } 34 | 35 | /** 36 | * Invoked immediately before the Message is sent. 37 | * 38 | * @param Swift_Events_SendEvent $evt 39 | */ 40 | public function beforeSendPerformed(Swift_Events_SendEvent $evt) 41 | { 42 | $message = $evt->getMessage(); 43 | $headers = $message->getHeaders(); 44 | 45 | // save current recipients 46 | $headers->addPathHeader('X-Swift-Return-Path', $message->getReturnPath()); 47 | 48 | // replace them with the one to send to 49 | $message->setReturnPath($this->_sender); 50 | } 51 | 52 | /** 53 | * Invoked immediately after the Message is sent. 54 | * 55 | * @param Swift_Events_SendEvent $evt 56 | */ 57 | public function sendPerformed(Swift_Events_SendEvent $evt) 58 | { 59 | $message = $evt->getMessage(); 60 | 61 | // restore original headers 62 | $headers = $message->getHeaders(); 63 | 64 | if ($headers->has('X-Swift-Return-Path')) { 65 | $message->setReturnPath($headers->get('X-Swift-Return-Path')->getAddress()); 66 | $headers->removeAll('X-Swift-Return-Path'); 67 | } 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/lib/classes/Swift/CharacterReader.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | interface Swift_CharacterReader 18 | { 19 | const MAP_TYPE_INVALID = 0x01; 20 | const MAP_TYPE_FIXED_LEN = 0x02; 21 | const MAP_TYPE_POSITIONS = 0x03; 22 | 23 | /** 24 | * Returns the complete character map. 25 | * 26 | * @param string $string 27 | * @param int $startOffset 28 | * @param array $currentMap 29 | * @param mixed $ignoredChars 30 | * 31 | * @return int 32 | */ 33 | public function getCharPositions($string, $startOffset, &$currentMap, &$ignoredChars); 34 | 35 | /** 36 | * Returns the mapType, see constants. 37 | * 38 | * @return int 39 | */ 40 | public function getMapType(); 41 | 42 | /** 43 | * Returns an integer which specifies how many more bytes to read. 44 | * 45 | * A positive integer indicates the number of more bytes to fetch before invoking 46 | * this method again. 47 | * 48 | * A value of zero means this is already a valid character. 49 | * A value of -1 means this cannot possibly be a valid character. 50 | * 51 | * @param integer[] $bytes 52 | * @param int $size 53 | * 54 | * @return int 55 | */ 56 | public function validateByteSequence($bytes, $size); 57 | 58 | /** 59 | * Returns the number of bytes which should be read to start each character. 60 | * 61 | * For fixed width character sets this should be the number of octets-per-character. 62 | * For multibyte character sets this will probably be 1. 63 | * 64 | * @return int 65 | */ 66 | public function getInitialByteSize(); 67 | } 68 | -------------------------------------------------------------------------------- /vendor/swiftmailer/swiftmailer/tests/unit/Swift/Plugins/Reporters/HtmlReporterTest.php: -------------------------------------------------------------------------------- 1 | _html = new Swift_Plugins_Reporters_HtmlReporter(); 11 | $this->_message = $this->getMock('Swift_Mime_Message'); 12 | } 13 | 14 | public function testReportingPass() 15 | { 16 | ob_start(); 17 | $this->_html->notify($this->_message, 'foo@bar.tld', 18 | Swift_Plugins_Reporter::RESULT_PASS 19 | ); 20 | $html = ob_get_clean(); 21 | 22 | $this->assertRegExp('~ok|pass~i', $html, '%s: Reporter should indicate pass'); 23 | $this->assertRegExp('~foo@bar\.tld~', $html, '%s: Reporter should show address'); 24 | } 25 | 26 | public function testReportingFail() 27 | { 28 | ob_start(); 29 | $this->_html->notify($this->_message, 'zip@button', 30 | Swift_Plugins_Reporter::RESULT_FAIL 31 | ); 32 | $html = ob_get_clean(); 33 | 34 | $this->assertRegExp('~fail~i', $html, '%s: Reporter should indicate fail'); 35 | $this->assertRegExp('~zip@button~', $html, '%s: Reporter should show address'); 36 | } 37 | 38 | public function testMultipleReports() 39 | { 40 | ob_start(); 41 | $this->_html->notify($this->_message, 'foo@bar.tld', 42 | Swift_Plugins_Reporter::RESULT_PASS 43 | ); 44 | $this->_html->notify($this->_message, 'zip@button', 45 | Swift_Plugins_Reporter::RESULT_FAIL 46 | ); 47 | $html = ob_get_clean(); 48 | 49 | $this->assertRegExp('~ok|pass~i', $html, '%s: Reporter should indicate pass'); 50 | $this->assertRegExp('~foo@bar\.tld~', $html, '%s: Reporter should show address'); 51 | $this->assertRegExp('~fail~i', $html, '%s: Reporter should indicate fail'); 52 | $this->assertRegExp('~zip@button~', $html, '%s: Reporter should show address'); 53 | } 54 | } 55 | --------------------------------------------------------------------------------