正在显示
78 个修改的文件
包含
0 行增加
和
6509 行删除
vendor/autoload.php
已删除
100644 → 0
vendor/composer/ClassLoader.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -/* | ||
4 | - * This file is part of Composer. | ||
5 | - * | ||
6 | - * (c) Nils Adermann <naderman@naderman.de> | ||
7 | - * Jordi Boggiano <j.boggiano@seld.be> | ||
8 | - * | ||
9 | - * For the full copyright and license information, please view the LICENSE | ||
10 | - * file that was distributed with this source code. | ||
11 | - */ | ||
12 | - | ||
13 | -namespace Composer\Autoload; | ||
14 | - | ||
15 | -/** | ||
16 | - * ClassLoader implements a PSR-0, PSR-4 and classmap class loader. | ||
17 | - * | ||
18 | - * $loader = new \Composer\Autoload\ClassLoader(); | ||
19 | - * | ||
20 | - * // register classes with namespaces | ||
21 | - * $loader->add('Symfony\Component', __DIR__.'/component'); | ||
22 | - * $loader->add('Symfony', __DIR__.'/framework'); | ||
23 | - * | ||
24 | - * // activate the autoloader | ||
25 | - * $loader->register(); | ||
26 | - * | ||
27 | - * // to enable searching the include path (eg. for PEAR packages) | ||
28 | - * $loader->setUseIncludePath(true); | ||
29 | - * | ||
30 | - * In this example, if you try to use a class in the Symfony\Component | ||
31 | - * namespace or one of its children (Symfony\Component\Console for instance), | ||
32 | - * the autoloader will first look for the class under the component/ | ||
33 | - * directory, and it will then fallback to the framework/ directory if not | ||
34 | - * found before giving up. | ||
35 | - * | ||
36 | - * This class is loosely based on the Symfony UniversalClassLoader. | ||
37 | - * | ||
38 | - * @author Fabien Potencier <fabien@symfony.com> | ||
39 | - * @author Jordi Boggiano <j.boggiano@seld.be> | ||
40 | - * @see https://www.php-fig.org/psr/psr-0/ | ||
41 | - * @see https://www.php-fig.org/psr/psr-4/ | ||
42 | - */ | ||
43 | -class ClassLoader | ||
44 | -{ | ||
45 | - /** @var ?string */ | ||
46 | - private $vendorDir; | ||
47 | - | ||
48 | - // PSR-4 | ||
49 | - /** | ||
50 | - * @var array[] | ||
51 | - * @psalm-var array<string, array<string, int>> | ||
52 | - */ | ||
53 | - private $prefixLengthsPsr4 = array(); | ||
54 | - /** | ||
55 | - * @var array[] | ||
56 | - * @psalm-var array<string, array<int, string>> | ||
57 | - */ | ||
58 | - private $prefixDirsPsr4 = array(); | ||
59 | - /** | ||
60 | - * @var array[] | ||
61 | - * @psalm-var array<string, string> | ||
62 | - */ | ||
63 | - private $fallbackDirsPsr4 = array(); | ||
64 | - | ||
65 | - // PSR-0 | ||
66 | - /** | ||
67 | - * @var array[] | ||
68 | - * @psalm-var array<string, array<string, string[]>> | ||
69 | - */ | ||
70 | - private $prefixesPsr0 = array(); | ||
71 | - /** | ||
72 | - * @var array[] | ||
73 | - * @psalm-var array<string, string> | ||
74 | - */ | ||
75 | - private $fallbackDirsPsr0 = array(); | ||
76 | - | ||
77 | - /** @var bool */ | ||
78 | - private $useIncludePath = false; | ||
79 | - | ||
80 | - /** | ||
81 | - * @var string[] | ||
82 | - * @psalm-var array<string, string> | ||
83 | - */ | ||
84 | - private $classMap = array(); | ||
85 | - | ||
86 | - /** @var bool */ | ||
87 | - private $classMapAuthoritative = false; | ||
88 | - | ||
89 | - /** | ||
90 | - * @var bool[] | ||
91 | - * @psalm-var array<string, bool> | ||
92 | - */ | ||
93 | - private $missingClasses = array(); | ||
94 | - | ||
95 | - /** @var ?string */ | ||
96 | - private $apcuPrefix; | ||
97 | - | ||
98 | - /** | ||
99 | - * @var self[] | ||
100 | - */ | ||
101 | - private static $registeredLoaders = array(); | ||
102 | - | ||
103 | - /** | ||
104 | - * @param ?string $vendorDir | ||
105 | - */ | ||
106 | - public function __construct($vendorDir = null) | ||
107 | - { | ||
108 | - $this->vendorDir = $vendorDir; | ||
109 | - } | ||
110 | - | ||
111 | - /** | ||
112 | - * @return string[] | ||
113 | - */ | ||
114 | - public function getPrefixes() | ||
115 | - { | ||
116 | - if (!empty($this->prefixesPsr0)) { | ||
117 | - return call_user_func_array('array_merge', array_values($this->prefixesPsr0)); | ||
118 | - } | ||
119 | - | ||
120 | - return array(); | ||
121 | - } | ||
122 | - | ||
123 | - /** | ||
124 | - * @return array[] | ||
125 | - * @psalm-return array<string, array<int, string>> | ||
126 | - */ | ||
127 | - public function getPrefixesPsr4() | ||
128 | - { | ||
129 | - return $this->prefixDirsPsr4; | ||
130 | - } | ||
131 | - | ||
132 | - /** | ||
133 | - * @return array[] | ||
134 | - * @psalm-return array<string, string> | ||
135 | - */ | ||
136 | - public function getFallbackDirs() | ||
137 | - { | ||
138 | - return $this->fallbackDirsPsr0; | ||
139 | - } | ||
140 | - | ||
141 | - /** | ||
142 | - * @return array[] | ||
143 | - * @psalm-return array<string, string> | ||
144 | - */ | ||
145 | - public function getFallbackDirsPsr4() | ||
146 | - { | ||
147 | - return $this->fallbackDirsPsr4; | ||
148 | - } | ||
149 | - | ||
150 | - /** | ||
151 | - * @return string[] Array of classname => path | ||
152 | - * @psalm-return array<string, string> | ||
153 | - */ | ||
154 | - public function getClassMap() | ||
155 | - { | ||
156 | - return $this->classMap; | ||
157 | - } | ||
158 | - | ||
159 | - /** | ||
160 | - * @param string[] $classMap Class to filename map | ||
161 | - * @psalm-param array<string, string> $classMap | ||
162 | - * | ||
163 | - * @return void | ||
164 | - */ | ||
165 | - public function addClassMap(array $classMap) | ||
166 | - { | ||
167 | - if ($this->classMap) { | ||
168 | - $this->classMap = array_merge($this->classMap, $classMap); | ||
169 | - } else { | ||
170 | - $this->classMap = $classMap; | ||
171 | - } | ||
172 | - } | ||
173 | - | ||
174 | - /** | ||
175 | - * Registers a set of PSR-0 directories for a given prefix, either | ||
176 | - * appending or prepending to the ones previously set for this prefix. | ||
177 | - * | ||
178 | - * @param string $prefix The prefix | ||
179 | - * @param string[]|string $paths The PSR-0 root directories | ||
180 | - * @param bool $prepend Whether to prepend the directories | ||
181 | - * | ||
182 | - * @return void | ||
183 | - */ | ||
184 | - public function add($prefix, $paths, $prepend = false) | ||
185 | - { | ||
186 | - if (!$prefix) { | ||
187 | - if ($prepend) { | ||
188 | - $this->fallbackDirsPsr0 = array_merge( | ||
189 | - (array) $paths, | ||
190 | - $this->fallbackDirsPsr0 | ||
191 | - ); | ||
192 | - } else { | ||
193 | - $this->fallbackDirsPsr0 = array_merge( | ||
194 | - $this->fallbackDirsPsr0, | ||
195 | - (array) $paths | ||
196 | - ); | ||
197 | - } | ||
198 | - | ||
199 | - return; | ||
200 | - } | ||
201 | - | ||
202 | - $first = $prefix[0]; | ||
203 | - if (!isset($this->prefixesPsr0[$first][$prefix])) { | ||
204 | - $this->prefixesPsr0[$first][$prefix] = (array) $paths; | ||
205 | - | ||
206 | - return; | ||
207 | - } | ||
208 | - if ($prepend) { | ||
209 | - $this->prefixesPsr0[$first][$prefix] = array_merge( | ||
210 | - (array) $paths, | ||
211 | - $this->prefixesPsr0[$first][$prefix] | ||
212 | - ); | ||
213 | - } else { | ||
214 | - $this->prefixesPsr0[$first][$prefix] = array_merge( | ||
215 | - $this->prefixesPsr0[$first][$prefix], | ||
216 | - (array) $paths | ||
217 | - ); | ||
218 | - } | ||
219 | - } | ||
220 | - | ||
221 | - /** | ||
222 | - * Registers a set of PSR-4 directories for a given namespace, either | ||
223 | - * appending or prepending to the ones previously set for this namespace. | ||
224 | - * | ||
225 | - * @param string $prefix The prefix/namespace, with trailing '\\' | ||
226 | - * @param string[]|string $paths The PSR-4 base directories | ||
227 | - * @param bool $prepend Whether to prepend the directories | ||
228 | - * | ||
229 | - * @throws \InvalidArgumentException | ||
230 | - * | ||
231 | - * @return void | ||
232 | - */ | ||
233 | - public function addPsr4($prefix, $paths, $prepend = false) | ||
234 | - { | ||
235 | - if (!$prefix) { | ||
236 | - // Register directories for the root namespace. | ||
237 | - if ($prepend) { | ||
238 | - $this->fallbackDirsPsr4 = array_merge( | ||
239 | - (array) $paths, | ||
240 | - $this->fallbackDirsPsr4 | ||
241 | - ); | ||
242 | - } else { | ||
243 | - $this->fallbackDirsPsr4 = array_merge( | ||
244 | - $this->fallbackDirsPsr4, | ||
245 | - (array) $paths | ||
246 | - ); | ||
247 | - } | ||
248 | - } elseif (!isset($this->prefixDirsPsr4[$prefix])) { | ||
249 | - // Register directories for a new namespace. | ||
250 | - $length = strlen($prefix); | ||
251 | - if ('\\' !== $prefix[$length - 1]) { | ||
252 | - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); | ||
253 | - } | ||
254 | - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; | ||
255 | - $this->prefixDirsPsr4[$prefix] = (array) $paths; | ||
256 | - } elseif ($prepend) { | ||
257 | - // Prepend directories for an already registered namespace. | ||
258 | - $this->prefixDirsPsr4[$prefix] = array_merge( | ||
259 | - (array) $paths, | ||
260 | - $this->prefixDirsPsr4[$prefix] | ||
261 | - ); | ||
262 | - } else { | ||
263 | - // Append directories for an already registered namespace. | ||
264 | - $this->prefixDirsPsr4[$prefix] = array_merge( | ||
265 | - $this->prefixDirsPsr4[$prefix], | ||
266 | - (array) $paths | ||
267 | - ); | ||
268 | - } | ||
269 | - } | ||
270 | - | ||
271 | - /** | ||
272 | - * Registers a set of PSR-0 directories for a given prefix, | ||
273 | - * replacing any others previously set for this prefix. | ||
274 | - * | ||
275 | - * @param string $prefix The prefix | ||
276 | - * @param string[]|string $paths The PSR-0 base directories | ||
277 | - * | ||
278 | - * @return void | ||
279 | - */ | ||
280 | - public function set($prefix, $paths) | ||
281 | - { | ||
282 | - if (!$prefix) { | ||
283 | - $this->fallbackDirsPsr0 = (array) $paths; | ||
284 | - } else { | ||
285 | - $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths; | ||
286 | - } | ||
287 | - } | ||
288 | - | ||
289 | - /** | ||
290 | - * Registers a set of PSR-4 directories for a given namespace, | ||
291 | - * replacing any others previously set for this namespace. | ||
292 | - * | ||
293 | - * @param string $prefix The prefix/namespace, with trailing '\\' | ||
294 | - * @param string[]|string $paths The PSR-4 base directories | ||
295 | - * | ||
296 | - * @throws \InvalidArgumentException | ||
297 | - * | ||
298 | - * @return void | ||
299 | - */ | ||
300 | - public function setPsr4($prefix, $paths) | ||
301 | - { | ||
302 | - if (!$prefix) { | ||
303 | - $this->fallbackDirsPsr4 = (array) $paths; | ||
304 | - } else { | ||
305 | - $length = strlen($prefix); | ||
306 | - if ('\\' !== $prefix[$length - 1]) { | ||
307 | - throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator."); | ||
308 | - } | ||
309 | - $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; | ||
310 | - $this->prefixDirsPsr4[$prefix] = (array) $paths; | ||
311 | - } | ||
312 | - } | ||
313 | - | ||
314 | - /** | ||
315 | - * Turns on searching the include path for class files. | ||
316 | - * | ||
317 | - * @param bool $useIncludePath | ||
318 | - * | ||
319 | - * @return void | ||
320 | - */ | ||
321 | - public function setUseIncludePath($useIncludePath) | ||
322 | - { | ||
323 | - $this->useIncludePath = $useIncludePath; | ||
324 | - } | ||
325 | - | ||
326 | - /** | ||
327 | - * Can be used to check if the autoloader uses the include path to check | ||
328 | - * for classes. | ||
329 | - * | ||
330 | - * @return bool | ||
331 | - */ | ||
332 | - public function getUseIncludePath() | ||
333 | - { | ||
334 | - return $this->useIncludePath; | ||
335 | - } | ||
336 | - | ||
337 | - /** | ||
338 | - * Turns off searching the prefix and fallback directories for classes | ||
339 | - * that have not been registered with the class map. | ||
340 | - * | ||
341 | - * @param bool $classMapAuthoritative | ||
342 | - * | ||
343 | - * @return void | ||
344 | - */ | ||
345 | - public function setClassMapAuthoritative($classMapAuthoritative) | ||
346 | - { | ||
347 | - $this->classMapAuthoritative = $classMapAuthoritative; | ||
348 | - } | ||
349 | - | ||
350 | - /** | ||
351 | - * Should class lookup fail if not found in the current class map? | ||
352 | - * | ||
353 | - * @return bool | ||
354 | - */ | ||
355 | - public function isClassMapAuthoritative() | ||
356 | - { | ||
357 | - return $this->classMapAuthoritative; | ||
358 | - } | ||
359 | - | ||
360 | - /** | ||
361 | - * APCu prefix to use to cache found/not-found classes, if the extension is enabled. | ||
362 | - * | ||
363 | - * @param string|null $apcuPrefix | ||
364 | - * | ||
365 | - * @return void | ||
366 | - */ | ||
367 | - public function setApcuPrefix($apcuPrefix) | ||
368 | - { | ||
369 | - $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null; | ||
370 | - } | ||
371 | - | ||
372 | - /** | ||
373 | - * The APCu prefix in use, or null if APCu caching is not enabled. | ||
374 | - * | ||
375 | - * @return string|null | ||
376 | - */ | ||
377 | - public function getApcuPrefix() | ||
378 | - { | ||
379 | - return $this->apcuPrefix; | ||
380 | - } | ||
381 | - | ||
382 | - /** | ||
383 | - * Registers this instance as an autoloader. | ||
384 | - * | ||
385 | - * @param bool $prepend Whether to prepend the autoloader or not | ||
386 | - * | ||
387 | - * @return void | ||
388 | - */ | ||
389 | - public function register($prepend = false) | ||
390 | - { | ||
391 | - spl_autoload_register(array($this, 'loadClass'), true, $prepend); | ||
392 | - | ||
393 | - if (null === $this->vendorDir) { | ||
394 | - return; | ||
395 | - } | ||
396 | - | ||
397 | - if ($prepend) { | ||
398 | - self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders; | ||
399 | - } else { | ||
400 | - unset(self::$registeredLoaders[$this->vendorDir]); | ||
401 | - self::$registeredLoaders[$this->vendorDir] = $this; | ||
402 | - } | ||
403 | - } | ||
404 | - | ||
405 | - /** | ||
406 | - * Unregisters this instance as an autoloader. | ||
407 | - * | ||
408 | - * @return void | ||
409 | - */ | ||
410 | - public function unregister() | ||
411 | - { | ||
412 | - spl_autoload_unregister(array($this, 'loadClass')); | ||
413 | - | ||
414 | - if (null !== $this->vendorDir) { | ||
415 | - unset(self::$registeredLoaders[$this->vendorDir]); | ||
416 | - } | ||
417 | - } | ||
418 | - | ||
419 | - /** | ||
420 | - * Loads the given class or interface. | ||
421 | - * | ||
422 | - * @param string $class The name of the class | ||
423 | - * @return true|null True if loaded, null otherwise | ||
424 | - */ | ||
425 | - public function loadClass($class) | ||
426 | - { | ||
427 | - if ($file = $this->findFile($class)) { | ||
428 | - includeFile($file); | ||
429 | - | ||
430 | - return true; | ||
431 | - } | ||
432 | - | ||
433 | - return null; | ||
434 | - } | ||
435 | - | ||
436 | - /** | ||
437 | - * Finds the path to the file where the class is defined. | ||
438 | - * | ||
439 | - * @param string $class The name of the class | ||
440 | - * | ||
441 | - * @return string|false The path if found, false otherwise | ||
442 | - */ | ||
443 | - public function findFile($class) | ||
444 | - { | ||
445 | - // class map lookup | ||
446 | - if (isset($this->classMap[$class])) { | ||
447 | - return $this->classMap[$class]; | ||
448 | - } | ||
449 | - if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { | ||
450 | - return false; | ||
451 | - } | ||
452 | - if (null !== $this->apcuPrefix) { | ||
453 | - $file = apcu_fetch($this->apcuPrefix.$class, $hit); | ||
454 | - if ($hit) { | ||
455 | - return $file; | ||
456 | - } | ||
457 | - } | ||
458 | - | ||
459 | - $file = $this->findFileWithExtension($class, '.php'); | ||
460 | - | ||
461 | - // Search for Hack files if we are running on HHVM | ||
462 | - if (false === $file && defined('HHVM_VERSION')) { | ||
463 | - $file = $this->findFileWithExtension($class, '.hh'); | ||
464 | - } | ||
465 | - | ||
466 | - if (null !== $this->apcuPrefix) { | ||
467 | - apcu_add($this->apcuPrefix.$class, $file); | ||
468 | - } | ||
469 | - | ||
470 | - if (false === $file) { | ||
471 | - // Remember that this class does not exist. | ||
472 | - $this->missingClasses[$class] = true; | ||
473 | - } | ||
474 | - | ||
475 | - return $file; | ||
476 | - } | ||
477 | - | ||
478 | - /** | ||
479 | - * Returns the currently registered loaders indexed by their corresponding vendor directories. | ||
480 | - * | ||
481 | - * @return self[] | ||
482 | - */ | ||
483 | - public static function getRegisteredLoaders() | ||
484 | - { | ||
485 | - return self::$registeredLoaders; | ||
486 | - } | ||
487 | - | ||
488 | - /** | ||
489 | - * @param string $class | ||
490 | - * @param string $ext | ||
491 | - * @return string|false | ||
492 | - */ | ||
493 | - private function findFileWithExtension($class, $ext) | ||
494 | - { | ||
495 | - // PSR-4 lookup | ||
496 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; | ||
497 | - | ||
498 | - $first = $class[0]; | ||
499 | - if (isset($this->prefixLengthsPsr4[$first])) { | ||
500 | - $subPath = $class; | ||
501 | - while (false !== $lastPos = strrpos($subPath, '\\')) { | ||
502 | - $subPath = substr($subPath, 0, $lastPos); | ||
503 | - $search = $subPath . '\\'; | ||
504 | - if (isset($this->prefixDirsPsr4[$search])) { | ||
505 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); | ||
506 | - foreach ($this->prefixDirsPsr4[$search] as $dir) { | ||
507 | - if (file_exists($file = $dir . $pathEnd)) { | ||
508 | - return $file; | ||
509 | - } | ||
510 | - } | ||
511 | - } | ||
512 | - } | ||
513 | - } | ||
514 | - | ||
515 | - // PSR-4 fallback dirs | ||
516 | - foreach ($this->fallbackDirsPsr4 as $dir) { | ||
517 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { | ||
518 | - return $file; | ||
519 | - } | ||
520 | - } | ||
521 | - | ||
522 | - // PSR-0 lookup | ||
523 | - if (false !== $pos = strrpos($class, '\\')) { | ||
524 | - // namespaced class name | ||
525 | - $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1) | ||
526 | - . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); | ||
527 | - } else { | ||
528 | - // PEAR-like class name | ||
529 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; | ||
530 | - } | ||
531 | - | ||
532 | - if (isset($this->prefixesPsr0[$first])) { | ||
533 | - foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { | ||
534 | - if (0 === strpos($class, $prefix)) { | ||
535 | - foreach ($dirs as $dir) { | ||
536 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { | ||
537 | - return $file; | ||
538 | - } | ||
539 | - } | ||
540 | - } | ||
541 | - } | ||
542 | - } | ||
543 | - | ||
544 | - // PSR-0 fallback dirs | ||
545 | - foreach ($this->fallbackDirsPsr0 as $dir) { | ||
546 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { | ||
547 | - return $file; | ||
548 | - } | ||
549 | - } | ||
550 | - | ||
551 | - // PSR-0 include paths. | ||
552 | - if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { | ||
553 | - return $file; | ||
554 | - } | ||
555 | - | ||
556 | - return false; | ||
557 | - } | ||
558 | -} | ||
559 | - | ||
560 | -/** | ||
561 | - * Scope isolated include. | ||
562 | - * | ||
563 | - * Prevents access to $this/self from included files. | ||
564 | - * | ||
565 | - * @param string $file | ||
566 | - * @return void | ||
567 | - * @private | ||
568 | - */ | ||
569 | -function includeFile($file) | ||
570 | -{ | ||
571 | - include $file; | ||
572 | -} |
vendor/composer/InstalledVersions.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -/* | ||
4 | - * This file is part of Composer. | ||
5 | - * | ||
6 | - * (c) Nils Adermann <naderman@naderman.de> | ||
7 | - * Jordi Boggiano <j.boggiano@seld.be> | ||
8 | - * | ||
9 | - * For the full copyright and license information, please view the LICENSE | ||
10 | - * file that was distributed with this source code. | ||
11 | - */ | ||
12 | - | ||
13 | -namespace Composer; | ||
14 | - | ||
15 | -use Composer\Autoload\ClassLoader; | ||
16 | -use Composer\Semver\VersionParser; | ||
17 | - | ||
18 | -/** | ||
19 | - * This class is copied in every Composer installed project and available to all | ||
20 | - * | ||
21 | - * See also https://getcomposer.org/doc/07-runtime.md#installed-versions | ||
22 | - * | ||
23 | - * To require its presence, you can require `composer-runtime-api ^2.0` | ||
24 | - * | ||
25 | - * @final | ||
26 | - */ | ||
27 | -class InstalledVersions | ||
28 | -{ | ||
29 | - /** | ||
30 | - * @var mixed[]|null | ||
31 | - * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null | ||
32 | - */ | ||
33 | - private static $installed; | ||
34 | - | ||
35 | - /** | ||
36 | - * @var bool|null | ||
37 | - */ | ||
38 | - private static $canGetVendors; | ||
39 | - | ||
40 | - /** | ||
41 | - * @var array[] | ||
42 | - * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}> | ||
43 | - */ | ||
44 | - private static $installedByVendor = array(); | ||
45 | - | ||
46 | - /** | ||
47 | - * Returns a list of all package names which are present, either by being installed, replaced or provided | ||
48 | - * | ||
49 | - * @return string[] | ||
50 | - * @psalm-return list<string> | ||
51 | - */ | ||
52 | - public static function getInstalledPackages() | ||
53 | - { | ||
54 | - $packages = array(); | ||
55 | - foreach (self::getInstalled() as $installed) { | ||
56 | - $packages[] = array_keys($installed['versions']); | ||
57 | - } | ||
58 | - | ||
59 | - if (1 === \count($packages)) { | ||
60 | - return $packages[0]; | ||
61 | - } | ||
62 | - | ||
63 | - return array_keys(array_flip(\call_user_func_array('array_merge', $packages))); | ||
64 | - } | ||
65 | - | ||
66 | - /** | ||
67 | - * Returns a list of all package names with a specific type e.g. 'library' | ||
68 | - * | ||
69 | - * @param string $type | ||
70 | - * @return string[] | ||
71 | - * @psalm-return list<string> | ||
72 | - */ | ||
73 | - public static function getInstalledPackagesByType($type) | ||
74 | - { | ||
75 | - $packagesByType = array(); | ||
76 | - | ||
77 | - foreach (self::getInstalled() as $installed) { | ||
78 | - foreach ($installed['versions'] as $name => $package) { | ||
79 | - if (isset($package['type']) && $package['type'] === $type) { | ||
80 | - $packagesByType[] = $name; | ||
81 | - } | ||
82 | - } | ||
83 | - } | ||
84 | - | ||
85 | - return $packagesByType; | ||
86 | - } | ||
87 | - | ||
88 | - /** | ||
89 | - * Checks whether the given package is installed | ||
90 | - * | ||
91 | - * This also returns true if the package name is provided or replaced by another package | ||
92 | - * | ||
93 | - * @param string $packageName | ||
94 | - * @param bool $includeDevRequirements | ||
95 | - * @return bool | ||
96 | - */ | ||
97 | - public static function isInstalled($packageName, $includeDevRequirements = true) | ||
98 | - { | ||
99 | - foreach (self::getInstalled() as $installed) { | ||
100 | - if (isset($installed['versions'][$packageName])) { | ||
101 | - return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']); | ||
102 | - } | ||
103 | - } | ||
104 | - | ||
105 | - return false; | ||
106 | - } | ||
107 | - | ||
108 | - /** | ||
109 | - * Checks whether the given package satisfies a version constraint | ||
110 | - * | ||
111 | - * e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call: | ||
112 | - * | ||
113 | - * Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3') | ||
114 | - * | ||
115 | - * @param VersionParser $parser Install composer/semver to have access to this class and functionality | ||
116 | - * @param string $packageName | ||
117 | - * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package | ||
118 | - * @return bool | ||
119 | - */ | ||
120 | - public static function satisfies(VersionParser $parser, $packageName, $constraint) | ||
121 | - { | ||
122 | - $constraint = $parser->parseConstraints($constraint); | ||
123 | - $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); | ||
124 | - | ||
125 | - return $provided->matches($constraint); | ||
126 | - } | ||
127 | - | ||
128 | - /** | ||
129 | - * Returns a version constraint representing all the range(s) which are installed for a given package | ||
130 | - * | ||
131 | - * It is easier to use this via isInstalled() with the $constraint argument if you need to check | ||
132 | - * whether a given version of a package is installed, and not just whether it exists | ||
133 | - * | ||
134 | - * @param string $packageName | ||
135 | - * @return string Version constraint usable with composer/semver | ||
136 | - */ | ||
137 | - public static function getVersionRanges($packageName) | ||
138 | - { | ||
139 | - foreach (self::getInstalled() as $installed) { | ||
140 | - if (!isset($installed['versions'][$packageName])) { | ||
141 | - continue; | ||
142 | - } | ||
143 | - | ||
144 | - $ranges = array(); | ||
145 | - if (isset($installed['versions'][$packageName]['pretty_version'])) { | ||
146 | - $ranges[] = $installed['versions'][$packageName]['pretty_version']; | ||
147 | - } | ||
148 | - if (array_key_exists('aliases', $installed['versions'][$packageName])) { | ||
149 | - $ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']); | ||
150 | - } | ||
151 | - if (array_key_exists('replaced', $installed['versions'][$packageName])) { | ||
152 | - $ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']); | ||
153 | - } | ||
154 | - if (array_key_exists('provided', $installed['versions'][$packageName])) { | ||
155 | - $ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']); | ||
156 | - } | ||
157 | - | ||
158 | - return implode(' || ', $ranges); | ||
159 | - } | ||
160 | - | ||
161 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); | ||
162 | - } | ||
163 | - | ||
164 | - /** | ||
165 | - * @param string $packageName | ||
166 | - * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present | ||
167 | - */ | ||
168 | - public static function getVersion($packageName) | ||
169 | - { | ||
170 | - foreach (self::getInstalled() as $installed) { | ||
171 | - if (!isset($installed['versions'][$packageName])) { | ||
172 | - continue; | ||
173 | - } | ||
174 | - | ||
175 | - if (!isset($installed['versions'][$packageName]['version'])) { | ||
176 | - return null; | ||
177 | - } | ||
178 | - | ||
179 | - return $installed['versions'][$packageName]['version']; | ||
180 | - } | ||
181 | - | ||
182 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); | ||
183 | - } | ||
184 | - | ||
185 | - /** | ||
186 | - * @param string $packageName | ||
187 | - * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present | ||
188 | - */ | ||
189 | - public static function getPrettyVersion($packageName) | ||
190 | - { | ||
191 | - foreach (self::getInstalled() as $installed) { | ||
192 | - if (!isset($installed['versions'][$packageName])) { | ||
193 | - continue; | ||
194 | - } | ||
195 | - | ||
196 | - if (!isset($installed['versions'][$packageName]['pretty_version'])) { | ||
197 | - return null; | ||
198 | - } | ||
199 | - | ||
200 | - return $installed['versions'][$packageName]['pretty_version']; | ||
201 | - } | ||
202 | - | ||
203 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); | ||
204 | - } | ||
205 | - | ||
206 | - /** | ||
207 | - * @param string $packageName | ||
208 | - * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference | ||
209 | - */ | ||
210 | - public static function getReference($packageName) | ||
211 | - { | ||
212 | - foreach (self::getInstalled() as $installed) { | ||
213 | - if (!isset($installed['versions'][$packageName])) { | ||
214 | - continue; | ||
215 | - } | ||
216 | - | ||
217 | - if (!isset($installed['versions'][$packageName]['reference'])) { | ||
218 | - return null; | ||
219 | - } | ||
220 | - | ||
221 | - return $installed['versions'][$packageName]['reference']; | ||
222 | - } | ||
223 | - | ||
224 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); | ||
225 | - } | ||
226 | - | ||
227 | - /** | ||
228 | - * @param string $packageName | ||
229 | - * @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path. | ||
230 | - */ | ||
231 | - public static function getInstallPath($packageName) | ||
232 | - { | ||
233 | - foreach (self::getInstalled() as $installed) { | ||
234 | - if (!isset($installed['versions'][$packageName])) { | ||
235 | - continue; | ||
236 | - } | ||
237 | - | ||
238 | - return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null; | ||
239 | - } | ||
240 | - | ||
241 | - throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed'); | ||
242 | - } | ||
243 | - | ||
244 | - /** | ||
245 | - * @return array | ||
246 | - * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string} | ||
247 | - */ | ||
248 | - public static function getRootPackage() | ||
249 | - { | ||
250 | - $installed = self::getInstalled(); | ||
251 | - | ||
252 | - return $installed[0]['root']; | ||
253 | - } | ||
254 | - | ||
255 | - /** | ||
256 | - * Returns the raw installed.php data for custom implementations | ||
257 | - * | ||
258 | - * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. | ||
259 | - * @return array[] | ||
260 | - * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} | ||
261 | - */ | ||
262 | - public static function getRawData() | ||
263 | - { | ||
264 | - @trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED); | ||
265 | - | ||
266 | - if (null === self::$installed) { | ||
267 | - // only require the installed.php file if this file is loaded from its dumped location, | ||
268 | - // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 | ||
269 | - if (substr(__DIR__, -8, 1) !== 'C') { | ||
270 | - self::$installed = include __DIR__ . '/installed.php'; | ||
271 | - } else { | ||
272 | - self::$installed = array(); | ||
273 | - } | ||
274 | - } | ||
275 | - | ||
276 | - return self::$installed; | ||
277 | - } | ||
278 | - | ||
279 | - /** | ||
280 | - * Returns the raw data of all installed.php which are currently loaded for custom implementations | ||
281 | - * | ||
282 | - * @return array[] | ||
283 | - * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}> | ||
284 | - */ | ||
285 | - public static function getAllRawData() | ||
286 | - { | ||
287 | - return self::getInstalled(); | ||
288 | - } | ||
289 | - | ||
290 | - /** | ||
291 | - * Lets you reload the static array from another file | ||
292 | - * | ||
293 | - * This is only useful for complex integrations in which a project needs to use | ||
294 | - * this class but then also needs to execute another project's autoloader in process, | ||
295 | - * and wants to ensure both projects have access to their version of installed.php. | ||
296 | - * | ||
297 | - * A typical case would be PHPUnit, where it would need to make sure it reads all | ||
298 | - * the data it needs from this class, then call reload() with | ||
299 | - * `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure | ||
300 | - * the project in which it runs can then also use this class safely, without | ||
301 | - * interference between PHPUnit's dependencies and the project's dependencies. | ||
302 | - * | ||
303 | - * @param array[] $data A vendor/composer/installed.php data set | ||
304 | - * @return void | ||
305 | - * | ||
306 | - * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data | ||
307 | - */ | ||
308 | - public static function reload($data) | ||
309 | - { | ||
310 | - self::$installed = $data; | ||
311 | - self::$installedByVendor = array(); | ||
312 | - } | ||
313 | - | ||
314 | - /** | ||
315 | - * @return array[] | ||
316 | - * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}> | ||
317 | - */ | ||
318 | - private static function getInstalled() | ||
319 | - { | ||
320 | - if (null === self::$canGetVendors) { | ||
321 | - self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders'); | ||
322 | - } | ||
323 | - | ||
324 | - $installed = array(); | ||
325 | - | ||
326 | - if (self::$canGetVendors) { | ||
327 | - foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { | ||
328 | - if (isset(self::$installedByVendor[$vendorDir])) { | ||
329 | - $installed[] = self::$installedByVendor[$vendorDir]; | ||
330 | - } elseif (is_file($vendorDir.'/composer/installed.php')) { | ||
331 | - $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php'; | ||
332 | - if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { | ||
333 | - self::$installed = $installed[count($installed) - 1]; | ||
334 | - } | ||
335 | - } | ||
336 | - } | ||
337 | - } | ||
338 | - | ||
339 | - if (null === self::$installed) { | ||
340 | - // only require the installed.php file if this file is loaded from its dumped location, | ||
341 | - // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937 | ||
342 | - if (substr(__DIR__, -8, 1) !== 'C') { | ||
343 | - self::$installed = require __DIR__ . '/installed.php'; | ||
344 | - } else { | ||
345 | - self::$installed = array(); | ||
346 | - } | ||
347 | - } | ||
348 | - $installed[] = self::$installed; | ||
349 | - | ||
350 | - return $installed; | ||
351 | - } | ||
352 | -} |
vendor/composer/LICENSE
已删除
100644 → 0
1 | - | ||
2 | -Copyright (c) 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 | - |
vendor/composer/autoload_classmap.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -// autoload_classmap.php @generated by Composer | ||
4 | - | ||
5 | -$vendorDir = dirname(__DIR__); | ||
6 | -$baseDir = dirname($vendorDir); | ||
7 | - | ||
8 | -return array( | ||
9 | - 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', | ||
10 | - 'Controller\\Base' => $baseDir . '/controller/Base.php', | ||
11 | - 'Controller\\Blacklist' => $baseDir . '/controller/Blacklist.php', | ||
12 | - 'Controller\\Folder' => $baseDir . '/controller/Folder.php', | ||
13 | - 'Controller\\Home' => $baseDir . '/controller/Home.php', | ||
14 | - 'Controller\\Job' => $baseDir . '/controller/Job.php', | ||
15 | - 'Controller\\Login' => $baseDir . '/controller/Login.php', | ||
16 | - 'Controller\\Test' => $baseDir . '/controller/Test.php', | ||
17 | - 'Controller\\Upload' => $baseDir . '/controller/Upload.php', | ||
18 | - 'Controller\\fob_ai\\MailList' => $baseDir . '/controller/fob_ai/MailList.php', | ||
19 | - 'Controller\\v2\\Home' => $baseDir . '/controller/v2/Home.php', | ||
20 | - 'Event\\syncMail' => $baseDir . '/event/syncMail.php', | ||
21 | - 'Lib\\App' => $baseDir . '/lib/App.php', | ||
22 | - 'Lib\\Db' => $baseDir . '/lib/Db.php', | ||
23 | - 'Lib\\DbException' => $baseDir . '/lib/DbException.php', | ||
24 | - 'Lib\\DbPool' => $baseDir . '/lib/DbPool.php', | ||
25 | - 'Lib\\DbQuery' => $baseDir . '/lib/DbQuery.php', | ||
26 | - 'Lib\\Err' => $baseDir . '/lib/Err.php', | ||
27 | - 'Lib\\Lang' => $baseDir . '/lib/Lang.php', | ||
28 | - 'Lib\\Log' => $baseDir . '/lib/Log.php', | ||
29 | - 'Lib\\Mail\\Body' => $baseDir . '/lib/Mail/Body.php', | ||
30 | - 'Lib\\Mail\\DeCoding' => $baseDir . '/lib/Mail/DeCoding.php', | ||
31 | - 'Lib\\Mail\\Imap' => $baseDir . '/lib/Mail/Imap.php', | ||
32 | - 'Lib\\Mail\\Mail' => $baseDir . '/lib/Mail/Mail.php', | ||
33 | - 'Lib\\Mail\\MailFun' => $baseDir . '/lib/Mail/MailFun.php', | ||
34 | - 'Lib\\Redis' => $baseDir . '/lib/Redis.php', | ||
35 | - 'Lib\\RedisPool' => $baseDir . '/lib/RedisPool.php', | ||
36 | - 'Lib\\RedisQuery' => $baseDir . '/lib/RedisQuery.php', | ||
37 | - 'Lib\\Route' => $baseDir . '/lib/Route.php', | ||
38 | - 'Lib\\UploadFile' => $baseDir . '/lib/UploadFile.php', | ||
39 | - 'Lib\\Verify' => $baseDir . '/lib/Verify.php', | ||
40 | - 'Model\\blacklist' => $baseDir . '/model/blacklist.php', | ||
41 | - 'Model\\bodySql' => $baseDir . '/model/bodySql.php', | ||
42 | - 'Model\\emailSql' => $baseDir . '/model/emailSql.php', | ||
43 | - 'Model\\folderSql' => $baseDir . '/model/folderSql.php', | ||
44 | - 'Model\\hostSql' => $baseDir . '/model/hostSql.php', | ||
45 | - 'Model\\listsSql' => $baseDir . '/model/listsSql.php', | ||
46 | - 'Model\\sendJobStatusSql' => $baseDir . '/model/sendJobStatusSql.php', | ||
47 | - 'Model\\sendJobsSql' => $baseDir . '/model/sendJobsSql.php', | ||
48 | - 'PHPMailer\\PHPMailer\\Exception' => $vendorDir . '/phpmailer/phpmailer/src/Exception.php', | ||
49 | - 'PHPMailer\\PHPMailer\\OAuth' => $vendorDir . '/phpmailer/phpmailer/src/OAuth.php', | ||
50 | - 'PHPMailer\\PHPMailer\\OAuthTokenProvider' => $vendorDir . '/phpmailer/phpmailer/src/OAuthTokenProvider.php', | ||
51 | - 'PHPMailer\\PHPMailer\\PHPMailer' => $vendorDir . '/phpmailer/phpmailer/src/PHPMailer.php', | ||
52 | - 'PHPMailer\\PHPMailer\\POP3' => $vendorDir . '/phpmailer/phpmailer/src/POP3.php', | ||
53 | - 'PHPMailer\\PHPMailer\\SMTP' => $vendorDir . '/phpmailer/phpmailer/src/SMTP.php', | ||
54 | - 'Psr\\Http\\Message\\MessageInterface' => $vendorDir . '/psr/http-message/src/MessageInterface.php', | ||
55 | - 'Psr\\Http\\Message\\RequestInterface' => $vendorDir . '/psr/http-message/src/RequestInterface.php', | ||
56 | - 'Psr\\Http\\Message\\ResponseInterface' => $vendorDir . '/psr/http-message/src/ResponseInterface.php', | ||
57 | - 'Psr\\Http\\Message\\ServerRequestInterface' => $vendorDir . '/psr/http-message/src/ServerRequestInterface.php', | ||
58 | - 'Psr\\Http\\Message\\StreamInterface' => $vendorDir . '/psr/http-message/src/StreamInterface.php', | ||
59 | - 'Psr\\Http\\Message\\UploadedFileInterface' => $vendorDir . '/psr/http-message/src/UploadedFileInterface.php', | ||
60 | - 'Psr\\Http\\Message\\UriInterface' => $vendorDir . '/psr/http-message/src/UriInterface.php', | ||
61 | - 'Swlib\\Http\\BufferStream' => $vendorDir . '/swlib/http/src/BufferStream.php', | ||
62 | - 'Swlib\\Http\\ContentType' => $vendorDir . '/swlib/http/src/ContentType.php', | ||
63 | - 'Swlib\\Http\\Cookie' => $vendorDir . '/swlib/http/src/Cookie.php', | ||
64 | - 'Swlib\\Http\\Cookies' => $vendorDir . '/swlib/http/src/Cookies.php', | ||
65 | - 'Swlib\\Http\\CookiesManagerTrait' => $vendorDir . '/swlib/http/src/CookiesManagerTrait.php', | ||
66 | - 'Swlib\\Http\\Exception\\BadResponseException' => $vendorDir . '/swlib/http/src/Exception/BadResponseException.php', | ||
67 | - 'Swlib\\Http\\Exception\\ClientException' => $vendorDir . '/swlib/http/src/Exception/ClientException.php', | ||
68 | - 'Swlib\\Http\\Exception\\ConnectException' => $vendorDir . '/swlib/http/src/Exception/ConnectException.php', | ||
69 | - 'Swlib\\Http\\Exception\\HttpExceptionMask' => $vendorDir . '/swlib/http/src/Exception/HttpExceptionMask.php', | ||
70 | - 'Swlib\\Http\\Exception\\RequestException' => $vendorDir . '/swlib/http/src/Exception/RequestException.php', | ||
71 | - 'Swlib\\Http\\Exception\\ServerException' => $vendorDir . '/swlib/http/src/Exception/ServerException.php', | ||
72 | - 'Swlib\\Http\\Exception\\TooManyRedirectsException' => $vendorDir . '/swlib/http/src/Exception/TooManyRedirectsException.php', | ||
73 | - 'Swlib\\Http\\Exception\\TransferException' => $vendorDir . '/swlib/http/src/Exception/TransferException.php', | ||
74 | - 'Swlib\\Http\\Message' => $vendorDir . '/swlib/http/src/Message.php', | ||
75 | - 'Swlib\\Http\\PumpStream' => $vendorDir . '/swlib/http/src/PumpStream.php', | ||
76 | - 'Swlib\\Http\\Request' => $vendorDir . '/swlib/http/src/Request.php', | ||
77 | - 'Swlib\\Http\\Response' => $vendorDir . '/swlib/http/src/Response.php', | ||
78 | - 'Swlib\\Http\\Rfc7230' => $vendorDir . '/swlib/http/src/Rfc7230.php', | ||
79 | - 'Swlib\\Http\\Status' => $vendorDir . '/swlib/http/src/Status.php', | ||
80 | - 'Swlib\\Http\\Stream' => $vendorDir . '/swlib/http/src/Stream.php', | ||
81 | - 'Swlib\\Http\\Suffix' => $vendorDir . '/swlib/http/src/Suffix.php', | ||
82 | - 'Swlib\\Http\\SwUploadFile' => $vendorDir . '/swlib/http/src/SwUploadFile.php', | ||
83 | - 'Swlib\\Http\\UploadedFile' => $vendorDir . '/swlib/http/src/UploadedFile.php', | ||
84 | - 'Swlib\\Http\\Uri' => $vendorDir . '/swlib/http/src/Uri.php', | ||
85 | - 'Swlib\\Http\\UriNormalizer' => $vendorDir . '/swlib/http/src/UriNormalizer.php', | ||
86 | - 'Swlib\\Http\\UriResolver' => $vendorDir . '/swlib/http/src/UriResolver.php', | ||
87 | - 'Swlib\\Http\\Util' => $vendorDir . '/swlib/http/src/Util.php', | ||
88 | - 'Swlib\\Saber' => $vendorDir . '/swlib/saber/src/Saber.php', | ||
89 | - 'Swlib\\SaberGM' => $vendorDir . '/swlib/saber/src/SaberGM.php', | ||
90 | - 'Swlib\\Saber\\ClientPool' => $vendorDir . '/swlib/saber/src/ClientPool.php', | ||
91 | - 'Swlib\\Saber\\Request' => $vendorDir . '/swlib/saber/src/Request.php', | ||
92 | - 'Swlib\\Saber\\RequestQueue' => $vendorDir . '/swlib/saber/src/RequestQueue.php', | ||
93 | - 'Swlib\\Saber\\Response' => $vendorDir . '/swlib/saber/src/Response.php', | ||
94 | - 'Swlib\\Saber\\ResponseMap' => $vendorDir . '/swlib/saber/src/ResponseMap.php', | ||
95 | - 'Swlib\\Saber\\WebSocket' => $vendorDir . '/swlib/saber/src/WebSocket.php', | ||
96 | - 'Swlib\\Saber\\WebSocketFrame' => $vendorDir . '/swlib/saber/src/WebSocketFrame.php', | ||
97 | - 'Swlib\\Util\\ArrayMap' => $vendorDir . '/swlib/util/src/ArrayMap.php', | ||
98 | - 'Swlib\\Util\\DataParser' => $vendorDir . '/swlib/util/src/DataParser.php', | ||
99 | - 'Swlib\\Util\\Helper' => $vendorDir . '/swlib/util/src/Helper.php', | ||
100 | - 'Swlib\\Util\\InterceptorTrait' => $vendorDir . '/swlib/util/src/InterceptorTrait.php', | ||
101 | - 'Swlib\\Util\\MapPool' => $vendorDir . '/swlib/util/src/MapPool.php', | ||
102 | - 'Swlib\\Util\\Serialize' => $vendorDir . '/swlib/util/src/Serialize.php', | ||
103 | - 'Swlib\\Util\\SingletonTrait' => $vendorDir . '/swlib/util/src/SingletonTrait.php', | ||
104 | - 'Swlib\\Util\\SpecialMarkTrait' => $vendorDir . '/swlib/util/src/SpecialMarkTrait.php', | ||
105 | - 'Swlib\\Util\\StringDataParserTrait' => $vendorDir . '/swlib/util/src/StringDataParserTrait.php', | ||
106 | - 'Swlib\\Util\\TypeDetector' => $vendorDir . '/swlib/util/src/TypeDetector.php', | ||
107 | -); |
vendor/composer/autoload_files.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -// autoload_files.php @generated by Composer | ||
4 | - | ||
5 | -$vendorDir = dirname(__DIR__); | ||
6 | -$baseDir = dirname($vendorDir); | ||
7 | - | ||
8 | -return array( | ||
9 | - '045cd5d476702c3529ef3e1b9f615e70' => $vendorDir . '/swlib/http/src/functions.php', | ||
10 | - '3a6b4a1bc7c69c0620b4ef88fb5d27d0' => $vendorDir . '/swlib/saber/src/include/functions.php', | ||
11 | - 'bb03d338bda3db8d7d2ebaa9ed85fbb8' => $baseDir . '/config.php', | ||
12 | - '64f502373aeb3a4fc478eb2a271aa6eb' => $baseDir . '/function.php', | ||
13 | -); |
vendor/composer/autoload_namespaces.php
已删除
100644 → 0
vendor/composer/autoload_psr4.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -// autoload_psr4.php @generated by Composer | ||
4 | - | ||
5 | -$vendorDir = dirname(__DIR__); | ||
6 | -$baseDir = dirname($vendorDir); | ||
7 | - | ||
8 | -return array( | ||
9 | - 'Swlib\\Util\\' => array($vendorDir . '/swlib/util/src'), | ||
10 | - 'Swlib\\Saber\\' => array($vendorDir . '/swlib/saber/src'), | ||
11 | - 'Swlib\\Http\\' => array($vendorDir . '/swlib/http/src'), | ||
12 | - 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), | ||
13 | - 'PHPMailer\\PHPMailer\\' => array($vendorDir . '/phpmailer/phpmailer/src'), | ||
14 | - 'Model\\' => array($baseDir . '/model'), | ||
15 | - 'Lib\\' => array($baseDir . '/lib'), | ||
16 | - 'Event\\' => array($baseDir . '/event'), | ||
17 | - 'Controller\\' => array($baseDir . '/controller'), | ||
18 | -); |
vendor/composer/autoload_real.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -// autoload_real.php @generated by Composer | ||
4 | - | ||
5 | -class ComposerAutoloaderInit510d7d2d197bed575e1fdc26074f60e5 | ||
6 | -{ | ||
7 | - private static $loader; | ||
8 | - | ||
9 | - public static function loadClassLoader($class) | ||
10 | - { | ||
11 | - if ('Composer\Autoload\ClassLoader' === $class) { | ||
12 | - require __DIR__ . '/ClassLoader.php'; | ||
13 | - } | ||
14 | - } | ||
15 | - | ||
16 | - /** | ||
17 | - * @return \Composer\Autoload\ClassLoader | ||
18 | - */ | ||
19 | - public static function getLoader() | ||
20 | - { | ||
21 | - if (null !== self::$loader) { | ||
22 | - return self::$loader; | ||
23 | - } | ||
24 | - | ||
25 | - require __DIR__ . '/platform_check.php'; | ||
26 | - | ||
27 | - spl_autoload_register(array('ComposerAutoloaderInit510d7d2d197bed575e1fdc26074f60e5', 'loadClassLoader'), true, true); | ||
28 | - self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); | ||
29 | - spl_autoload_unregister(array('ComposerAutoloaderInit510d7d2d197bed575e1fdc26074f60e5', 'loadClassLoader')); | ||
30 | - | ||
31 | - require __DIR__ . '/autoload_static.php'; | ||
32 | - \Composer\Autoload\ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5::getInitializer($loader)(); | ||
33 | - | ||
34 | - $loader->register(true); | ||
35 | - | ||
36 | - $includeFiles = \Composer\Autoload\ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5::$files; | ||
37 | - foreach ($includeFiles as $fileIdentifier => $file) { | ||
38 | - composerRequire510d7d2d197bed575e1fdc26074f60e5($fileIdentifier, $file); | ||
39 | - } | ||
40 | - | ||
41 | - return $loader; | ||
42 | - } | ||
43 | -} | ||
44 | - | ||
45 | -/** | ||
46 | - * @param string $fileIdentifier | ||
47 | - * @param string $file | ||
48 | - * @return void | ||
49 | - */ | ||
50 | -function composerRequire510d7d2d197bed575e1fdc26074f60e5($fileIdentifier, $file) | ||
51 | -{ | ||
52 | - if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { | ||
53 | - $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; | ||
54 | - | ||
55 | - require $file; | ||
56 | - } | ||
57 | -} |
vendor/composer/autoload_static.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -// autoload_static.php @generated by Composer | ||
4 | - | ||
5 | -namespace Composer\Autoload; | ||
6 | - | ||
7 | -class ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5 | ||
8 | -{ | ||
9 | - public static $files = array ( | ||
10 | - '045cd5d476702c3529ef3e1b9f615e70' => __DIR__ . '/..' . '/swlib/http/src/functions.php', | ||
11 | - '3a6b4a1bc7c69c0620b4ef88fb5d27d0' => __DIR__ . '/..' . '/swlib/saber/src/include/functions.php', | ||
12 | - 'bb03d338bda3db8d7d2ebaa9ed85fbb8' => __DIR__ . '/../..' . '/config.php', | ||
13 | - '64f502373aeb3a4fc478eb2a271aa6eb' => __DIR__ . '/../..' . '/function.php', | ||
14 | - ); | ||
15 | - | ||
16 | - public static $prefixLengthsPsr4 = array ( | ||
17 | - 'S' => | ||
18 | - array ( | ||
19 | - 'Swlib\\Util\\' => 11, | ||
20 | - 'Swlib\\Saber\\' => 12, | ||
21 | - 'Swlib\\Http\\' => 11, | ||
22 | - ), | ||
23 | - 'P' => | ||
24 | - array ( | ||
25 | - 'Psr\\Http\\Message\\' => 17, | ||
26 | - 'PHPMailer\\PHPMailer\\' => 20, | ||
27 | - ), | ||
28 | - 'M' => | ||
29 | - array ( | ||
30 | - 'Model\\' => 6, | ||
31 | - ), | ||
32 | - 'L' => | ||
33 | - array ( | ||
34 | - 'Lib\\' => 4, | ||
35 | - ), | ||
36 | - 'E' => | ||
37 | - array ( | ||
38 | - 'Event\\' => 6, | ||
39 | - ), | ||
40 | - 'C' => | ||
41 | - array ( | ||
42 | - 'Controller\\' => 11, | ||
43 | - ), | ||
44 | - ); | ||
45 | - | ||
46 | - public static $prefixDirsPsr4 = array ( | ||
47 | - 'Swlib\\Util\\' => | ||
48 | - array ( | ||
49 | - 0 => __DIR__ . '/..' . '/swlib/util/src', | ||
50 | - ), | ||
51 | - 'Swlib\\Saber\\' => | ||
52 | - array ( | ||
53 | - 0 => __DIR__ . '/..' . '/swlib/saber/src', | ||
54 | - ), | ||
55 | - 'Swlib\\Http\\' => | ||
56 | - array ( | ||
57 | - 0 => __DIR__ . '/..' . '/swlib/http/src', | ||
58 | - ), | ||
59 | - 'Psr\\Http\\Message\\' => | ||
60 | - array ( | ||
61 | - 0 => __DIR__ . '/..' . '/psr/http-message/src', | ||
62 | - ), | ||
63 | - 'PHPMailer\\PHPMailer\\' => | ||
64 | - array ( | ||
65 | - 0 => __DIR__ . '/..' . '/phpmailer/phpmailer/src', | ||
66 | - ), | ||
67 | - 'Model\\' => | ||
68 | - array ( | ||
69 | - 0 => __DIR__ . '/../..' . '/model', | ||
70 | - ), | ||
71 | - 'Lib\\' => | ||
72 | - array ( | ||
73 | - 0 => __DIR__ . '/../..' . '/lib', | ||
74 | - ), | ||
75 | - 'Event\\' => | ||
76 | - array ( | ||
77 | - 0 => __DIR__ . '/../..' . '/event', | ||
78 | - ), | ||
79 | - 'Controller\\' => | ||
80 | - array ( | ||
81 | - 0 => __DIR__ . '/../..' . '/controller', | ||
82 | - ), | ||
83 | - ); | ||
84 | - | ||
85 | - public static $classMap = array ( | ||
86 | - 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', | ||
87 | - 'Controller\\Base' => __DIR__ . '/../..' . '/controller/Base.php', | ||
88 | - 'Controller\\Blacklist' => __DIR__ . '/../..' . '/controller/Blacklist.php', | ||
89 | - 'Controller\\Folder' => __DIR__ . '/../..' . '/controller/Folder.php', | ||
90 | - 'Controller\\Home' => __DIR__ . '/../..' . '/controller/Home.php', | ||
91 | - 'Controller\\Job' => __DIR__ . '/../..' . '/controller/Job.php', | ||
92 | - 'Controller\\Login' => __DIR__ . '/../..' . '/controller/Login.php', | ||
93 | - 'Controller\\Test' => __DIR__ . '/../..' . '/controller/Test.php', | ||
94 | - 'Controller\\Upload' => __DIR__ . '/../..' . '/controller/Upload.php', | ||
95 | - 'Controller\\fob_ai\\MailList' => __DIR__ . '/../..' . '/controller/fob_ai/MailList.php', | ||
96 | - 'Controller\\v2\\Home' => __DIR__ . '/../..' . '/controller/v2/Home.php', | ||
97 | - 'Event\\syncMail' => __DIR__ . '/../..' . '/event/syncMail.php', | ||
98 | - 'Lib\\App' => __DIR__ . '/../..' . '/lib/App.php', | ||
99 | - 'Lib\\Db' => __DIR__ . '/../..' . '/lib/Db.php', | ||
100 | - 'Lib\\DbException' => __DIR__ . '/../..' . '/lib/DbException.php', | ||
101 | - 'Lib\\DbPool' => __DIR__ . '/../..' . '/lib/DbPool.php', | ||
102 | - 'Lib\\DbQuery' => __DIR__ . '/../..' . '/lib/DbQuery.php', | ||
103 | - 'Lib\\Err' => __DIR__ . '/../..' . '/lib/Err.php', | ||
104 | - 'Lib\\Lang' => __DIR__ . '/../..' . '/lib/Lang.php', | ||
105 | - 'Lib\\Log' => __DIR__ . '/../..' . '/lib/Log.php', | ||
106 | - 'Lib\\Mail\\Body' => __DIR__ . '/../..' . '/lib/Mail/Body.php', | ||
107 | - 'Lib\\Mail\\DeCoding' => __DIR__ . '/../..' . '/lib/Mail/DeCoding.php', | ||
108 | - 'Lib\\Mail\\Imap' => __DIR__ . '/../..' . '/lib/Mail/Imap.php', | ||
109 | - 'Lib\\Mail\\Mail' => __DIR__ . '/../..' . '/lib/Mail/Mail.php', | ||
110 | - 'Lib\\Mail\\MailFun' => __DIR__ . '/../..' . '/lib/Mail/MailFun.php', | ||
111 | - 'Lib\\Redis' => __DIR__ . '/../..' . '/lib/Redis.php', | ||
112 | - 'Lib\\RedisPool' => __DIR__ . '/../..' . '/lib/RedisPool.php', | ||
113 | - 'Lib\\RedisQuery' => __DIR__ . '/../..' . '/lib/RedisQuery.php', | ||
114 | - 'Lib\\Route' => __DIR__ . '/../..' . '/lib/Route.php', | ||
115 | - 'Lib\\UploadFile' => __DIR__ . '/../..' . '/lib/UploadFile.php', | ||
116 | - 'Lib\\Verify' => __DIR__ . '/../..' . '/lib/Verify.php', | ||
117 | - 'Model\\blacklist' => __DIR__ . '/../..' . '/model/blacklist.php', | ||
118 | - 'Model\\bodySql' => __DIR__ . '/../..' . '/model/bodySql.php', | ||
119 | - 'Model\\emailSql' => __DIR__ . '/../..' . '/model/emailSql.php', | ||
120 | - 'Model\\folderSql' => __DIR__ . '/../..' . '/model/folderSql.php', | ||
121 | - 'Model\\hostSql' => __DIR__ . '/../..' . '/model/hostSql.php', | ||
122 | - 'Model\\listsSql' => __DIR__ . '/../..' . '/model/listsSql.php', | ||
123 | - 'Model\\sendJobStatusSql' => __DIR__ . '/../..' . '/model/sendJobStatusSql.php', | ||
124 | - 'Model\\sendJobsSql' => __DIR__ . '/../..' . '/model/sendJobsSql.php', | ||
125 | - 'PHPMailer\\PHPMailer\\Exception' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/Exception.php', | ||
126 | - 'PHPMailer\\PHPMailer\\OAuth' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/OAuth.php', | ||
127 | - 'PHPMailer\\PHPMailer\\OAuthTokenProvider' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/OAuthTokenProvider.php', | ||
128 | - 'PHPMailer\\PHPMailer\\PHPMailer' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/PHPMailer.php', | ||
129 | - 'PHPMailer\\PHPMailer\\POP3' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/POP3.php', | ||
130 | - 'PHPMailer\\PHPMailer\\SMTP' => __DIR__ . '/..' . '/phpmailer/phpmailer/src/SMTP.php', | ||
131 | - 'Psr\\Http\\Message\\MessageInterface' => __DIR__ . '/..' . '/psr/http-message/src/MessageInterface.php', | ||
132 | - 'Psr\\Http\\Message\\RequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/RequestInterface.php', | ||
133 | - 'Psr\\Http\\Message\\ResponseInterface' => __DIR__ . '/..' . '/psr/http-message/src/ResponseInterface.php', | ||
134 | - 'Psr\\Http\\Message\\ServerRequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/ServerRequestInterface.php', | ||
135 | - 'Psr\\Http\\Message\\StreamInterface' => __DIR__ . '/..' . '/psr/http-message/src/StreamInterface.php', | ||
136 | - 'Psr\\Http\\Message\\UploadedFileInterface' => __DIR__ . '/..' . '/psr/http-message/src/UploadedFileInterface.php', | ||
137 | - 'Psr\\Http\\Message\\UriInterface' => __DIR__ . '/..' . '/psr/http-message/src/UriInterface.php', | ||
138 | - 'Swlib\\Http\\BufferStream' => __DIR__ . '/..' . '/swlib/http/src/BufferStream.php', | ||
139 | - 'Swlib\\Http\\ContentType' => __DIR__ . '/..' . '/swlib/http/src/ContentType.php', | ||
140 | - 'Swlib\\Http\\Cookie' => __DIR__ . '/..' . '/swlib/http/src/Cookie.php', | ||
141 | - 'Swlib\\Http\\Cookies' => __DIR__ . '/..' . '/swlib/http/src/Cookies.php', | ||
142 | - 'Swlib\\Http\\CookiesManagerTrait' => __DIR__ . '/..' . '/swlib/http/src/CookiesManagerTrait.php', | ||
143 | - 'Swlib\\Http\\Exception\\BadResponseException' => __DIR__ . '/..' . '/swlib/http/src/Exception/BadResponseException.php', | ||
144 | - 'Swlib\\Http\\Exception\\ClientException' => __DIR__ . '/..' . '/swlib/http/src/Exception/ClientException.php', | ||
145 | - 'Swlib\\Http\\Exception\\ConnectException' => __DIR__ . '/..' . '/swlib/http/src/Exception/ConnectException.php', | ||
146 | - 'Swlib\\Http\\Exception\\HttpExceptionMask' => __DIR__ . '/..' . '/swlib/http/src/Exception/HttpExceptionMask.php', | ||
147 | - 'Swlib\\Http\\Exception\\RequestException' => __DIR__ . '/..' . '/swlib/http/src/Exception/RequestException.php', | ||
148 | - 'Swlib\\Http\\Exception\\ServerException' => __DIR__ . '/..' . '/swlib/http/src/Exception/ServerException.php', | ||
149 | - 'Swlib\\Http\\Exception\\TooManyRedirectsException' => __DIR__ . '/..' . '/swlib/http/src/Exception/TooManyRedirectsException.php', | ||
150 | - 'Swlib\\Http\\Exception\\TransferException' => __DIR__ . '/..' . '/swlib/http/src/Exception/TransferException.php', | ||
151 | - 'Swlib\\Http\\Message' => __DIR__ . '/..' . '/swlib/http/src/Message.php', | ||
152 | - 'Swlib\\Http\\PumpStream' => __DIR__ . '/..' . '/swlib/http/src/PumpStream.php', | ||
153 | - 'Swlib\\Http\\Request' => __DIR__ . '/..' . '/swlib/http/src/Request.php', | ||
154 | - 'Swlib\\Http\\Response' => __DIR__ . '/..' . '/swlib/http/src/Response.php', | ||
155 | - 'Swlib\\Http\\Rfc7230' => __DIR__ . '/..' . '/swlib/http/src/Rfc7230.php', | ||
156 | - 'Swlib\\Http\\Status' => __DIR__ . '/..' . '/swlib/http/src/Status.php', | ||
157 | - 'Swlib\\Http\\Stream' => __DIR__ . '/..' . '/swlib/http/src/Stream.php', | ||
158 | - 'Swlib\\Http\\Suffix' => __DIR__ . '/..' . '/swlib/http/src/Suffix.php', | ||
159 | - 'Swlib\\Http\\SwUploadFile' => __DIR__ . '/..' . '/swlib/http/src/SwUploadFile.php', | ||
160 | - 'Swlib\\Http\\UploadedFile' => __DIR__ . '/..' . '/swlib/http/src/UploadedFile.php', | ||
161 | - 'Swlib\\Http\\Uri' => __DIR__ . '/..' . '/swlib/http/src/Uri.php', | ||
162 | - 'Swlib\\Http\\UriNormalizer' => __DIR__ . '/..' . '/swlib/http/src/UriNormalizer.php', | ||
163 | - 'Swlib\\Http\\UriResolver' => __DIR__ . '/..' . '/swlib/http/src/UriResolver.php', | ||
164 | - 'Swlib\\Http\\Util' => __DIR__ . '/..' . '/swlib/http/src/Util.php', | ||
165 | - 'Swlib\\Saber' => __DIR__ . '/..' . '/swlib/saber/src/Saber.php', | ||
166 | - 'Swlib\\SaberGM' => __DIR__ . '/..' . '/swlib/saber/src/SaberGM.php', | ||
167 | - 'Swlib\\Saber\\ClientPool' => __DIR__ . '/..' . '/swlib/saber/src/ClientPool.php', | ||
168 | - 'Swlib\\Saber\\Request' => __DIR__ . '/..' . '/swlib/saber/src/Request.php', | ||
169 | - 'Swlib\\Saber\\RequestQueue' => __DIR__ . '/..' . '/swlib/saber/src/RequestQueue.php', | ||
170 | - 'Swlib\\Saber\\Response' => __DIR__ . '/..' . '/swlib/saber/src/Response.php', | ||
171 | - 'Swlib\\Saber\\ResponseMap' => __DIR__ . '/..' . '/swlib/saber/src/ResponseMap.php', | ||
172 | - 'Swlib\\Saber\\WebSocket' => __DIR__ . '/..' . '/swlib/saber/src/WebSocket.php', | ||
173 | - 'Swlib\\Saber\\WebSocketFrame' => __DIR__ . '/..' . '/swlib/saber/src/WebSocketFrame.php', | ||
174 | - 'Swlib\\Util\\ArrayMap' => __DIR__ . '/..' . '/swlib/util/src/ArrayMap.php', | ||
175 | - 'Swlib\\Util\\DataParser' => __DIR__ . '/..' . '/swlib/util/src/DataParser.php', | ||
176 | - 'Swlib\\Util\\Helper' => __DIR__ . '/..' . '/swlib/util/src/Helper.php', | ||
177 | - 'Swlib\\Util\\InterceptorTrait' => __DIR__ . '/..' . '/swlib/util/src/InterceptorTrait.php', | ||
178 | - 'Swlib\\Util\\MapPool' => __DIR__ . '/..' . '/swlib/util/src/MapPool.php', | ||
179 | - 'Swlib\\Util\\Serialize' => __DIR__ . '/..' . '/swlib/util/src/Serialize.php', | ||
180 | - 'Swlib\\Util\\SingletonTrait' => __DIR__ . '/..' . '/swlib/util/src/SingletonTrait.php', | ||
181 | - 'Swlib\\Util\\SpecialMarkTrait' => __DIR__ . '/..' . '/swlib/util/src/SpecialMarkTrait.php', | ||
182 | - 'Swlib\\Util\\StringDataParserTrait' => __DIR__ . '/..' . '/swlib/util/src/StringDataParserTrait.php', | ||
183 | - 'Swlib\\Util\\TypeDetector' => __DIR__ . '/..' . '/swlib/util/src/TypeDetector.php', | ||
184 | - ); | ||
185 | - | ||
186 | - public static function getInitializer(ClassLoader $loader) | ||
187 | - { | ||
188 | - return \Closure::bind(function () use ($loader) { | ||
189 | - $loader->prefixLengthsPsr4 = ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5::$prefixLengthsPsr4; | ||
190 | - $loader->prefixDirsPsr4 = ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5::$prefixDirsPsr4; | ||
191 | - $loader->classMap = ComposerStaticInit510d7d2d197bed575e1fdc26074f60e5::$classMap; | ||
192 | - | ||
193 | - }, null, ClassLoader::class); | ||
194 | - } | ||
195 | -} |
vendor/composer/installed.json
已删除
100644 → 0
1 | -{ | ||
2 | - "packages": [ | ||
3 | - { | ||
4 | - "name": "phpmailer/phpmailer", | ||
5 | - "version": "v6.7.1", | ||
6 | - "version_normalized": "6.7.1.0", | ||
7 | - "source": { | ||
8 | - "type": "git", | ||
9 | - "url": "https://github.com/PHPMailer/PHPMailer.git", | ||
10 | - "reference": "49cd7ea3d2563f028d7811f06864a53b1f15ff55" | ||
11 | - }, | ||
12 | - "dist": { | ||
13 | - "type": "zip", | ||
14 | - "url": "https://api.github.com/repos/PHPMailer/PHPMailer/zipball/49cd7ea3d2563f028d7811f06864a53b1f15ff55", | ||
15 | - "reference": "49cd7ea3d2563f028d7811f06864a53b1f15ff55", | ||
16 | - "shasum": "", | ||
17 | - "mirrors": [ | ||
18 | - { | ||
19 | - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", | ||
20 | - "preferred": true | ||
21 | - } | ||
22 | - ] | ||
23 | - }, | ||
24 | - "require": { | ||
25 | - "ext-ctype": "*", | ||
26 | - "ext-filter": "*", | ||
27 | - "ext-hash": "*", | ||
28 | - "php": ">=5.5.0" | ||
29 | - }, | ||
30 | - "require-dev": { | ||
31 | - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2", | ||
32 | - "doctrine/annotations": "^1.2.6 || ^1.13.3", | ||
33 | - "php-parallel-lint/php-console-highlighter": "^1.0.0", | ||
34 | - "php-parallel-lint/php-parallel-lint": "^1.3.2", | ||
35 | - "phpcompatibility/php-compatibility": "^9.3.5", | ||
36 | - "roave/security-advisories": "dev-latest", | ||
37 | - "squizlabs/php_codesniffer": "^3.7.1", | ||
38 | - "yoast/phpunit-polyfills": "^1.0.4" | ||
39 | - }, | ||
40 | - "suggest": { | ||
41 | - "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", | ||
42 | - "ext-openssl": "Needed for secure SMTP sending and DKIM signing", | ||
43 | - "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", | ||
44 | - "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", | ||
45 | - "league/oauth2-google": "Needed for Google XOAUTH2 authentication", | ||
46 | - "psr/log": "For optional PSR-3 debug logging", | ||
47 | - "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)", | ||
48 | - "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication" | ||
49 | - }, | ||
50 | - "time": "2022-12-08T13:30:06+00:00", | ||
51 | - "type": "library", | ||
52 | - "installation-source": "dist", | ||
53 | - "autoload": { | ||
54 | - "psr-4": { | ||
55 | - "PHPMailer\\PHPMailer\\": "src/" | ||
56 | - } | ||
57 | - }, | ||
58 | - "notification-url": "https://packagist.org/downloads/", | ||
59 | - "license": [ | ||
60 | - "LGPL-2.1-only" | ||
61 | - ], | ||
62 | - "authors": [ | ||
63 | - { | ||
64 | - "name": "Marcus Bointon", | ||
65 | - "email": "phpmailer@synchromedia.co.uk" | ||
66 | - }, | ||
67 | - { | ||
68 | - "name": "Jim Jagielski", | ||
69 | - "email": "jimjag@gmail.com" | ||
70 | - }, | ||
71 | - { | ||
72 | - "name": "Andy Prevost", | ||
73 | - "email": "codeworxtech@users.sourceforge.net" | ||
74 | - }, | ||
75 | - { | ||
76 | - "name": "Brent R. Matzelle" | ||
77 | - } | ||
78 | - ], | ||
79 | - "description": "PHPMailer is a full-featured email creation and transfer class for PHP", | ||
80 | - "support": { | ||
81 | - "issues": "https://github.com/PHPMailer/PHPMailer/issues", | ||
82 | - "source": "https://github.com/PHPMailer/PHPMailer/tree/v6.7.1" | ||
83 | - }, | ||
84 | - "funding": [ | ||
85 | - { | ||
86 | - "url": "https://github.com/Synchro", | ||
87 | - "type": "github" | ||
88 | - } | ||
89 | - ], | ||
90 | - "install-path": "../phpmailer/phpmailer" | ||
91 | - }, | ||
92 | - { | ||
93 | - "name": "psr/http-message", | ||
94 | - "version": "1.1", | ||
95 | - "version_normalized": "1.1.0.0", | ||
96 | - "source": { | ||
97 | - "type": "git", | ||
98 | - "url": "https://github.com/php-fig/http-message.git", | ||
99 | - "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba" | ||
100 | - }, | ||
101 | - "dist": { | ||
102 | - "type": "zip", | ||
103 | - "url": "https://api.github.com/repos/php-fig/http-message/zipball/cb6ce4845ce34a8ad9e68117c10ee90a29919eba", | ||
104 | - "reference": "cb6ce4845ce34a8ad9e68117c10ee90a29919eba", | ||
105 | - "shasum": "", | ||
106 | - "mirrors": [ | ||
107 | - { | ||
108 | - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", | ||
109 | - "preferred": true | ||
110 | - } | ||
111 | - ] | ||
112 | - }, | ||
113 | - "require": { | ||
114 | - "php": "^7.2 || ^8.0" | ||
115 | - }, | ||
116 | - "time": "2023-04-04T09:50:52+00:00", | ||
117 | - "type": "library", | ||
118 | - "extra": { | ||
119 | - "branch-alias": { | ||
120 | - "dev-master": "1.1.x-dev" | ||
121 | - } | ||
122 | - }, | ||
123 | - "installation-source": "dist", | ||
124 | - "autoload": { | ||
125 | - "psr-4": { | ||
126 | - "Psr\\Http\\Message\\": "src/" | ||
127 | - } | ||
128 | - }, | ||
129 | - "notification-url": "https://packagist.org/downloads/", | ||
130 | - "license": [ | ||
131 | - "MIT" | ||
132 | - ], | ||
133 | - "authors": [ | ||
134 | - { | ||
135 | - "name": "PHP-FIG", | ||
136 | - "homepage": "http://www.php-fig.org/" | ||
137 | - } | ||
138 | - ], | ||
139 | - "description": "Common interface for HTTP messages", | ||
140 | - "homepage": "https://github.com/php-fig/http-message", | ||
141 | - "keywords": [ | ||
142 | - "http", | ||
143 | - "http-message", | ||
144 | - "psr", | ||
145 | - "psr-7", | ||
146 | - "request", | ||
147 | - "response" | ||
148 | - ], | ||
149 | - "support": { | ||
150 | - "source": "https://github.com/php-fig/http-message/tree/1.1" | ||
151 | - }, | ||
152 | - "install-path": "../psr/http-message" | ||
153 | - }, | ||
154 | - { | ||
155 | - "name": "swlib/http", | ||
156 | - "version": "v1.0.8", | ||
157 | - "version_normalized": "1.0.8.0", | ||
158 | - "source": { | ||
159 | - "type": "git", | ||
160 | - "url": "https://github.com/swlib/http.git", | ||
161 | - "reference": "e97d9d05b741d4ee7ef58824a280acf983354d5e" | ||
162 | - }, | ||
163 | - "dist": { | ||
164 | - "type": "zip", | ||
165 | - "url": "https://api.github.com/repos/swlib/http/zipball/e97d9d05b741d4ee7ef58824a280acf983354d5e", | ||
166 | - "reference": "e97d9d05b741d4ee7ef58824a280acf983354d5e", | ||
167 | - "shasum": "", | ||
168 | - "mirrors": [ | ||
169 | - { | ||
170 | - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", | ||
171 | - "preferred": true | ||
172 | - } | ||
173 | - ] | ||
174 | - }, | ||
175 | - "require": { | ||
176 | - "php": ">=7.1", | ||
177 | - "psr/http-message": "~1.0" | ||
178 | - }, | ||
179 | - "require-dev": { | ||
180 | - "phpunit/phpunit": "~7" | ||
181 | - }, | ||
182 | - "time": "2020-08-15T10:36:45+00:00", | ||
183 | - "type": "library", | ||
184 | - "installation-source": "dist", | ||
185 | - "autoload": { | ||
186 | - "files": [ | ||
187 | - "src/functions.php" | ||
188 | - ], | ||
189 | - "psr-4": { | ||
190 | - "Swlib\\Http\\": "src" | ||
191 | - } | ||
192 | - }, | ||
193 | - "notification-url": "https://packagist.org/downloads/", | ||
194 | - "license": [ | ||
195 | - "MIT" | ||
196 | - ], | ||
197 | - "authors": [ | ||
198 | - { | ||
199 | - "name": "twosee", | ||
200 | - "email": "twose@qq.com" | ||
201 | - } | ||
202 | - ], | ||
203 | - "description": "Swlib-HTTP base class repository, PSR implementation", | ||
204 | - "keywords": [ | ||
205 | - "http", | ||
206 | - "php", | ||
207 | - "psr7", | ||
208 | - "swoole" | ||
209 | - ], | ||
210 | - "support": { | ||
211 | - "issues": "https://github.com/swlib/http/issues", | ||
212 | - "source": "https://github.com/swlib/http/tree/v1.x" | ||
213 | - }, | ||
214 | - "install-path": "../swlib/http" | ||
215 | - }, | ||
216 | - { | ||
217 | - "name": "swlib/saber", | ||
218 | - "version": "v1.0.18", | ||
219 | - "version_normalized": "1.0.18.0", | ||
220 | - "source": { | ||
221 | - "type": "git", | ||
222 | - "url": "https://github.com/swlib/saber.git", | ||
223 | - "reference": "24034ea70d64063cc9032c4aa08cb888995df190" | ||
224 | - }, | ||
225 | - "dist": { | ||
226 | - "type": "zip", | ||
227 | - "url": "https://api.github.com/repos/swlib/saber/zipball/24034ea70d64063cc9032c4aa08cb888995df190", | ||
228 | - "reference": "24034ea70d64063cc9032c4aa08cb888995df190", | ||
229 | - "shasum": "", | ||
230 | - "mirrors": [ | ||
231 | - { | ||
232 | - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", | ||
233 | - "preferred": true | ||
234 | - } | ||
235 | - ] | ||
236 | - }, | ||
237 | - "require": { | ||
238 | - "php": ">=7.1", | ||
239 | - "swlib/http": "^1.0", | ||
240 | - "swlib/util": "^1.0" | ||
241 | - }, | ||
242 | - "require-dev": { | ||
243 | - "phpunit/phpunit": "~7" | ||
244 | - }, | ||
245 | - "time": "2021-04-20T06:28:59+00:00", | ||
246 | - "type": "library", | ||
247 | - "installation-source": "dist", | ||
248 | - "autoload": { | ||
249 | - "files": [ | ||
250 | - "src/include/functions.php" | ||
251 | - ], | ||
252 | - "psr-4": { | ||
253 | - "Swlib\\Saber\\": "src" | ||
254 | - }, | ||
255 | - "classmap": [ | ||
256 | - "src/Saber.php", | ||
257 | - "src/SaberGM.php" | ||
258 | - ] | ||
259 | - }, | ||
260 | - "notification-url": "https://packagist.org/downloads/", | ||
261 | - "license": [ | ||
262 | - "Apache-2.0" | ||
263 | - ], | ||
264 | - "authors": [ | ||
265 | - { | ||
266 | - "name": "twosee", | ||
267 | - "email": "twose@qq.com" | ||
268 | - } | ||
269 | - ], | ||
270 | - "description": "Swoole coroutine HTTP client", | ||
271 | - "keywords": [ | ||
272 | - "ajax", | ||
273 | - "axios", | ||
274 | - "client", | ||
275 | - "coroutine", | ||
276 | - "curl", | ||
277 | - "http", | ||
278 | - "php", | ||
279 | - "psr7", | ||
280 | - "requests", | ||
281 | - "swoole" | ||
282 | - ], | ||
283 | - "support": { | ||
284 | - "issues": "https://github.com/swlib/saber/issues", | ||
285 | - "source": "https://github.com/swlib/saber/tree/v1.0.18" | ||
286 | - }, | ||
287 | - "install-path": "../swlib/saber" | ||
288 | - }, | ||
289 | - { | ||
290 | - "name": "swlib/util", | ||
291 | - "version": "v1.0.3", | ||
292 | - "version_normalized": "1.0.3.0", | ||
293 | - "source": { | ||
294 | - "type": "git", | ||
295 | - "url": "https://github.com/swlib/util.git", | ||
296 | - "reference": "300f551753702f5bfcbfb814d53bdbf057719a43" | ||
297 | - }, | ||
298 | - "dist": { | ||
299 | - "type": "zip", | ||
300 | - "url": "https://api.github.com/repos/swlib/util/zipball/300f551753702f5bfcbfb814d53bdbf057719a43", | ||
301 | - "reference": "300f551753702f5bfcbfb814d53bdbf057719a43", | ||
302 | - "shasum": "", | ||
303 | - "mirrors": [ | ||
304 | - { | ||
305 | - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", | ||
306 | - "preferred": true | ||
307 | - } | ||
308 | - ] | ||
309 | - }, | ||
310 | - "require": { | ||
311 | - "php": ">=7.0" | ||
312 | - }, | ||
313 | - "require-dev": { | ||
314 | - "phpunit/phpunit": "~7" | ||
315 | - }, | ||
316 | - "time": "2020-08-24T10:00:58+00:00", | ||
317 | - "type": "library", | ||
318 | - "installation-source": "dist", | ||
319 | - "autoload": { | ||
320 | - "psr-4": { | ||
321 | - "Swlib\\Util\\": "src" | ||
322 | - } | ||
323 | - }, | ||
324 | - "notification-url": "https://packagist.org/downloads/", | ||
325 | - "license": [ | ||
326 | - "Apache-2.0" | ||
327 | - ], | ||
328 | - "authors": [ | ||
329 | - { | ||
330 | - "name": "twosee", | ||
331 | - "email": "twose@qq.com" | ||
332 | - } | ||
333 | - ], | ||
334 | - "description": "Swlib Toolkit", | ||
335 | - "keywords": [ | ||
336 | - "php", | ||
337 | - "swlib", | ||
338 | - "swoole", | ||
339 | - "util" | ||
340 | - ], | ||
341 | - "support": { | ||
342 | - "issues": "https://github.com/swlib/util/issues", | ||
343 | - "source": "https://github.com/swlib/util/tree/v1.0.3" | ||
344 | - }, | ||
345 | - "install-path": "../swlib/util" | ||
346 | - } | ||
347 | - ], | ||
348 | - "dev": true, | ||
349 | - "dev-package-names": [] | ||
350 | -} |
vendor/composer/installed.php
已删除
100644 → 0
1 | -<?php return array( | ||
2 | - 'root' => array( | ||
3 | - 'pretty_version' => '1.0.0+no-version-set', | ||
4 | - 'version' => '1.0.0.0', | ||
5 | - 'type' => 'project', | ||
6 | - 'install_path' => __DIR__ . '/../../', | ||
7 | - 'aliases' => array(), | ||
8 | - 'reference' => NULL, | ||
9 | - 'name' => 'globalso/email', | ||
10 | - 'dev' => true, | ||
11 | - ), | ||
12 | - 'versions' => array( | ||
13 | - 'globalso/email' => array( | ||
14 | - 'pretty_version' => '1.0.0+no-version-set', | ||
15 | - 'version' => '1.0.0.0', | ||
16 | - 'type' => 'project', | ||
17 | - 'install_path' => __DIR__ . '/../../', | ||
18 | - 'aliases' => array(), | ||
19 | - 'reference' => NULL, | ||
20 | - 'dev_requirement' => false, | ||
21 | - ), | ||
22 | - 'phpmailer/phpmailer' => array( | ||
23 | - 'pretty_version' => 'v6.7.1', | ||
24 | - 'version' => '6.7.1.0', | ||
25 | - 'type' => 'library', | ||
26 | - 'install_path' => __DIR__ . '/../phpmailer/phpmailer', | ||
27 | - 'aliases' => array(), | ||
28 | - 'reference' => '49cd7ea3d2563f028d7811f06864a53b1f15ff55', | ||
29 | - 'dev_requirement' => false, | ||
30 | - ), | ||
31 | - 'psr/http-message' => array( | ||
32 | - 'pretty_version' => '1.1', | ||
33 | - 'version' => '1.1.0.0', | ||
34 | - 'type' => 'library', | ||
35 | - 'install_path' => __DIR__ . '/../psr/http-message', | ||
36 | - 'aliases' => array(), | ||
37 | - 'reference' => 'cb6ce4845ce34a8ad9e68117c10ee90a29919eba', | ||
38 | - 'dev_requirement' => false, | ||
39 | - ), | ||
40 | - 'swlib/http' => array( | ||
41 | - 'pretty_version' => 'v1.0.8', | ||
42 | - 'version' => '1.0.8.0', | ||
43 | - 'type' => 'library', | ||
44 | - 'install_path' => __DIR__ . '/../swlib/http', | ||
45 | - 'aliases' => array(), | ||
46 | - 'reference' => 'e97d9d05b741d4ee7ef58824a280acf983354d5e', | ||
47 | - 'dev_requirement' => false, | ||
48 | - ), | ||
49 | - 'swlib/saber' => array( | ||
50 | - 'pretty_version' => 'v1.0.18', | ||
51 | - 'version' => '1.0.18.0', | ||
52 | - 'type' => 'library', | ||
53 | - 'install_path' => __DIR__ . '/../swlib/saber', | ||
54 | - 'aliases' => array(), | ||
55 | - 'reference' => '24034ea70d64063cc9032c4aa08cb888995df190', | ||
56 | - 'dev_requirement' => false, | ||
57 | - ), | ||
58 | - 'swlib/util' => array( | ||
59 | - 'pretty_version' => 'v1.0.3', | ||
60 | - 'version' => '1.0.3.0', | ||
61 | - 'type' => 'library', | ||
62 | - 'install_path' => __DIR__ . '/../swlib/util', | ||
63 | - 'aliases' => array(), | ||
64 | - 'reference' => '300f551753702f5bfcbfb814d53bdbf057719a43', | ||
65 | - 'dev_requirement' => false, | ||
66 | - ), | ||
67 | - ), | ||
68 | -); |
vendor/composer/platform_check.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -// platform_check.php @generated by Composer | ||
4 | - | ||
5 | -$issues = array(); | ||
6 | - | ||
7 | -if (!(PHP_VERSION_ID >= 80002)) { | ||
8 | - $issues[] = 'Your Composer dependencies require a PHP version ">= 8.0.2". You are running ' . PHP_VERSION . '.'; | ||
9 | -} | ||
10 | - | ||
11 | -if ($issues) { | ||
12 | - if (!headers_sent()) { | ||
13 | - header('HTTP/1.1 500 Internal Server Error'); | ||
14 | - } | ||
15 | - if (!ini_get('display_errors')) { | ||
16 | - if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { | ||
17 | - fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL); | ||
18 | - } elseif (!headers_sent()) { | ||
19 | - echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL; | ||
20 | - } | ||
21 | - } | ||
22 | - trigger_error( | ||
23 | - 'Composer detected issues in your platform: ' . implode(' ', $issues), | ||
24 | - E_USER_ERROR | ||
25 | - ); | ||
26 | -} |
vendor/phpmailer/phpmailer/COMMITMENT
已删除
100644 → 0
1 | -GPL Cooperation Commitment | ||
2 | -Version 1.0 | ||
3 | - | ||
4 | -Before filing or continuing to prosecute any legal proceeding or claim | ||
5 | -(other than a Defensive Action) arising from termination of a Covered | ||
6 | -License, we commit to extend to the person or entity ('you') accused | ||
7 | -of violating the Covered License the following provisions regarding | ||
8 | -cure and reinstatement, taken from GPL version 3. As used here, the | ||
9 | -term 'this License' refers to the specific Covered License being | ||
10 | -enforced. | ||
11 | - | ||
12 | - However, if you cease all violation of this License, then your | ||
13 | - license from a particular copyright holder is reinstated (a) | ||
14 | - provisionally, unless and until the copyright holder explicitly | ||
15 | - and finally terminates your license, and (b) permanently, if the | ||
16 | - copyright holder fails to notify you of the violation by some | ||
17 | - reasonable means prior to 60 days after the cessation. | ||
18 | - | ||
19 | - Moreover, your license from a particular copyright holder is | ||
20 | - reinstated permanently if the copyright holder notifies you of the | ||
21 | - violation by some reasonable means, this is the first time you | ||
22 | - have received notice of violation of this License (for any work) | ||
23 | - from that copyright holder, and you cure the violation prior to 30 | ||
24 | - days after your receipt of the notice. | ||
25 | - | ||
26 | -We intend this Commitment to be irrevocable, and binding and | ||
27 | -enforceable against us and assignees of or successors to our | ||
28 | -copyrights. | ||
29 | - | ||
30 | -Definitions | ||
31 | - | ||
32 | -'Covered License' means the GNU General Public License, version 2 | ||
33 | -(GPLv2), the GNU Lesser General Public License, version 2.1 | ||
34 | -(LGPLv2.1), or the GNU Library General Public License, version 2 | ||
35 | -(LGPLv2), all as published by the Free Software Foundation. | ||
36 | - | ||
37 | -'Defensive Action' means a legal proceeding or claim that We bring | ||
38 | -against you in response to a prior proceeding or claim initiated by | ||
39 | -you or your affiliate. | ||
40 | - | ||
41 | -'We' means each contributor to this repository as of the date of | ||
42 | -inclusion of this file, including subsidiaries of a corporate | ||
43 | -contributor. | ||
44 | - | ||
45 | -This work is available under a Creative Commons Attribution-ShareAlike | ||
46 | -4.0 International license (https://creativecommons.org/licenses/by-sa/4.0/). |
vendor/phpmailer/phpmailer/LICENSE
已删除
100644 → 0
1 | - GNU LESSER GENERAL PUBLIC LICENSE | ||
2 | - Version 2.1, February 1999 | ||
3 | - | ||
4 | - Copyright (C) 1991, 1999 Free Software Foundation, Inc. | ||
5 | - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
6 | - Everyone is permitted to copy and distribute verbatim copies | ||
7 | - of this license document, but changing it is not allowed. | ||
8 | - | ||
9 | -[This is the first released version of the Lesser GPL. It also counts | ||
10 | - as the successor of the GNU Library Public License, version 2, hence | ||
11 | - the version number 2.1.] | ||
12 | - | ||
13 | - Preamble | ||
14 | - | ||
15 | - The licenses for most software are designed to take away your | ||
16 | -freedom to share and change it. By contrast, the GNU General Public | ||
17 | -Licenses are intended to guarantee your freedom to share and change | ||
18 | -free software--to make sure the software is free for all its users. | ||
19 | - | ||
20 | - This license, the Lesser General Public License, applies to some | ||
21 | -specially designated software packages--typically libraries--of the | ||
22 | -Free Software Foundation and other authors who decide to use it. You | ||
23 | -can use it too, but we suggest you first think carefully about whether | ||
24 | -this license or the ordinary General Public License is the better | ||
25 | -strategy to use in any particular case, based on the explanations below. | ||
26 | - | ||
27 | - When we speak of free software, we are referring to freedom of use, | ||
28 | -not price. Our General Public Licenses are designed to make sure that | ||
29 | -you have the freedom to distribute copies of free software (and charge | ||
30 | -for this service if you wish); that you receive source code or can get | ||
31 | -it if you want it; that you can change the software and use pieces of | ||
32 | -it in new free programs; and that you are informed that you can do | ||
33 | -these things. | ||
34 | - | ||
35 | - To protect your rights, we need to make restrictions that forbid | ||
36 | -distributors to deny you these rights or to ask you to surrender these | ||
37 | -rights. These restrictions translate to certain responsibilities for | ||
38 | -you if you distribute copies of the library or if you modify it. | ||
39 | - | ||
40 | - For example, if you distribute copies of the library, whether gratis | ||
41 | -or for a fee, you must give the recipients all the rights that we gave | ||
42 | -you. You must make sure that they, too, receive or can get the source | ||
43 | -code. If you link other code with the library, you must provide | ||
44 | -complete object files to the recipients, so that they can relink them | ||
45 | -with the library after making changes to the library and recompiling | ||
46 | -it. And you must show them these terms so they know their rights. | ||
47 | - | ||
48 | - We protect your rights with a two-step method: (1) we copyright the | ||
49 | -library, and (2) we offer you this license, which gives you legal | ||
50 | -permission to copy, distribute and/or modify the library. | ||
51 | - | ||
52 | - To protect each distributor, we want to make it very clear that | ||
53 | -there is no warranty for the free library. Also, if the library is | ||
54 | -modified by someone else and passed on, the recipients should know | ||
55 | -that what they have is not the original version, so that the original | ||
56 | -author's reputation will not be affected by problems that might be | ||
57 | -introduced by others. | ||
58 | - | ||
59 | - Finally, software patents pose a constant threat to the existence of | ||
60 | -any free program. We wish to make sure that a company cannot | ||
61 | -effectively restrict the users of a free program by obtaining a | ||
62 | -restrictive license from a patent holder. Therefore, we insist that | ||
63 | -any patent license obtained for a version of the library must be | ||
64 | -consistent with the full freedom of use specified in this license. | ||
65 | - | ||
66 | - Most GNU software, including some libraries, is covered by the | ||
67 | -ordinary GNU General Public License. This license, the GNU Lesser | ||
68 | -General Public License, applies to certain designated libraries, and | ||
69 | -is quite different from the ordinary General Public License. We use | ||
70 | -this license for certain libraries in order to permit linking those | ||
71 | -libraries into non-free programs. | ||
72 | - | ||
73 | - When a program is linked with a library, whether statically or using | ||
74 | -a shared library, the combination of the two is legally speaking a | ||
75 | -combined work, a derivative of the original library. The ordinary | ||
76 | -General Public License therefore permits such linking only if the | ||
77 | -entire combination fits its criteria of freedom. The Lesser General | ||
78 | -Public License permits more lax criteria for linking other code with | ||
79 | -the library. | ||
80 | - | ||
81 | - We call this license the "Lesser" General Public License because it | ||
82 | -does Less to protect the user's freedom than the ordinary General | ||
83 | -Public License. It also provides other free software developers Less | ||
84 | -of an advantage over competing non-free programs. These disadvantages | ||
85 | -are the reason we use the ordinary General Public License for many | ||
86 | -libraries. However, the Lesser license provides advantages in certain | ||
87 | -special circumstances. | ||
88 | - | ||
89 | - For example, on rare occasions, there may be a special need to | ||
90 | -encourage the widest possible use of a certain library, so that it becomes | ||
91 | -a de-facto standard. To achieve this, non-free programs must be | ||
92 | -allowed to use the library. A more frequent case is that a free | ||
93 | -library does the same job as widely used non-free libraries. In this | ||
94 | -case, there is little to gain by limiting the free library to free | ||
95 | -software only, so we use the Lesser General Public License. | ||
96 | - | ||
97 | - In other cases, permission to use a particular library in non-free | ||
98 | -programs enables a greater number of people to use a large body of | ||
99 | -free software. For example, permission to use the GNU C Library in | ||
100 | -non-free programs enables many more people to use the whole GNU | ||
101 | -operating system, as well as its variant, the GNU/Linux operating | ||
102 | -system. | ||
103 | - | ||
104 | - Although the Lesser General Public License is Less protective of the | ||
105 | -users' freedom, it does ensure that the user of a program that is | ||
106 | -linked with the Library has the freedom and the wherewithal to run | ||
107 | -that program using a modified version of the Library. | ||
108 | - | ||
109 | - The precise terms and conditions for copying, distribution and | ||
110 | -modification follow. Pay close attention to the difference between a | ||
111 | -"work based on the library" and a "work that uses the library". The | ||
112 | -former contains code derived from the library, whereas the latter must | ||
113 | -be combined with the library in order to run. | ||
114 | - | ||
115 | - GNU LESSER GENERAL PUBLIC LICENSE | ||
116 | - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
117 | - | ||
118 | - 0. This License Agreement applies to any software library or other | ||
119 | -program which contains a notice placed by the copyright holder or | ||
120 | -other authorized party saying it may be distributed under the terms of | ||
121 | -this Lesser General Public License (also called "this License"). | ||
122 | -Each licensee is addressed as "you". | ||
123 | - | ||
124 | - A "library" means a collection of software functions and/or data | ||
125 | -prepared so as to be conveniently linked with application programs | ||
126 | -(which use some of those functions and data) to form executables. | ||
127 | - | ||
128 | - The "Library", below, refers to any such software library or work | ||
129 | -which has been distributed under these terms. A "work based on the | ||
130 | -Library" means either the Library or any derivative work under | ||
131 | -copyright law: that is to say, a work containing the Library or a | ||
132 | -portion of it, either verbatim or with modifications and/or translated | ||
133 | -straightforwardly into another language. (Hereinafter, translation is | ||
134 | -included without limitation in the term "modification".) | ||
135 | - | ||
136 | - "Source code" for a work means the preferred form of the work for | ||
137 | -making modifications to it. For a library, complete source code means | ||
138 | -all the source code for all modules it contains, plus any associated | ||
139 | -interface definition files, plus the scripts used to control compilation | ||
140 | -and installation of the library. | ||
141 | - | ||
142 | - Activities other than copying, distribution and modification are not | ||
143 | -covered by this License; they are outside its scope. The act of | ||
144 | -running a program using the Library is not restricted, and output from | ||
145 | -such a program is covered only if its contents constitute a work based | ||
146 | -on the Library (independent of the use of the Library in a tool for | ||
147 | -writing it). Whether that is true depends on what the Library does | ||
148 | -and what the program that uses the Library does. | ||
149 | - | ||
150 | - 1. You may copy and distribute verbatim copies of the Library's | ||
151 | -complete source code as you receive it, in any medium, provided that | ||
152 | -you conspicuously and appropriately publish on each copy an | ||
153 | -appropriate copyright notice and disclaimer of warranty; keep intact | ||
154 | -all the notices that refer to this License and to the absence of any | ||
155 | -warranty; and distribute a copy of this License along with the | ||
156 | -Library. | ||
157 | - | ||
158 | - You may charge a fee for the physical act of transferring a copy, | ||
159 | -and you may at your option offer warranty protection in exchange for a | ||
160 | -fee. | ||
161 | - | ||
162 | - 2. You may modify your copy or copies of the Library or any portion | ||
163 | -of it, thus forming a work based on the Library, and copy and | ||
164 | -distribute such modifications or work under the terms of Section 1 | ||
165 | -above, provided that you also meet all of these conditions: | ||
166 | - | ||
167 | - a) The modified work must itself be a software library. | ||
168 | - | ||
169 | - b) You must cause the files modified to carry prominent notices | ||
170 | - stating that you changed the files and the date of any change. | ||
171 | - | ||
172 | - c) You must cause the whole of the work to be licensed at no | ||
173 | - charge to all third parties under the terms of this License. | ||
174 | - | ||
175 | - d) If a facility in the modified Library refers to a function or a | ||
176 | - table of data to be supplied by an application program that uses | ||
177 | - the facility, other than as an argument passed when the facility | ||
178 | - is invoked, then you must make a good faith effort to ensure that, | ||
179 | - in the event an application does not supply such function or | ||
180 | - table, the facility still operates, and performs whatever part of | ||
181 | - its purpose remains meaningful. | ||
182 | - | ||
183 | - (For example, a function in a library to compute square roots has | ||
184 | - a purpose that is entirely well-defined independent of the | ||
185 | - application. Therefore, Subsection 2d requires that any | ||
186 | - application-supplied function or table used by this function must | ||
187 | - be optional: if the application does not supply it, the square | ||
188 | - root function must still compute square roots.) | ||
189 | - | ||
190 | -These requirements apply to the modified work as a whole. If | ||
191 | -identifiable sections of that work are not derived from the Library, | ||
192 | -and can be reasonably considered independent and separate works in | ||
193 | -themselves, then this License, and its terms, do not apply to those | ||
194 | -sections when you distribute them as separate works. But when you | ||
195 | -distribute the same sections as part of a whole which is a work based | ||
196 | -on the Library, the distribution of the whole must be on the terms of | ||
197 | -this License, whose permissions for other licensees extend to the | ||
198 | -entire whole, and thus to each and every part regardless of who wrote | ||
199 | -it. | ||
200 | - | ||
201 | -Thus, it is not the intent of this section to claim rights or contest | ||
202 | -your rights to work written entirely by you; rather, the intent is to | ||
203 | -exercise the right to control the distribution of derivative or | ||
204 | -collective works based on the Library. | ||
205 | - | ||
206 | -In addition, mere aggregation of another work not based on the Library | ||
207 | -with the Library (or with a work based on the Library) on a volume of | ||
208 | -a storage or distribution medium does not bring the other work under | ||
209 | -the scope of this License. | ||
210 | - | ||
211 | - 3. You may opt to apply the terms of the ordinary GNU General Public | ||
212 | -License instead of this License to a given copy of the Library. To do | ||
213 | -this, you must alter all the notices that refer to this License, so | ||
214 | -that they refer to the ordinary GNU General Public License, version 2, | ||
215 | -instead of to this License. (If a newer version than version 2 of the | ||
216 | -ordinary GNU General Public License has appeared, then you can specify | ||
217 | -that version instead if you wish.) Do not make any other change in | ||
218 | -these notices. | ||
219 | - | ||
220 | - Once this change is made in a given copy, it is irreversible for | ||
221 | -that copy, so the ordinary GNU General Public License applies to all | ||
222 | -subsequent copies and derivative works made from that copy. | ||
223 | - | ||
224 | - This option is useful when you wish to copy part of the code of | ||
225 | -the Library into a program that is not a library. | ||
226 | - | ||
227 | - 4. You may copy and distribute the Library (or a portion or | ||
228 | -derivative of it, under Section 2) in object code or executable form | ||
229 | -under the terms of Sections 1 and 2 above provided that you accompany | ||
230 | -it with the complete corresponding machine-readable source code, which | ||
231 | -must be distributed under the terms of Sections 1 and 2 above on a | ||
232 | -medium customarily used for software interchange. | ||
233 | - | ||
234 | - If distribution of object code is made by offering access to copy | ||
235 | -from a designated place, then offering equivalent access to copy the | ||
236 | -source code from the same place satisfies the requirement to | ||
237 | -distribute the source code, even though third parties are not | ||
238 | -compelled to copy the source along with the object code. | ||
239 | - | ||
240 | - 5. A program that contains no derivative of any portion of the | ||
241 | -Library, but is designed to work with the Library by being compiled or | ||
242 | -linked with it, is called a "work that uses the Library". Such a | ||
243 | -work, in isolation, is not a derivative work of the Library, and | ||
244 | -therefore falls outside the scope of this License. | ||
245 | - | ||
246 | - However, linking a "work that uses the Library" with the Library | ||
247 | -creates an executable that is a derivative of the Library (because it | ||
248 | -contains portions of the Library), rather than a "work that uses the | ||
249 | -library". The executable is therefore covered by this License. | ||
250 | -Section 6 states terms for distribution of such executables. | ||
251 | - | ||
252 | - When a "work that uses the Library" uses material from a header file | ||
253 | -that is part of the Library, the object code for the work may be a | ||
254 | -derivative work of the Library even though the source code is not. | ||
255 | -Whether this is true is especially significant if the work can be | ||
256 | -linked without the Library, or if the work is itself a library. The | ||
257 | -threshold for this to be true is not precisely defined by law. | ||
258 | - | ||
259 | - If such an object file uses only numerical parameters, data | ||
260 | -structure layouts and accessors, and small macros and small inline | ||
261 | -functions (ten lines or less in length), then the use of the object | ||
262 | -file is unrestricted, regardless of whether it is legally a derivative | ||
263 | -work. (Executables containing this object code plus portions of the | ||
264 | -Library will still fall under Section 6.) | ||
265 | - | ||
266 | - Otherwise, if the work is a derivative of the Library, you may | ||
267 | -distribute the object code for the work under the terms of Section 6. | ||
268 | -Any executables containing that work also fall under Section 6, | ||
269 | -whether or not they are linked directly with the Library itself. | ||
270 | - | ||
271 | - 6. As an exception to the Sections above, you may also combine or | ||
272 | -link a "work that uses the Library" with the Library to produce a | ||
273 | -work containing portions of the Library, and distribute that work | ||
274 | -under terms of your choice, provided that the terms permit | ||
275 | -modification of the work for the customer's own use and reverse | ||
276 | -engineering for debugging such modifications. | ||
277 | - | ||
278 | - You must give prominent notice with each copy of the work that the | ||
279 | -Library is used in it and that the Library and its use are covered by | ||
280 | -this License. You must supply a copy of this License. If the work | ||
281 | -during execution displays copyright notices, you must include the | ||
282 | -copyright notice for the Library among them, as well as a reference | ||
283 | -directing the user to the copy of this License. Also, you must do one | ||
284 | -of these things: | ||
285 | - | ||
286 | - a) Accompany the work with the complete corresponding | ||
287 | - machine-readable source code for the Library including whatever | ||
288 | - changes were used in the work (which must be distributed under | ||
289 | - Sections 1 and 2 above); and, if the work is an executable linked | ||
290 | - with the Library, with the complete machine-readable "work that | ||
291 | - uses the Library", as object code and/or source code, so that the | ||
292 | - user can modify the Library and then relink to produce a modified | ||
293 | - executable containing the modified Library. (It is understood | ||
294 | - that the user who changes the contents of definitions files in the | ||
295 | - Library will not necessarily be able to recompile the application | ||
296 | - to use the modified definitions.) | ||
297 | - | ||
298 | - b) Use a suitable shared library mechanism for linking with the | ||
299 | - Library. A suitable mechanism is one that (1) uses at run time a | ||
300 | - copy of the library already present on the user's computer system, | ||
301 | - rather than copying library functions into the executable, and (2) | ||
302 | - will operate properly with a modified version of the library, if | ||
303 | - the user installs one, as long as the modified version is | ||
304 | - interface-compatible with the version that the work was made with. | ||
305 | - | ||
306 | - c) Accompany the work with a written offer, valid for at | ||
307 | - least three years, to give the same user the materials | ||
308 | - specified in Subsection 6a, above, for a charge no more | ||
309 | - than the cost of performing this distribution. | ||
310 | - | ||
311 | - d) If distribution of the work is made by offering access to copy | ||
312 | - from a designated place, offer equivalent access to copy the above | ||
313 | - specified materials from the same place. | ||
314 | - | ||
315 | - e) Verify that the user has already received a copy of these | ||
316 | - materials or that you have already sent this user a copy. | ||
317 | - | ||
318 | - For an executable, the required form of the "work that uses the | ||
319 | -Library" must include any data and utility programs needed for | ||
320 | -reproducing the executable from it. However, as a special exception, | ||
321 | -the materials to be distributed need not include anything that is | ||
322 | -normally distributed (in either source or binary form) with the major | ||
323 | -components (compiler, kernel, and so on) of the operating system on | ||
324 | -which the executable runs, unless that component itself accompanies | ||
325 | -the executable. | ||
326 | - | ||
327 | - It may happen that this requirement contradicts the license | ||
328 | -restrictions of other proprietary libraries that do not normally | ||
329 | -accompany the operating system. Such a contradiction means you cannot | ||
330 | -use both them and the Library together in an executable that you | ||
331 | -distribute. | ||
332 | - | ||
333 | - 7. You may place library facilities that are a work based on the | ||
334 | -Library side-by-side in a single library together with other library | ||
335 | -facilities not covered by this License, and distribute such a combined | ||
336 | -library, provided that the separate distribution of the work based on | ||
337 | -the Library and of the other library facilities is otherwise | ||
338 | -permitted, and provided that you do these two things: | ||
339 | - | ||
340 | - a) Accompany the combined library with a copy of the same work | ||
341 | - based on the Library, uncombined with any other library | ||
342 | - facilities. This must be distributed under the terms of the | ||
343 | - Sections above. | ||
344 | - | ||
345 | - b) Give prominent notice with the combined library of the fact | ||
346 | - that part of it is a work based on the Library, and explaining | ||
347 | - where to find the accompanying uncombined form of the same work. | ||
348 | - | ||
349 | - 8. You may not copy, modify, sublicense, link with, or distribute | ||
350 | -the Library except as expressly provided under this License. Any | ||
351 | -attempt otherwise to copy, modify, sublicense, link with, or | ||
352 | -distribute the Library is void, and will automatically terminate your | ||
353 | -rights under this License. However, parties who have received copies, | ||
354 | -or rights, from you under this License will not have their licenses | ||
355 | -terminated so long as such parties remain in full compliance. | ||
356 | - | ||
357 | - 9. You are not required to accept this License, since you have not | ||
358 | -signed it. However, nothing else grants you permission to modify or | ||
359 | -distribute the Library or its derivative works. These actions are | ||
360 | -prohibited by law if you do not accept this License. Therefore, by | ||
361 | -modifying or distributing the Library (or any work based on the | ||
362 | -Library), you indicate your acceptance of this License to do so, and | ||
363 | -all its terms and conditions for copying, distributing or modifying | ||
364 | -the Library or works based on it. | ||
365 | - | ||
366 | - 10. Each time you redistribute the Library (or any work based on the | ||
367 | -Library), the recipient automatically receives a license from the | ||
368 | -original licensor to copy, distribute, link with or modify the Library | ||
369 | -subject to these terms and conditions. You may not impose any further | ||
370 | -restrictions on the recipients' exercise of the rights granted herein. | ||
371 | -You are not responsible for enforcing compliance by third parties with | ||
372 | -this License. | ||
373 | - | ||
374 | - 11. If, as a consequence of a court judgment or allegation of patent | ||
375 | -infringement or for any other reason (not limited to patent issues), | ||
376 | -conditions are imposed on you (whether by court order, agreement or | ||
377 | -otherwise) that contradict the conditions of this License, they do not | ||
378 | -excuse you from the conditions of this License. If you cannot | ||
379 | -distribute so as to satisfy simultaneously your obligations under this | ||
380 | -License and any other pertinent obligations, then as a consequence you | ||
381 | -may not distribute the Library at all. For example, if a patent | ||
382 | -license would not permit royalty-free redistribution of the Library by | ||
383 | -all those who receive copies directly or indirectly through you, then | ||
384 | -the only way you could satisfy both it and this License would be to | ||
385 | -refrain entirely from distribution of the Library. | ||
386 | - | ||
387 | -If any portion of this section is held invalid or unenforceable under any | ||
388 | -particular circumstance, the balance of the section is intended to apply, | ||
389 | -and the section as a whole is intended to apply in other circumstances. | ||
390 | - | ||
391 | -It is not the purpose of this section to induce you to infringe any | ||
392 | -patents or other property right claims or to contest validity of any | ||
393 | -such claims; this section has the sole purpose of protecting the | ||
394 | -integrity of the free software distribution system which is | ||
395 | -implemented by public license practices. Many people have made | ||
396 | -generous contributions to the wide range of software distributed | ||
397 | -through that system in reliance on consistent application of that | ||
398 | -system; it is up to the author/donor to decide if he or she is willing | ||
399 | -to distribute software through any other system and a licensee cannot | ||
400 | -impose that choice. | ||
401 | - | ||
402 | -This section is intended to make thoroughly clear what is believed to | ||
403 | -be a consequence of the rest of this License. | ||
404 | - | ||
405 | - 12. If the distribution and/or use of the Library is restricted in | ||
406 | -certain countries either by patents or by copyrighted interfaces, the | ||
407 | -original copyright holder who places the Library under this License may add | ||
408 | -an explicit geographical distribution limitation excluding those countries, | ||
409 | -so that distribution is permitted only in or among countries not thus | ||
410 | -excluded. In such case, this License incorporates the limitation as if | ||
411 | -written in the body of this License. | ||
412 | - | ||
413 | - 13. The Free Software Foundation may publish revised and/or new | ||
414 | -versions of the Lesser General Public License from time to time. | ||
415 | -Such new versions will be similar in spirit to the present version, | ||
416 | -but may differ in detail to address new problems or concerns. | ||
417 | - | ||
418 | -Each version is given a distinguishing version number. If the Library | ||
419 | -specifies a version number of this License which applies to it and | ||
420 | -"any later version", you have the option of following the terms and | ||
421 | -conditions either of that version or of any later version published by | ||
422 | -the Free Software Foundation. If the Library does not specify a | ||
423 | -license version number, you may choose any version ever published by | ||
424 | -the Free Software Foundation. | ||
425 | - | ||
426 | - 14. If you wish to incorporate parts of the Library into other free | ||
427 | -programs whose distribution conditions are incompatible with these, | ||
428 | -write to the author to ask for permission. For software which is | ||
429 | -copyrighted by the Free Software Foundation, write to the Free | ||
430 | -Software Foundation; we sometimes make exceptions for this. Our | ||
431 | -decision will be guided by the two goals of preserving the free status | ||
432 | -of all derivatives of our free software and of promoting the sharing | ||
433 | -and reuse of software generally. | ||
434 | - | ||
435 | - NO WARRANTY | ||
436 | - | ||
437 | - 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO | ||
438 | -WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. | ||
439 | -EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR | ||
440 | -OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY | ||
441 | -KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE | ||
442 | -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
443 | -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE | ||
444 | -LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME | ||
445 | -THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. | ||
446 | - | ||
447 | - 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN | ||
448 | -WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY | ||
449 | -AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU | ||
450 | -FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR | ||
451 | -CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE | ||
452 | -LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING | ||
453 | -RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A | ||
454 | -FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF | ||
455 | -SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH | ||
456 | -DAMAGES. | ||
457 | - | ||
458 | - END OF TERMS AND CONDITIONS | ||
459 | - | ||
460 | - How to Apply These Terms to Your New Libraries | ||
461 | - | ||
462 | - If you develop a new library, and you want it to be of the greatest | ||
463 | -possible use to the public, we recommend making it free software that | ||
464 | -everyone can redistribute and change. You can do so by permitting | ||
465 | -redistribution under these terms (or, alternatively, under the terms of the | ||
466 | -ordinary General Public License). | ||
467 | - | ||
468 | - To apply these terms, attach the following notices to the library. It is | ||
469 | -safest to attach them to the start of each source file to most effectively | ||
470 | -convey the exclusion of warranty; and each file should have at least the | ||
471 | -"copyright" line and a pointer to where the full notice is found. | ||
472 | - | ||
473 | - <one line to give the library's name and a brief idea of what it does.> | ||
474 | - Copyright (C) <year> <name of author> | ||
475 | - | ||
476 | - This library is free software; you can redistribute it and/or | ||
477 | - modify it under the terms of the GNU Lesser General Public | ||
478 | - License as published by the Free Software Foundation; either | ||
479 | - version 2.1 of the License, or (at your option) any later version. | ||
480 | - | ||
481 | - This library is distributed in the hope that it will be useful, | ||
482 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
483 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
484 | - Lesser General Public License for more details. | ||
485 | - | ||
486 | - You should have received a copy of the GNU Lesser General Public | ||
487 | - License along with this library; if not, write to the Free Software | ||
488 | - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
489 | - | ||
490 | -Also add information on how to contact you by electronic and paper mail. | ||
491 | - | ||
492 | -You should also get your employer (if you work as a programmer) or your | ||
493 | -school, if any, to sign a "copyright disclaimer" for the library, if | ||
494 | -necessary. Here is a sample; alter the names: | ||
495 | - | ||
496 | - Yoyodyne, Inc., hereby disclaims all copyright interest in the | ||
497 | - library `Frob' (a library for tweaking knobs) written by James Random Hacker. | ||
498 | - | ||
499 | - <signature of Ty Coon>, 1 April 1990 | ||
500 | - Ty Coon, President of Vice | ||
501 | - | ||
502 | -That's all there is to it! |
vendor/phpmailer/phpmailer/README.md
已删除
100644 → 0
1 | -[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://supportukrainenow.org/) | ||
2 | - | ||
3 | -![PHPMailer](https://raw.github.com/PHPMailer/PHPMailer/master/examples/images/phpmailer.png) | ||
4 | - | ||
5 | -# PHPMailer – A full-featured email creation and transfer class for PHP | ||
6 | - | ||
7 | -[![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg)](https://github.com/PHPMailer/PHPMailer/actions) | ||
8 | -[![codecov.io](https://codecov.io/gh/PHPMailer/PHPMailer/branch/master/graph/badge.svg?token=iORZpwmYmM)](https://codecov.io/gh/PHPMailer/PHPMailer) | ||
9 | -[![Latest Stable Version](https://poser.pugx.org/phpmailer/phpmailer/v/stable.svg)](https://packagist.org/packages/phpmailer/phpmailer) | ||
10 | -[![Total Downloads](https://poser.pugx.org/phpmailer/phpmailer/downloads)](https://packagist.org/packages/phpmailer/phpmailer) | ||
11 | -[![License](https://poser.pugx.org/phpmailer/phpmailer/license.svg)](https://packagist.org/packages/phpmailer/phpmailer) | ||
12 | -[![API Docs](https://github.com/phpmailer/phpmailer/workflows/Docs/badge.svg)](https://phpmailer.github.io/PHPMailer/) | ||
13 | -[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/PHPMailer/PHPMailer/badge)](https://api.securityscorecards.dev/projects/github.com/PHPMailer/PHPMailer) | ||
14 | - | ||
15 | -## Features | ||
16 | -- Probably the world's most popular code for sending email from PHP! | ||
17 | -- Used by many open-source projects: WordPress, Drupal, 1CRM, SugarCRM, Yii, Joomla! and many more | ||
18 | -- Integrated SMTP support – send without a local mail server | ||
19 | -- Send emails with multiple To, CC, BCC, and Reply-to addresses | ||
20 | -- Multipart/alternative emails for mail clients that do not read HTML email | ||
21 | -- Add attachments, including inline | ||
22 | -- Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings | ||
23 | -- SMTP authentication with LOGIN, PLAIN, CRAM-MD5, and XOAUTH2 mechanisms over SMTPS and SMTP+STARTTLS transports | ||
24 | -- Validates email addresses automatically | ||
25 | -- Protects against header injection attacks | ||
26 | -- Error messages in over 50 languages! | ||
27 | -- DKIM and S/MIME signing support | ||
28 | -- Compatible with PHP 5.5 and later, including PHP 8.2 | ||
29 | -- Namespaced to prevent name clashes | ||
30 | -- Much more! | ||
31 | - | ||
32 | -## Why you might need it | ||
33 | -Many PHP developers need to send email from their code. The only PHP function that supports this directly is [`mail()`](https://www.php.net/manual/en/function.mail.php). However, it does not provide any assistance for making use of popular features such as encryption, authentication, HTML messages, and attachments. | ||
34 | - | ||
35 | -Formatting email correctly is surprisingly difficult. There are myriad overlapping (and conflicting) standards, requiring tight adherence to horribly complicated formatting and encoding rules – the vast majority of code that you'll find online that uses the `mail()` function directly is just plain wrong, if not unsafe! | ||
36 | - | ||
37 | -The PHP `mail()` function usually sends via a local mail server, typically fronted by a `sendmail` binary on Linux, BSD, and macOS platforms, however, Windows usually doesn't include a local mail server; PHPMailer's integrated SMTP client allows email sending on all platforms without needing a local mail server. Be aware though, that the `mail()` function should be avoided when possible; it's both faster and [safer](https://exploitbox.io/paper/Pwning-PHP-Mail-Function-For-Fun-And-RCE.html) to use SMTP to localhost. | ||
38 | - | ||
39 | -*Please* don't be tempted to do it yourself – if you don't use PHPMailer, there are many other excellent libraries that | ||
40 | -you should look at before rolling your own. Try [SwiftMailer](https://swiftmailer.symfony.com/) | ||
41 | -, [Laminas/Mail](https://docs.laminas.dev/laminas-mail/), [ZetaComponents](https://github.com/zetacomponents/Mail), etc. | ||
42 | - | ||
43 | -## License | ||
44 | -This software is distributed under the [LGPL 2.1](http://www.gnu.org/licenses/lgpl-2.1.html) license, along with the [GPL Cooperation Commitment](https://gplcc.github.io/gplcc/). Please read [LICENSE](https://github.com/PHPMailer/PHPMailer/blob/master/LICENSE) for information on the software availability and distribution. | ||
45 | - | ||
46 | -## Installation & loading | ||
47 | -PHPMailer is available on [Packagist](https://packagist.org/packages/phpmailer/phpmailer) (using semantic versioning), and installation via [Composer](https://getcomposer.org) is the recommended way to install PHPMailer. Just add this line to your `composer.json` file: | ||
48 | - | ||
49 | -```json | ||
50 | -"phpmailer/phpmailer": "^6.7.1" | ||
51 | -``` | ||
52 | - | ||
53 | -or run | ||
54 | - | ||
55 | -```sh | ||
56 | -composer require phpmailer/phpmailer | ||
57 | -``` | ||
58 | - | ||
59 | -Note that the `vendor` folder and the `vendor/autoload.php` script are generated by Composer; they are not part of PHPMailer. | ||
60 | - | ||
61 | -If you want to use the Gmail XOAUTH2 authentication class, you will also need to add a dependency on the `league/oauth2-client` package in your `composer.json`. | ||
62 | - | ||
63 | -Alternatively, if you're not using Composer, you | ||
64 | -can [download PHPMailer as a zip file](https://github.com/PHPMailer/PHPMailer/archive/master.zip), (note that docs and examples are not included in the zip file), then copy the contents of the PHPMailer folder into one of the `include_path` directories specified in your PHP configuration and load each class file manually: | ||
65 | - | ||
66 | -```php | ||
67 | -<?php | ||
68 | -use PHPMailer\PHPMailer\PHPMailer; | ||
69 | -use PHPMailer\PHPMailer\Exception; | ||
70 | - | ||
71 | -require 'path/to/PHPMailer/src/Exception.php'; | ||
72 | -require 'path/to/PHPMailer/src/PHPMailer.php'; | ||
73 | -require 'path/to/PHPMailer/src/SMTP.php'; | ||
74 | -``` | ||
75 | - | ||
76 | -If you're not using the `SMTP` class explicitly (you're probably not), you don't need a `use` line for the SMTP class. Even if you're not using exceptions, you do still need to load the `Exception` class as it is used internally. | ||
77 | - | ||
78 | -## Legacy versions | ||
79 | -PHPMailer 5.2 (which is compatible with PHP 5.0 — 7.0) is no longer supported, even for security updates. You will find the latest version of 5.2 in the [5.2-stable branch](https://github.com/PHPMailer/PHPMailer/tree/5.2-stable). If you're using PHP 5.5 or later (which you should be), switch to the 6.x releases. | ||
80 | - | ||
81 | -### Upgrading from 5.2 | ||
82 | -The biggest changes are that source files are now in the `src/` folder, and PHPMailer now declares the namespace `PHPMailer\PHPMailer`. This has several important effects – [read the upgrade guide](https://github.com/PHPMailer/PHPMailer/tree/master/UPGRADING.md) for more details. | ||
83 | - | ||
84 | -### Minimal installation | ||
85 | -While installing the entire package manually or with Composer is simple, convenient, and reliable, you may want to include only vital files in your project. At the very least you will need [src/PHPMailer.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/PHPMailer.php). If you're using SMTP, you'll need [src/SMTP.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/SMTP.php), and if you're using POP-before SMTP (*very* unlikely!), you'll need [src/POP3.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/POP3.php). You can skip the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder if you're not showing errors to users and can make do with English-only errors. If you're using XOAUTH2 you will need [src/OAuth.php](https://github.com/PHPMailer/PHPMailer/tree/master/src/OAuth.php) as well as the Composer dependencies for the services you wish to authenticate with. Really, it's much easier to use Composer! | ||
86 | - | ||
87 | -## A Simple Example | ||
88 | - | ||
89 | -```php | ||
90 | -<?php | ||
91 | -//Import PHPMailer classes into the global namespace | ||
92 | -//These must be at the top of your script, not inside a function | ||
93 | -use PHPMailer\PHPMailer\PHPMailer; | ||
94 | -use PHPMailer\PHPMailer\SMTP; | ||
95 | -use PHPMailer\PHPMailer\Exception; | ||
96 | - | ||
97 | -//Load Composer's autoloader | ||
98 | -require 'vendor/autoload.php'; | ||
99 | - | ||
100 | -//Create an instance; passing `true` enables exceptions | ||
101 | -$mail = new PHPMailer(true); | ||
102 | - | ||
103 | -try { | ||
104 | - //Server settings | ||
105 | - $mail->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output | ||
106 | - $mail->isSMTP(); //Send using SMTP | ||
107 | - $mail->Host = 'smtp.example.com'; //Set the SMTP server to send through | ||
108 | - $mail->SMTPAuth = true; //Enable SMTP authentication | ||
109 | - $mail->Username = 'user@example.com'; //SMTP username | ||
110 | - $mail->Password = 'secret'; //SMTP password | ||
111 | - $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption | ||
112 | - $mail->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS` | ||
113 | - | ||
114 | - //Recipients | ||
115 | - $mail->setFrom('from@example.com', 'Mailer'); | ||
116 | - $mail->addAddress('joe@example.net', 'Joe User'); //Add a recipient | ||
117 | - $mail->addAddress('ellen@example.com'); //Name is optional | ||
118 | - $mail->addReplyTo('info@example.com', 'Information'); | ||
119 | - $mail->addCC('cc@example.com'); | ||
120 | - $mail->addBCC('bcc@example.com'); | ||
121 | - | ||
122 | - //Attachments | ||
123 | - $mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments | ||
124 | - $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name | ||
125 | - | ||
126 | - //Content | ||
127 | - $mail->isHTML(true); //Set email format to HTML | ||
128 | - $mail->Subject = 'Here is the subject'; | ||
129 | - $mail->Body = 'This is the HTML message body <b>in bold!</b>'; | ||
130 | - $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; | ||
131 | - | ||
132 | - $mail->send(); | ||
133 | - echo 'Message has been sent'; | ||
134 | -} catch (Exception $e) { | ||
135 | - echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; | ||
136 | -} | ||
137 | -``` | ||
138 | - | ||
139 | -You'll find plenty to play with in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder, which covers many common scenarios including sending through Gmail, building contact forms, sending to mailing lists, and more. | ||
140 | - | ||
141 | -If you are re-using the instance (e.g. when sending to a mailing list), you may need to clear the recipient list to avoid sending duplicate messages. See [the mailing list example](https://github.com/PHPMailer/PHPMailer/blob/master/examples/mailing_list.phps) for further guidance. | ||
142 | - | ||
143 | -That's it. You should now be ready to use PHPMailer! | ||
144 | - | ||
145 | -## Localization | ||
146 | -PHPMailer defaults to English, but in the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder, you'll find many translations for PHPMailer error messages that you may encounter. Their filenames contain [ISO 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the translations, for example `fr` for French. To specify a language, you need to tell PHPMailer which one to use, like this: | ||
147 | - | ||
148 | -```php | ||
149 | -//To load the French version | ||
150 | -$mail->setLanguage('fr', '/optional/path/to/language/directory/'); | ||
151 | -``` | ||
152 | - | ||
153 | -We welcome corrections and new languages – if you're looking for corrections, run the [PHPMailerLangTest.php](https://github.com/PHPMailer/PHPMailer/tree/master/test/PHPMailerLangTest.php) script in the tests folder and it will show any missing translations. | ||
154 | - | ||
155 | -## Documentation | ||
156 | -Start reading at the [GitHub wiki](https://github.com/PHPMailer/PHPMailer/wiki). If you're having trouble, head for [the troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting) as it's frequently updated. | ||
157 | - | ||
158 | -Examples of how to use PHPMailer for common scenarios can be found in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder. If you're looking for a good starting point, we recommend you start with [the Gmail example](https://github.com/PHPMailer/PHPMailer/tree/master/examples/gmail.phps). | ||
159 | - | ||
160 | -To reduce PHPMailer's deployed code footprint, examples are not included if you load PHPMailer via Composer or via [GitHub's zip file download](https://github.com/PHPMailer/PHPMailer/archive/master.zip), so you'll need to either clone the git repository or use the above links to get to the examples directly. | ||
161 | - | ||
162 | -Complete generated API documentation is [available online](https://phpmailer.github.io/PHPMailer/). | ||
163 | - | ||
164 | -You can generate complete API-level documentation by running `phpdoc` in the top-level folder, and documentation will appear in the `docs` folder, though you'll need to have [PHPDocumentor](http://www.phpdoc.org) installed. You may find [the unit tests](https://github.com/PHPMailer/PHPMailer/blob/master/test/PHPMailerTest.php) a good reference for how to do various operations such as encryption. | ||
165 | - | ||
166 | -If the documentation doesn't cover what you need, search the [many questions on Stack Overflow](http://stackoverflow.com/questions/tagged/phpmailer), and before you ask a question about "SMTP Error: Could not connect to SMTP host.", [read the troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting). | ||
167 | - | ||
168 | -## Tests | ||
169 | -[PHPMailer tests](https://github.com/PHPMailer/PHPMailer/tree/master/test/) use PHPUnit 9, with [a polyfill](https://github.com/Yoast/PHPUnit-Polyfills) to let 9-style tests run on older PHPUnit and PHP versions. | ||
170 | - | ||
171 | -[![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg)](https://github.com/PHPMailer/PHPMailer/actions) | ||
172 | - | ||
173 | -If this isn't passing, is there something you can do to help? | ||
174 | - | ||
175 | -## Security | ||
176 | -Please disclose any vulnerabilities found responsibly – report security issues to the maintainers privately. | ||
177 | - | ||
178 | -See [SECURITY](https://github.com/PHPMailer/PHPMailer/tree/master/SECURITY.md) and [PHPMailer's security advisories on GitHub](https://github.com/PHPMailer/PHPMailer/security). | ||
179 | - | ||
180 | -## Contributing | ||
181 | -Please submit bug reports, suggestions, and pull requests to the [GitHub issue tracker](https://github.com/PHPMailer/PHPMailer/issues). | ||
182 | - | ||
183 | -We're particularly interested in fixing edge cases, expanding test coverage, and updating translations. | ||
184 | - | ||
185 | -If you found a mistake in the docs, or want to add something, go ahead and amend the wiki – anyone can edit it. | ||
186 | - | ||
187 | -If you have git clones from prior to the move to the PHPMailer GitHub organisation, you'll need to update any remote URLs referencing the old GitHub location with a command like this from within your clone: | ||
188 | - | ||
189 | -```sh | ||
190 | -git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git | ||
191 | -``` | ||
192 | - | ||
193 | -Please *don't* use the SourceForge or Google Code projects any more; they are obsolete and no longer maintained. | ||
194 | - | ||
195 | -## Sponsorship | ||
196 | -Development time and resources for PHPMailer are provided by [Smartmessages.net](https://info.smartmessages.net/), the world's only privacy-first email marketing system. | ||
197 | - | ||
198 | -<a href="https://info.smartmessages.net/"><img src="https://www.smartmessages.net/img/smartmessages-logo.svg" width="550" alt="Smartmessages.net privacy-first email marketing logo"></a> | ||
199 | - | ||
200 | -Donations are very welcome, whether in beer 🍺, T-shirts 👕, or cold, hard cash 💰. Sponsorship through GitHub is a simple and convenient way to say "thank you" to PHPMailer's maintainers and contributors – just click the "Sponsor" button [on the project page](https://github.com/PHPMailer/PHPMailer). If your company uses PHPMailer, consider taking part in Tidelift's enterprise support programme. | ||
201 | - | ||
202 | -## PHPMailer For Enterprise | ||
203 | - | ||
204 | -Available as part of the Tidelift Subscription. | ||
205 | - | ||
206 | -The maintainers of PHPMailer and thousands of other packages are working with Tidelift to deliver commercial | ||
207 | -support and maintenance for the open-source packages you use to build your applications. Save time, reduce risk, and | ||
208 | -improve code health, while paying the maintainers of the exact packages you | ||
209 | -use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-phpmailer-phpmailer?utm_source=packagist-phpmailer-phpmailer&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) | ||
210 | - | ||
211 | -## Changelog | ||
212 | -See [changelog](changelog.md). | ||
213 | - | ||
214 | -## History | ||
215 | -- PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForge project](http://sourceforge.net/projects/phpmailer/). | ||
216 | -- [Marcus Bointon](https://github.com/Synchro) (`coolbru` on SF) and Andy Prevost (`codeworxtech`) took over the project in 2004. | ||
217 | -- Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski. | ||
218 | -- Marcus created [his fork on GitHub](https://github.com/Synchro/PHPMailer) in 2008. | ||
219 | -- Jim and Marcus decide to join forces and use GitHub as the canonical and official repo for PHPMailer in 2013. | ||
220 | -- PHPMailer moves to [the PHPMailer organisation](https://github.com/PHPMailer) on GitHub in 2013. | ||
221 | - | ||
222 | -### What's changed since moving from SourceForge? | ||
223 | -- Official successor to the SourceForge and Google Code projects. | ||
224 | -- Test suite. | ||
225 | -- Continuous integration with GitHub Actions. | ||
226 | -- Composer support. | ||
227 | -- Public development. | ||
228 | -- Additional languages and language strings. | ||
229 | -- CRAM-MD5 authentication support. | ||
230 | -- Preserves full repo history of authors, commits, and branches from the original SourceForge project. |
vendor/phpmailer/phpmailer/SECURITY.md
已删除
100644 → 0
1 | -# Security notices relating to PHPMailer | ||
2 | - | ||
3 | -Please disclose any security issues or vulnerabilities found through [Tidelift's coordinated disclosure system](https://tidelift.com/security) or to the maintainers privately. | ||
4 | - | ||
5 | -PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the `$patternselect` parameter to `validateAddress()` is set to `'php'` (the default, defined by `PHPMailer::$validator`), and the global namespace contains a function called `php`, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names. Recorded as [CVE-2021-3603](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603). Reported by [Vikrant Singh Chauhan](mailto:vi@hackberry.xyz) via [huntr.dev](https://www.huntr.dev/). | ||
6 | - | ||
7 | -PHPMailer versions 6.4.1 and earlier contain a possible remote code execution vulnerability through the `$lang_path` parameter of the `setLanguage()` method. If the `$lang_path` parameter is passed unfiltered from user input, it can be set to [a UNC path](https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths), and if an attacker is also able to persuade the server to load a file from that UNC path, a script file under their control may be executed. This vulnerability only applies to systems that resolve UNC paths, typically only Microsoft Windows. | ||
8 | -PHPMailer 6.5.0 mitigates this by no longer treating translation files as PHP code, but by parsing their text content directly. This approach avoids the possibility of executing unknown code while retaining backward compatibility. This isn't ideal, so the current translation format is deprecated and will be replaced in the next major release. Recorded as [CVE-2021-34551](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-34551). Reported by [Jilin Diting Information Technology Co., Ltd](https://listensec.com) via Tidelift. | ||
9 | - | ||
10 | -PHPMailer versions between 6.1.8 and 6.4.0 contain a regression of the earlier CVE-2018-19296 object injection vulnerability as a result of [a fix for Windows UNC paths in 6.1.8](https://github.com/PHPMailer/PHPMailer/commit/e2e07a355ee8ff36aba21d0242c5950c56e4c6f9). Recorded as [CVE-2020-36326](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-36326). Reported by Fariskhi Vidyan via Tidelift. 6.4.1 fixes this issue, and also enforces stricter checks for URL schemes in local path contexts. | ||
11 | - | ||
12 | -PHPMailer versions 6.1.5 and earlier contain an output escaping bug that occurs in `Content-Type` and `Content-Disposition` when filenames passed into `addAttachment` and other methods that accept attachment names contain double quote characters, in contravention of RFC822 3.4.1. No specific vulnerability has been found relating to this, but it could allow file attachments to bypass attachment filters that are based on matching filename extensions. Recorded as [CVE-2020-13625](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-13625). Reported by Elar Lang of Clarified Security. | ||
13 | - | ||
14 | -PHPMailer versions prior to 6.0.6 and 5.2.27 are vulnerable to an object injection attack by passing `phar://` paths into `addAttachment()` and other functions that may receive unfiltered local paths, possibly leading to RCE. Recorded as [CVE-2018-19296](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19296). See [this article](https://knasmueller.net/5-answers-about-php-phar-exploitation) for more info on this type of vulnerability. Mitigated by blocking the use of paths containing URL-protocol style prefixes such as `phar://`. Reported by Sehun Oh of cyberone.kr. | ||
15 | - | ||
16 | -PHPMailer versions prior to 5.2.24 (released July 26th 2017) have an XSS vulnerability in one of the code examples, [CVE-2017-11503](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-11503). The `code_generator.phps` example did not filter user input prior to output. This file is distributed with a `.phps` extension, so it it not normally executable unless it is explicitly renamed, and the file is not included when PHPMailer is loaded through composer, so it is safe by default. There was also an undisclosed potential XSS vulnerability in the default exception handler (unused by default). Patches for both issues kindly provided by Patrick Monnerat of the Fedora Project. | ||
17 | - | ||
18 | -PHPMailer versions prior to 5.2.22 (released January 9th 2017) have a local file disclosure vulnerability, [CVE-2017-5223](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5223). If content passed into `msgHTML()` is sourced from unfiltered user input, relative paths can map to absolute local file paths and added as attachments. Also note that `addAttachment` (just like `file_get_contents`, `passthru`, `unlink`, etc) should not be passed user-sourced params either! Reported by Yongxiang Li of Asiasecurity. | ||
19 | - | ||
20 | -PHPMailer versions prior to 5.2.20 (released December 28th 2016) are vulnerable to [CVE-2016-10045](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10045) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html), and patched by Paul Buonopane (@Zenexer). | ||
21 | - | ||
22 | -PHPMailer versions prior to 5.2.18 (released December 2016) are vulnerable to [CVE-2016-10033](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10033) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](http://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html). | ||
23 | - | ||
24 | -PHPMailer versions prior to 5.2.14 (released November 2015) are vulnerable to [CVE-2015-8476](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8476) an SMTP CRLF injection bug permitting arbitrary message sending. | ||
25 | - | ||
26 | -PHPMailer versions prior to 5.2.10 (released May 2015) are vulnerable to [CVE-2008-5619](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2008-5619), a remote code execution vulnerability in the bundled html2text library. This file was removed in 5.2.10, so if you are using a version prior to that and make use of the html2text function, it's vitally important that you upgrade and remove this file. | ||
27 | - | ||
28 | -PHPMailer versions prior to 2.0.7 and 2.2.1 are vulnerable to [CVE-2012-0796](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-0796), an email header injection attack. | ||
29 | - | ||
30 | -Joomla 1.6.0 uses PHPMailer in an unsafe way, allowing it to reveal local file paths, reported in [CVE-2011-3747](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3747). | ||
31 | - | ||
32 | -PHPMailer didn't sanitise the `$lang_path` parameter in `SetLanguage`. This wasn't a problem in itself, but some apps (PHPClassifieds, ATutor) also failed to sanitise user-provided parameters passed to it, permitting semi-arbitrary local file inclusion, reported in [CVE-2010-4914](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-4914), [CVE-2007-2021](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-2021) and [CVE-2006-5734](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-5734). | ||
33 | - | ||
34 | -PHPMailer 1.7.2 and earlier contained a possible DDoS vulnerability reported in [CVE-2005-1807](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-1807). | ||
35 | - | ||
36 | -PHPMailer 1.7 and earlier (June 2003) have a possible vulnerability in the `SendmailSend` method where shell commands may not be sanitised. Reported in [CVE-2007-3215](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-3215). | ||
37 | - |
vendor/phpmailer/phpmailer/VERSION
已删除
100644 → 0
1 | -6.7.1 |
vendor/phpmailer/phpmailer/composer.json
已删除
100644 → 0
1 | -{ | ||
2 | - "name": "phpmailer/phpmailer", | ||
3 | - "type": "library", | ||
4 | - "description": "PHPMailer is a full-featured email creation and transfer class for PHP", | ||
5 | - "authors": [ | ||
6 | - { | ||
7 | - "name": "Marcus Bointon", | ||
8 | - "email": "phpmailer@synchromedia.co.uk" | ||
9 | - }, | ||
10 | - { | ||
11 | - "name": "Jim Jagielski", | ||
12 | - "email": "jimjag@gmail.com" | ||
13 | - }, | ||
14 | - { | ||
15 | - "name": "Andy Prevost", | ||
16 | - "email": "codeworxtech@users.sourceforge.net" | ||
17 | - }, | ||
18 | - { | ||
19 | - "name": "Brent R. Matzelle" | ||
20 | - } | ||
21 | - ], | ||
22 | - "funding": [ | ||
23 | - { | ||
24 | - "url": "https://github.com/Synchro", | ||
25 | - "type": "github" | ||
26 | - } | ||
27 | - ], | ||
28 | - "config": { | ||
29 | - "allow-plugins": { | ||
30 | - "dealerdirect/phpcodesniffer-composer-installer": true | ||
31 | - } | ||
32 | - }, | ||
33 | - "require": { | ||
34 | - "php": ">=5.5.0", | ||
35 | - "ext-ctype": "*", | ||
36 | - "ext-filter": "*", | ||
37 | - "ext-hash": "*" | ||
38 | - }, | ||
39 | - "require-dev": { | ||
40 | - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.2", | ||
41 | - "doctrine/annotations": "^1.2.6 || ^1.13.3", | ||
42 | - "php-parallel-lint/php-console-highlighter": "^1.0.0", | ||
43 | - "php-parallel-lint/php-parallel-lint": "^1.3.2", | ||
44 | - "phpcompatibility/php-compatibility": "^9.3.5", | ||
45 | - "roave/security-advisories": "dev-latest", | ||
46 | - "squizlabs/php_codesniffer": "^3.7.1", | ||
47 | - "yoast/phpunit-polyfills": "^1.0.4" | ||
48 | - }, | ||
49 | - "suggest": { | ||
50 | - "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", | ||
51 | - "ext-openssl": "Needed for secure SMTP sending and DKIM signing", | ||
52 | - "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", | ||
53 | - "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", | ||
54 | - "league/oauth2-google": "Needed for Google XOAUTH2 authentication", | ||
55 | - "psr/log": "For optional PSR-3 debug logging", | ||
56 | - "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication", | ||
57 | - "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)" | ||
58 | - }, | ||
59 | - "autoload": { | ||
60 | - "psr-4": { | ||
61 | - "PHPMailer\\PHPMailer\\": "src/" | ||
62 | - } | ||
63 | - }, | ||
64 | - "autoload-dev": { | ||
65 | - "psr-4": { | ||
66 | - "PHPMailer\\Test\\": "test/" | ||
67 | - } | ||
68 | - }, | ||
69 | - "license": "LGPL-2.1-only", | ||
70 | - "scripts": { | ||
71 | - "check": "./vendor/bin/phpcs", | ||
72 | - "test": "./vendor/bin/phpunit --no-coverage", | ||
73 | - "coverage": "./vendor/bin/phpunit", | ||
74 | - "lint": [ | ||
75 | - "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . --show-deprecated -e php,phps --exclude vendor --exclude .git --exclude build" | ||
76 | - ] | ||
77 | - } | ||
78 | -} |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * PHPMailer - PHP email creation and transport class. | ||
5 | - * PHP Version 5.5 | ||
6 | - * @package PHPMailer | ||
7 | - * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project | ||
8 | - * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> | ||
9 | - * @author Jim Jagielski (jimjag) <jimjag@gmail.com> | ||
10 | - * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net> | ||
11 | - * @author Brent R. Matzelle (original founder) | ||
12 | - * @copyright 2012 - 2020 Marcus Bointon | ||
13 | - * @copyright 2010 - 2012 Jim Jagielski | ||
14 | - * @copyright 2004 - 2009 Andy Prevost | ||
15 | - * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License | ||
16 | - * @note This program is distributed in the hope that it will be useful - WITHOUT | ||
17 | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
18 | - * FITNESS FOR A PARTICULAR PURPOSE. | ||
19 | - */ | ||
20 | - | ||
21 | -/** | ||
22 | - * Get an OAuth2 token from an OAuth2 provider. | ||
23 | - * * Install this script on your server so that it's accessible | ||
24 | - * as [https/http]://<yourdomain>/<folder>/get_oauth_token.php | ||
25 | - * e.g.: http://localhost/phpmailer/get_oauth_token.php | ||
26 | - * * Ensure dependencies are installed with 'composer install' | ||
27 | - * * Set up an app in your Google/Yahoo/Microsoft account | ||
28 | - * * Set the script address as the app's redirect URL | ||
29 | - * If no refresh token is obtained when running this file, | ||
30 | - * revoke access to your app and run the script again. | ||
31 | - */ | ||
32 | - | ||
33 | -namespace PHPMailer\PHPMailer; | ||
34 | - | ||
35 | -/** | ||
36 | - * Aliases for League Provider Classes | ||
37 | - * Make sure you have added these to your composer.json and run `composer install` | ||
38 | - * Plenty to choose from here: | ||
39 | - * @see http://oauth2-client.thephpleague.com/providers/thirdparty/ | ||
40 | - */ | ||
41 | -//@see https://github.com/thephpleague/oauth2-google | ||
42 | -use League\OAuth2\Client\Provider\Google; | ||
43 | -//@see https://packagist.org/packages/hayageek/oauth2-yahoo | ||
44 | -use Hayageek\OAuth2\Client\Provider\Yahoo; | ||
45 | -//@see https://github.com/stevenmaguire/oauth2-microsoft | ||
46 | -use Stevenmaguire\OAuth2\Client\Provider\Microsoft; | ||
47 | -//@see https://github.com/greew/oauth2-azure-provider | ||
48 | -use Greew\OAuth2\Client\Provider\Azure; | ||
49 | - | ||
50 | -if (!isset($_GET['code']) && !isset($_POST['provider'])) { | ||
51 | - ?> | ||
52 | -<html> | ||
53 | -<body> | ||
54 | -<form method="post"> | ||
55 | - <h1>Select Provider</h1> | ||
56 | - <input type="radio" name="provider" value="Google" id="providerGoogle"> | ||
57 | - <label for="providerGoogle">Google</label><br> | ||
58 | - <input type="radio" name="provider" value="Yahoo" id="providerYahoo"> | ||
59 | - <label for="providerYahoo">Yahoo</label><br> | ||
60 | - <input type="radio" name="provider" value="Microsoft" id="providerMicrosoft"> | ||
61 | - <label for="providerMicrosoft">Microsoft</label><br> | ||
62 | - <input type="radio" name="provider" value="Azure" id="providerAzure"> | ||
63 | - <label for="providerAzure">Azure</label><br> | ||
64 | - <h1>Enter id and secret</h1> | ||
65 | - <p>These details are obtained by setting up an app in your provider's developer console. | ||
66 | - </p> | ||
67 | - <p>ClientId: <input type="text" name="clientId"><p> | ||
68 | - <p>ClientSecret: <input type="text" name="clientSecret"></p> | ||
69 | - <p>TenantID (only relevant for Azure): <input type="text" name="tenantId"></p> | ||
70 | - <input type="submit" value="Continue"> | ||
71 | -</form> | ||
72 | -</body> | ||
73 | -</html> | ||
74 | - <?php | ||
75 | - exit; | ||
76 | -} | ||
77 | - | ||
78 | -require 'vendor/autoload.php'; | ||
79 | - | ||
80 | -session_start(); | ||
81 | - | ||
82 | -$providerName = ''; | ||
83 | -$clientId = ''; | ||
84 | -$clientSecret = ''; | ||
85 | -$tenantId = ''; | ||
86 | - | ||
87 | -if (array_key_exists('provider', $_POST)) { | ||
88 | - $providerName = $_POST['provider']; | ||
89 | - $clientId = $_POST['clientId']; | ||
90 | - $clientSecret = $_POST['clientSecret']; | ||
91 | - $tenantId = $_POST['tenantId']; | ||
92 | - $_SESSION['provider'] = $providerName; | ||
93 | - $_SESSION['clientId'] = $clientId; | ||
94 | - $_SESSION['clientSecret'] = $clientSecret; | ||
95 | - $_SESSION['tenantId'] = $tenantId; | ||
96 | -} elseif (array_key_exists('provider', $_SESSION)) { | ||
97 | - $providerName = $_SESSION['provider']; | ||
98 | - $clientId = $_SESSION['clientId']; | ||
99 | - $clientSecret = $_SESSION['clientSecret']; | ||
100 | - $tenantId = $_SESSION['tenantId']; | ||
101 | -} | ||
102 | - | ||
103 | -//If you don't want to use the built-in form, set your client id and secret here | ||
104 | -//$clientId = 'RANDOMCHARS-----duv1n2.apps.googleusercontent.com'; | ||
105 | -//$clientSecret = 'RANDOMCHARS-----lGyjPcRtvP'; | ||
106 | - | ||
107 | -//If this automatic URL doesn't work, set it yourself manually to the URL of this script | ||
108 | -$redirectUri = (isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; | ||
109 | -//$redirectUri = 'http://localhost/PHPMailer/redirect'; | ||
110 | - | ||
111 | -$params = [ | ||
112 | - 'clientId' => $clientId, | ||
113 | - 'clientSecret' => $clientSecret, | ||
114 | - 'redirectUri' => $redirectUri, | ||
115 | - 'accessType' => 'offline' | ||
116 | -]; | ||
117 | - | ||
118 | -$options = []; | ||
119 | -$provider = null; | ||
120 | - | ||
121 | -switch ($providerName) { | ||
122 | - case 'Google': | ||
123 | - $provider = new Google($params); | ||
124 | - $options = [ | ||
125 | - 'scope' => [ | ||
126 | - 'https://mail.google.com/' | ||
127 | - ] | ||
128 | - ]; | ||
129 | - break; | ||
130 | - case 'Yahoo': | ||
131 | - $provider = new Yahoo($params); | ||
132 | - break; | ||
133 | - case 'Microsoft': | ||
134 | - $provider = new Microsoft($params); | ||
135 | - $options = [ | ||
136 | - 'scope' => [ | ||
137 | - 'wl.imap', | ||
138 | - 'wl.offline_access' | ||
139 | - ] | ||
140 | - ]; | ||
141 | - break; | ||
142 | - case 'Azure': | ||
143 | - $params['tenantId'] = $tenantId; | ||
144 | - | ||
145 | - $provider = new Azure($params); | ||
146 | - $options = [ | ||
147 | - 'scope' => [ | ||
148 | - 'https://outlook.office.com/SMTP.Send', | ||
149 | - 'offline_access' | ||
150 | - ] | ||
151 | - ]; | ||
152 | - break; | ||
153 | -} | ||
154 | - | ||
155 | -if (null === $provider) { | ||
156 | - exit('Provider missing'); | ||
157 | -} | ||
158 | - | ||
159 | -if (!isset($_GET['code'])) { | ||
160 | - //If we don't have an authorization code then get one | ||
161 | - $authUrl = $provider->getAuthorizationUrl($options); | ||
162 | - $_SESSION['oauth2state'] = $provider->getState(); | ||
163 | - header('Location: ' . $authUrl); | ||
164 | - exit; | ||
165 | - //Check given state against previously stored one to mitigate CSRF attack | ||
166 | -} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) { | ||
167 | - unset($_SESSION['oauth2state']); | ||
168 | - unset($_SESSION['provider']); | ||
169 | - exit('Invalid state'); | ||
170 | -} else { | ||
171 | - unset($_SESSION['provider']); | ||
172 | - //Try to get an access token (using the authorization code grant) | ||
173 | - $token = $provider->getAccessToken( | ||
174 | - 'authorization_code', | ||
175 | - [ | ||
176 | - 'code' => $_GET['code'] | ||
177 | - ] | ||
178 | - ); | ||
179 | - //Use this to interact with an API on the users behalf | ||
180 | - //Use this to get a new access token if the old one expires | ||
181 | - echo 'Refresh Token: ', $token->getRefreshToken(); | ||
182 | -} |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Afrikaans PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - */ | ||
7 | - | ||
8 | -$PHPMAILER_LANG['authenticate'] = 'SMTP-fout: kon nie geverifieer word nie.'; | ||
9 | -$PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon nie aan SMTP-verbind nie.'; | ||
10 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data nie aanvaar nie.'; | ||
11 | -$PHPMAILER_LANG['empty_message'] = 'Boodskapliggaam leeg.'; | ||
12 | -$PHPMAILER_LANG['encoding'] = 'Onbekende kodering: '; | ||
13 | -$PHPMAILER_LANG['execute'] = 'Kon nie uitvoer nie: '; | ||
14 | -$PHPMAILER_LANG['file_access'] = 'Kon nie lêer oopmaak nie: '; | ||
15 | -$PHPMAILER_LANG['file_open'] = 'Lêerfout: Kon nie lêer oopmaak nie: '; | ||
16 | -$PHPMAILER_LANG['from_failed'] = 'Die volgende Van adres misluk: '; | ||
17 | -$PHPMAILER_LANG['instantiate'] = 'Kon nie posfunksie instansieer nie.'; | ||
18 | -$PHPMAILER_LANG['invalid_address'] = 'Ongeldige adres: '; | ||
19 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer word nie ondersteun nie.'; | ||
20 | -$PHPMAILER_LANG['provide_address'] = 'U moet ten minste een ontvanger e-pos adres verskaf.'; | ||
21 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: Die volgende ontvangers het misluk: '; | ||
22 | -$PHPMAILER_LANG['signing'] = 'Ondertekening Fout: '; | ||
23 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP-verbinding () misluk.'; | ||
24 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP-bediener fout: '; | ||
25 | -$PHPMAILER_LANG['variable_set'] = 'Kan nie veranderlike instel of herstel nie: '; | ||
26 | -$PHPMAILER_LANG['extension_missing'] = 'Uitbreiding ontbreek: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Arabic PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author bahjat al mostafa <bahjat983@hotmail.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'خطأ SMTP : لا يمكن تأكيد الهوية.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'خطأ SMTP: لا يمكن الاتصال بالخادم SMTP.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'خطأ SMTP: لم يتم قبول المعلومات .'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'نص الرسالة فارغ'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'ترميز غير معروف: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'لا يمكن تنفيذ : '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'لا يمكن الوصول للملف: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'خطأ في الملف: لا يمكن فتحه: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'خطأ على مستوى عنوان المرسل : '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'لا يمكن توفير خدمة البريد.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'الإرسال غير ممكن لأن عنوان البريد الإلكتروني غير صالح: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'خطأ SMTP: الأخطاء التالية فشل في الارسال لكل من : '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'خطأ في التوقيع: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() غير ممكن.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'خطأ على مستوى الخادم SMTP: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'لا يمكن تعيين أو إعادة تعيين متغير: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'الإضافة غير موجودة: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Azerbaijani PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author @mirjalal | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP xətası: Giriş uğursuz oldu.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP xətası: SMTP serverinə qoşulma uğursuz oldu.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP xətası: Verilənlər qəbul edilməyib.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Boş mesaj göndərilə bilməz.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Qeyri-müəyyən kodlaşdırma: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Əmr yerinə yetirilmədi: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Fayla giriş yoxdur: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Fayl xətası: Fayl açıla bilmədi: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Göstərilən poçtlara göndərmə uğursuz oldu: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Mail funksiyası işə salına bilmədi.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Düzgün olmayan e-mail adresi: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' - e-mail kitabxanası dəstəklənmir.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Ən azı bir e-mail adresi daxil edilməlidir.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP xətası: Aşağıdakı ünvanlar üzrə alıcılara göndərmə uğursuzdur: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'İmzalama xətası: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP serverinə qoşulma uğursuz oldu.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP serveri xətası: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Dəyişənin quraşdırılması uğursuz oldu: '; | ||
27 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Bosnian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Ermin Islamagić <ermin@islamagic.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela prijava.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Nije moguće spojiti se sa SMTP serverom.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Nepoznata kriptografija: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje sa navedenih e-mail adresa nije uspjelo: '; | ||
18 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedene e-mail adrese nije uspjelo: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; | ||
21 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; | ||
22 | -$PHPMAILER_LANG['provide_address'] = 'Definišite barem jednu adresu primaoca.'; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP server nije uspjelo.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP greška: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Nije moguće postaviti varijablu ili je vratiti nazad: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Nedostaje ekstenzija: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Belarusian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Aleksander Maksymiuk <info@setpro.pl> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'Памылка SMTP: памылка ідэнтыфікацыі.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'Памылка SMTP: нельга ўстанавіць сувязь з SMTP-серверам.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'Памылка SMTP: звесткі непрынятыя.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Пустое паведамленне.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Невядомая кадыроўка тэксту: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Нельга выканаць каманду: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Няма доступу да файла: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Нельга адкрыць файл: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Няправільны адрас адпраўніка: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Нельга прымяніць функцыю mail().'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Нельга даслаць паведамленне, няправільны email атрымальніка: '; | ||
20 | -$PHPMAILER_LANG['provide_address'] = 'Запоўніце, калі ласка, правільны email атрымальніка.'; | ||
21 | -$PHPMAILER_LANG['mailer_not_supported'] = ' - паштовы сервер не падтрымліваецца.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'Памылка SMTP: няправільныя атрымальнікі: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Памылка подпісу паведамлення: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Памылка сувязі з SMTP-серверам.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'Памылка SMTP: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Нельга ўстанавіць або перамяніць значэнне пераменнай: '; | ||
27 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Bulgarian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Mikhail Kyosev <mialygk@gmail.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP грешка: Не може да се удостовери пред сървъра.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP грешка: Не може да се свърже с SMTP хоста.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: данните не са приети.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Съдържанието на съобщението е празно'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Неизвестно кодиране: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Не може да се изпълни: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Няма достъп до файл: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Файлова грешка: Не може да се отвори файл: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Следните адреси за подател са невалидни: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Не може да се инстанцира функцията mail.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Невалиден адрес: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' - пощенски сървър не се поддържа.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Трябва да предоставите поне един email адрес за получател.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: Следните адреси за Получател са невалидни: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Грешка при подписване: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP провален connect().'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP сървърна грешка: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Не може да се установи или възстанови променлива: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Липсва разширение: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Catalan PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Ivan <web AT microstudi DOT com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'Error SMTP: No s’ha pogut autenticar.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'Error SMTP: No es pot connectar al servidor SMTP.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Dades no acceptades.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'El cos del missatge està buit.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Codificació desconeguda: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'No es pot executar: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'No es pot accedir a l’arxiu: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Error d’Arxiu: No es pot obrir l’arxiu: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'La(s) següent(s) adreces de remitent han fallat: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'No s’ha pogut crear una instància de la funció Mail.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Adreça d’email invalida: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no està suportat'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'S’ha de proveir almenys una adreça d’email com a destinatari.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Els següents destinataris han fallat: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Error al signar: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Ha fallat el SMTP Connect().'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'No s’ha pogut establir o restablir la variable: '; | ||
27 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Czech PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - */ | ||
7 | - | ||
8 | -$PHPMAILER_LANG['authenticate'] = 'Chyba SMTP: Autentizace selhala.'; | ||
9 | -$PHPMAILER_LANG['connect_host'] = 'Chyba SMTP: Nelze navázat spojení se SMTP serverem.'; | ||
10 | -$PHPMAILER_LANG['data_not_accepted'] = 'Chyba SMTP: Data nebyla přijata.'; | ||
11 | -$PHPMAILER_LANG['empty_message'] = 'Prázdné tělo zprávy'; | ||
12 | -$PHPMAILER_LANG['encoding'] = 'Neznámé kódování: '; | ||
13 | -$PHPMAILER_LANG['execute'] = 'Nelze provést: '; | ||
14 | -$PHPMAILER_LANG['file_access'] = 'Nelze získat přístup k souboru: '; | ||
15 | -$PHPMAILER_LANG['file_open'] = 'Chyba souboru: Nelze otevřít soubor pro čtení: '; | ||
16 | -$PHPMAILER_LANG['from_failed'] = 'Následující adresa odesílatele je nesprávná: '; | ||
17 | -$PHPMAILER_LANG['instantiate'] = 'Nelze vytvořit instanci emailové funkce.'; | ||
18 | -$PHPMAILER_LANG['invalid_address'] = 'Neplatná adresa: '; | ||
19 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Záznam hostitele je nesprávný: '; | ||
20 | -$PHPMAILER_LANG['invalid_host'] = 'Hostitel je nesprávný: '; | ||
21 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer není podporován.'; | ||
22 | -$PHPMAILER_LANG['provide_address'] = 'Musíte zadat alespoň jednu emailovou adresu příjemce.'; | ||
23 | -$PHPMAILER_LANG['recipients_failed'] = 'Chyba SMTP: Následující adresy příjemců nejsou správně: '; | ||
24 | -$PHPMAILER_LANG['signing'] = 'Chyba přihlašování: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() selhal.'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'Chyba SMTP serveru: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'Nelze nastavit nebo změnit proměnnou: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Chybí rozšíření: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Danish PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author John Sebastian <jms@iwb.dk> | ||
7 | - * Rewrite and extension of the work by Mikael Stokkebro <info@stokkebro.dk> | ||
8 | - * | ||
9 | - */ | ||
10 | - | ||
11 | -$PHPMAILER_LANG['authenticate'] = 'SMTP fejl: Login mislykkedes.'; | ||
12 | -$PHPMAILER_LANG['connect_host'] = 'SMTP fejl: Forbindelse til SMTP serveren kunne ikke oprettes.'; | ||
13 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fejl: Data blev ikke accepteret.'; | ||
14 | -$PHPMAILER_LANG['empty_message'] = 'Meddelelsen er uden indhold'; | ||
15 | -$PHPMAILER_LANG['encoding'] = 'Ukendt encode-format: '; | ||
16 | -$PHPMAILER_LANG['execute'] = 'Kunne ikke afvikle: '; | ||
17 | -$PHPMAILER_LANG['extension_missing'] = 'Udvidelse mangler: '; | ||
18 | -$PHPMAILER_LANG['file_access'] = 'Kunne ikke tilgå filen: '; | ||
19 | -$PHPMAILER_LANG['file_open'] = 'Fil fejl: Kunne ikke åbne filen: '; | ||
20 | -$PHPMAILER_LANG['from_failed'] = 'Følgende afsenderadresse er forkert: '; | ||
21 | -$PHPMAILER_LANG['instantiate'] = 'Email funktionen kunne ikke initialiseres.'; | ||
22 | -$PHPMAILER_LANG['invalid_address'] = 'Udgyldig adresse: '; | ||
23 | -$PHPMAILER_LANG['invalid_header'] = 'Ugyldig header navn eller værdi'; | ||
24 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Ugyldig hostentry: '; | ||
25 | -$PHPMAILER_LANG['invalid_host'] = 'Ugyldig vært: '; | ||
26 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer understøttes ikke.'; | ||
27 | -$PHPMAILER_LANG['provide_address'] = 'Indtast mindst en modtagers email adresse.'; | ||
28 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP fejl: Følgende modtagere fejlede: '; | ||
29 | -$PHPMAILER_LANG['signing'] = 'Signeringsfejl: '; | ||
30 | -$PHPMAILER_LANG['smtp_code'] = 'SMTP kode: '; | ||
31 | -$PHPMAILER_LANG['smtp_code_ex'] = 'Yderligere SMTP info: '; | ||
32 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fejlede.'; | ||
33 | -$PHPMAILER_LANG['smtp_detail'] = 'Detalje: '; | ||
34 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP server fejl: '; | ||
35 | -$PHPMAILER_LANG['variable_set'] = 'Kunne ikke definere eller nulstille variablen: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * German PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - */ | ||
7 | - | ||
8 | -$PHPMAILER_LANG['authenticate'] = 'SMTP-Fehler: Authentifizierung fehlgeschlagen.'; | ||
9 | -$PHPMAILER_LANG['connect_host'] = 'SMTP-Fehler: Konnte keine Verbindung zum SMTP-Host herstellen.'; | ||
10 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-Fehler: Daten werden nicht akzeptiert.'; | ||
11 | -$PHPMAILER_LANG['empty_message'] = 'E-Mail-Inhalt ist leer.'; | ||
12 | -$PHPMAILER_LANG['encoding'] = 'Unbekannte Kodierung: '; | ||
13 | -$PHPMAILER_LANG['execute'] = 'Konnte folgenden Befehl nicht ausführen: '; | ||
14 | -$PHPMAILER_LANG['file_access'] = 'Zugriff auf folgende Datei fehlgeschlagen: '; | ||
15 | -$PHPMAILER_LANG['file_open'] = 'Dateifehler: Konnte folgende Datei nicht öffnen: '; | ||
16 | -$PHPMAILER_LANG['from_failed'] = 'Die folgende Absenderadresse ist nicht korrekt: '; | ||
17 | -$PHPMAILER_LANG['instantiate'] = 'Mail-Funktion konnte nicht initialisiert werden.'; | ||
18 | -$PHPMAILER_LANG['invalid_address'] = 'Die Adresse ist ungültig: '; | ||
19 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Ungültiger Hosteintrag: '; | ||
20 | -$PHPMAILER_LANG['invalid_host'] = 'Ungültiger Host: '; | ||
21 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wird nicht unterstützt.'; | ||
22 | -$PHPMAILER_LANG['provide_address'] = 'Bitte geben Sie mindestens eine Empfängeradresse an.'; | ||
23 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP-Fehler: Die folgenden Empfänger sind nicht korrekt: '; | ||
24 | -$PHPMAILER_LANG['signing'] = 'Fehler beim Signieren: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Verbindung zum SMTP-Server fehlgeschlagen.'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'Fehler vom SMTP-Server: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'Kann Variable nicht setzen oder zurücksetzen: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Fehlende Erweiterung: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Greek PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - */ | ||
7 | - | ||
8 | -$PHPMAILER_LANG['authenticate'] = 'Σφάλμα SMTP: Αδυναμία πιστοποίησης.'; | ||
9 | -$PHPMAILER_LANG['buggy_php'] = 'Η έκδοση PHP που χρησιμοποιείτε παρουσιάζει σφάλμα που μπορεί να έχει ως αποτέλεσμα κατεστραμένα μηνύματα. Για να το διορθώσετε, αλλάξτε τον τρόπο αποστολής σε SMTP, απενεργοποιήστε την επιλογή mail.add_x_header στο αρχείο php.ini, αλλάξτε λειτουργικό σε MacOS ή Linux ή αναβαθμίστε την PHP σε έκδοση 7.0.17+ ή 7.1.3+.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'Σφάλμα SMTP: Αδυναμία σύνδεσης με τον φιλοξενητή SMTP.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'Σφάλμα SMTP: Μη αποδεκτά δεδομένα.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Η ηλεκτρονική επιστολή δεν έχει περιεχόμενο.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Άγνωστη μορφή κωδικοποίησης: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Αδυναμία εκτέλεσης: '; | ||
15 | -$PHPMAILER_LANG['extension_missing'] = 'Απουσία επέκτασης: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'Αδυναμία πρόσβασης στο αρχείο: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'Σφάλμα Αρχείου: Αδυναμία ανοίγματος αρχείου: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'Η ακόλουθη διεύθυνση αποστολέα δεν είναι σωστή: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'Αδυναμία εκκίνησης συνάρτησης Mail.'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'Μη έγκυρη διεύθυνση: '; | ||
21 | -$PHPMAILER_LANG['invalid_header'] = 'Μη έγκυρο όνομα κεφαλίδας ή τιμή'; | ||
22 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Μη έγκυρη εισαγωγή φιλοξενητή: '; | ||
23 | -$PHPMAILER_LANG['invalid_host'] = 'Μη έγκυρος φιλοξενητής: '; | ||
24 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer δεν υποστηρίζεται.'; | ||
25 | -$PHPMAILER_LANG['provide_address'] = 'Δώστε τουλάχιστον μια ηλεκτρονική διεύθυνση παραλήπτη.'; | ||
26 | -$PHPMAILER_LANG['recipients_failed'] = 'Σφάλμα SMTP: Οι παρακάτω διευθύνσεις παραλήπτη δεν είναι έγκυρες: '; | ||
27 | -$PHPMAILER_LANG['signing'] = 'Σφάλμα υπογραφής: '; | ||
28 | -$PHPMAILER_LANG['smtp_code'] = 'Κώδικάς SMTP: '; | ||
29 | -$PHPMAILER_LANG['smtp_code_ex'] = 'Πρόσθετες πληροφορίες SMTP: '; | ||
30 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Αποτυχία σύνδεσης SMTP.'; | ||
31 | -$PHPMAILER_LANG['smtp_detail'] = 'Λεπτομέρεια: '; | ||
32 | -$PHPMAILER_LANG['smtp_error'] = 'Σφάλμα με τον διακομιστή SMTP: '; | ||
33 | -$PHPMAILER_LANG['variable_set'] = 'Αδυναμία ορισμού ή επαναφοράς μεταβλητής: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Esperanto PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - */ | ||
7 | - | ||
8 | -$PHPMAILER_LANG['authenticate'] = 'Eraro de servilo SMTP : aŭtentigo malsukcesis.'; | ||
9 | -$PHPMAILER_LANG['connect_host'] = 'Eraro de servilo SMTP : konektado al servilo malsukcesis.'; | ||
10 | -$PHPMAILER_LANG['data_not_accepted'] = 'Eraro de servilo SMTP : neĝustaj datumoj.'; | ||
11 | -$PHPMAILER_LANG['empty_message'] = 'Teksto de mesaĝo mankas.'; | ||
12 | -$PHPMAILER_LANG['encoding'] = 'Nekonata kodoprezento: '; | ||
13 | -$PHPMAILER_LANG['execute'] = 'Lanĉi rulumadon ne eblis: '; | ||
14 | -$PHPMAILER_LANG['file_access'] = 'Aliro al dosiero ne sukcesis: '; | ||
15 | -$PHPMAILER_LANG['file_open'] = 'Eraro de dosiero: malfermo neeblas: '; | ||
16 | -$PHPMAILER_LANG['from_failed'] = 'Jena adreso de sendinto malsukcesis: '; | ||
17 | -$PHPMAILER_LANG['instantiate'] = 'Genero de retmesaĝa funkcio neeblis.'; | ||
18 | -$PHPMAILER_LANG['invalid_address'] = 'Retadreso ne validas: '; | ||
19 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mesaĝilo ne subtenata.'; | ||
20 | -$PHPMAILER_LANG['provide_address'] = 'Vi devas tajpi almenaŭ unu recevontan retadreson.'; | ||
21 | -$PHPMAILER_LANG['recipients_failed'] = 'Eraro de servilo SMTP : la jenaj poŝtrecivuloj kaŭzis eraron: '; | ||
22 | -$PHPMAILER_LANG['signing'] = 'Eraro de subskribo: '; | ||
23 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP konektado malsukcesis.'; | ||
24 | -$PHPMAILER_LANG['smtp_error'] = 'Eraro de servilo SMTP : '; | ||
25 | -$PHPMAILER_LANG['variable_set'] = 'Variablo ne pravalorizeblas aŭ ne repravalorizeblas: '; | ||
26 | -$PHPMAILER_LANG['extension_missing'] = 'Mankas etendo: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Spanish PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Matt Sturdy <matt.sturdy@gmail.com> | ||
7 | - * @author Crystopher Glodzienski Cardoso <crystopher.glodzienski@gmail.com> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'Error SMTP: Imposible autentificar.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'Error SMTP: Imposible conectar al servidor SMTP.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Datos no aceptados.'; | ||
13 | -$PHPMAILER_LANG['empty_message'] = 'El cuerpo del mensaje está vacío.'; | ||
14 | -$PHPMAILER_LANG['encoding'] = 'Codificación desconocida: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'Imposible ejecutar: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'Imposible acceder al archivo: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'Error de Archivo: Imposible abrir el archivo: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'La(s) siguiente(s) direcciones de remitente fallaron: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'Imposible crear una instancia de la función Mail.'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'Imposible enviar: dirección de email inválido: '; | ||
21 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no está soportado.'; | ||
22 | -$PHPMAILER_LANG['provide_address'] = 'Debe proporcionar al menos una dirección de email de destino.'; | ||
23 | -$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Los siguientes destinos fallaron: '; | ||
24 | -$PHPMAILER_LANG['signing'] = 'Error al firmar: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falló.'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'No se pudo configurar la variable: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Extensión faltante: '; | ||
29 | -$PHPMAILER_LANG['smtp_code'] = 'Código del servidor SMTP: '; | ||
30 | -$PHPMAILER_LANG['smtp_code_ex'] = 'Información adicional del servidor SMTP: '; | ||
31 | -$PHPMAILER_LANG['invalid_header'] = 'Nombre o valor de encabezado no válido'; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Estonian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Indrek Päri | ||
7 | - * @author Elan Ruusamäe <glen@delfi.ee> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'SMTP Viga: Autoriseerimise viga.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Viga: Ei õnnestunud luua ühendust SMTP serveriga.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Viga: Vigased andmed.'; | ||
13 | -$PHPMAILER_LANG['empty_message'] = 'Tühi kirja sisu'; | ||
14 | -$PHPMAILER_LANG["encoding"] = 'Tundmatu kodeering: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'Tegevus ebaõnnestus: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'Pole piisavalt õiguseid järgneva faili avamiseks: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'Faili Viga: Faili avamine ebaõnnestus: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'Järgnev saatja e-posti aadress on vigane: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'mail funktiooni käivitamine ebaõnnestus.'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'Saatmine peatatud, e-posti address vigane: '; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Te peate määrama vähemalt ühe saaja e-posti aadressi.'; | ||
22 | -$PHPMAILER_LANG['mailer_not_supported'] = ' maileri tugi puudub.'; | ||
23 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Viga: Järgnevate saajate e-posti aadressid on vigased: '; | ||
24 | -$PHPMAILER_LANG["signing"] = 'Viga allkirjastamisel: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() ebaõnnestus.'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP serveri viga: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'Ei õnnestunud määrata või lähtestada muutujat: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Nõutud laiendus on puudu: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Persian/Farsi PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Ali Jazayeri <jaza.ali@gmail.com> | ||
7 | - * @author Mohammad Hossein Mojtahedi <mhm5000@gmail.com> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'خطای SMTP: احراز هویت با شکست مواجه شد.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'خطای SMTP: اتصال به سرور SMTP برقرار نشد.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'خطای SMTP: دادهها نادرست هستند.'; | ||
13 | -$PHPMAILER_LANG['empty_message'] = 'بخش متن پیام خالی است.'; | ||
14 | -$PHPMAILER_LANG['encoding'] = 'کدگذاری ناشناخته: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'امکان اجرا وجود ندارد: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'امکان دسترسی به فایل وجود ندارد: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'خطای File: امکان بازکردن فایل وجود ندارد: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'آدرس فرستنده اشتباه است: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'امکان معرفی تابع ایمیل وجود ندارد.'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'آدرس ایمیل معتبر نیست: '; | ||
21 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer پشتیبانی نمیشود.'; | ||
22 | -$PHPMAILER_LANG['provide_address'] = 'باید حداقل یک آدرس گیرنده وارد کنید.'; | ||
23 | -$PHPMAILER_LANG['recipients_failed'] = 'خطای SMTP: ارسال به آدرس گیرنده با خطا مواجه شد: '; | ||
24 | -$PHPMAILER_LANG['signing'] = 'خطا در امضا: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'خطا در اتصال به SMTP.'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'خطا در SMTP Server: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'امکان ارسال یا ارسال مجدد متغیرها وجود ندارد: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'افزونه موجود نیست: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Finnish PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Jyry Kuukanen | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP-virhe: käyttäjätunnistus epäonnistui.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP-virhe: yhteys palvelimeen ei onnistu.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-virhe: data on virheellinen.'; | ||
12 | -//$PHPMAILER_LANG['empty_message'] = 'Message body empty'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Tuntematon koodaustyyppi: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Suoritus epäonnistui: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Seuraavaan tiedostoon ei ole oikeuksia: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Tiedostovirhe: Ei voida avata tiedostoa: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Seuraava lähettäjän osoite on virheellinen: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'mail-funktion luonti epäonnistui.'; | ||
19 | -//$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = 'postivälitintyyppiä ei tueta.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Aseta vähintään yksi vastaanottajan sähköpostiosoite.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP-virhe: seuraava vastaanottaja osoite on virheellinen.'; | ||
23 | -$PHPMAILER_LANG['encoding'] = 'Tuntematon koodaustyyppi: '; | ||
24 | -//$PHPMAILER_LANG['signing'] = 'Signing Error: '; | ||
25 | -//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; | ||
26 | -//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; | ||
27 | -//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; | ||
28 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Faroese PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Dávur Sørensen <http://www.profo-webdesign.dk> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP feilur: Kundi ikki góðkenna.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP feilur: Kundi ikki knýta samband við SMTP vert.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP feilur: Data ikki góðkent.'; | ||
12 | -//$PHPMAILER_LANG['empty_message'] = 'Message body empty'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Ókend encoding: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Kundi ikki útføra: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Kundi ikki tilganga fílu: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Fílu feilur: Kundi ikki opna fílu: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'fylgjandi Frá/From adressa miseydnaðist: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Kuni ikki instantiera mail funktión.'; | ||
19 | -//$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' er ikki supporterað.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Tú skal uppgeva minst móttakara-emailadressu(r).'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Feilur: Fylgjandi móttakarar miseydnaðust: '; | ||
23 | -//$PHPMAILER_LANG['signing'] = 'Signing Error: '; | ||
24 | -//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; | ||
25 | -//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; | ||
26 | -//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; | ||
27 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * French PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * Some French punctuation requires a thin non-breaking space (U+202F) character before it, | ||
7 | - * for example before a colon or exclamation mark. | ||
8 | - * There is one of these characters between these quotes: " " | ||
9 | - * @see http://unicode.org/udhr/n/notes_fra.html | ||
10 | - */ | ||
11 | - | ||
12 | -$PHPMAILER_LANG['authenticate'] = 'Erreur SMTP : échec de l’authentification.'; | ||
13 | -$PHPMAILER_LANG['buggy_php'] = 'Votre version de PHP est affectée par un bug qui peut entraîner des messages corrompus. Pour résoudre ce problème, passez à l’envoi par SMTP, désactivez l’option mail.add_x_header dans le fichier php.ini, passez à MacOS ou Linux, ou passez PHP à la version 7.0.17+ ou 7.1.3+.'; | ||
14 | -$PHPMAILER_LANG['connect_host'] = 'Erreur SMTP : impossible de se connecter au serveur SMTP.'; | ||
15 | -$PHPMAILER_LANG['data_not_accepted'] = 'Erreur SMTP : données incorrectes.'; | ||
16 | -$PHPMAILER_LANG['empty_message'] = 'Corps du message vide.'; | ||
17 | -$PHPMAILER_LANG['encoding'] = 'Encodage inconnu : '; | ||
18 | -$PHPMAILER_LANG['execute'] = 'Impossible de lancer l’exécution : '; | ||
19 | -$PHPMAILER_LANG['extension_missing'] = 'Extension manquante : '; | ||
20 | -$PHPMAILER_LANG['file_access'] = 'Impossible d’accéder au fichier : '; | ||
21 | -$PHPMAILER_LANG['file_open'] = 'Ouverture du fichier impossible : '; | ||
22 | -$PHPMAILER_LANG['from_failed'] = 'L’adresse d’expéditeur suivante a échoué : '; | ||
23 | -$PHPMAILER_LANG['instantiate'] = 'Impossible d’instancier la fonction mail.'; | ||
24 | -$PHPMAILER_LANG['invalid_address'] = 'Adresse courriel non valide : '; | ||
25 | -$PHPMAILER_LANG['invalid_header'] = 'Nom ou valeur de l’en-tête non valide'; | ||
26 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Entrée d’hôte non valide : '; | ||
27 | -$PHPMAILER_LANG['invalid_host'] = 'Hôte non valide : '; | ||
28 | -$PHPMAILER_LANG['mailer_not_supported'] = ' client de messagerie non supporté.'; | ||
29 | -$PHPMAILER_LANG['provide_address'] = 'Vous devez fournir au moins une adresse de destinataire.'; | ||
30 | -$PHPMAILER_LANG['recipients_failed'] = 'Erreur SMTP : les destinataires suivants ont échoué : '; | ||
31 | -$PHPMAILER_LANG['signing'] = 'Erreur de signature : '; | ||
32 | -$PHPMAILER_LANG['smtp_code'] = 'Code SMTP : '; | ||
33 | -$PHPMAILER_LANG['smtp_code_ex'] = 'Informations supplémentaires SMTP : '; | ||
34 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'La fonction SMTP connect() a échouée.'; | ||
35 | -$PHPMAILER_LANG['smtp_detail'] = 'Détails : '; | ||
36 | -$PHPMAILER_LANG['smtp_error'] = 'Erreur du serveur SMTP : '; | ||
37 | -$PHPMAILER_LANG['variable_set'] = 'Impossible d’initialiser ou de réinitialiser une variable : '; | ||
38 | -$PHPMAILER_LANG['extension_missing'] = 'Extension manquante : '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Galician PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author by Donato Rouco <donatorouco@gmail.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'Erro SMTP: Non puido ser autentificado.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'Erro SMTP: Non puido conectar co servidor SMTP.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'Erro SMTP: Datos non aceptados.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Corpo da mensaxe vacía'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Codificación descoñecida: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Non puido ser executado: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Nob puido acceder ó arquivo: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: No puido abrir o arquivo: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'A(s) seguinte(s) dirección(s) de remitente(s) deron erro: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Non puido crear unha instancia da función Mail.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Non puido envia-lo correo: dirección de email inválida: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer non está soportado.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Debe engadir polo menos unha dirección de email coma destino.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'Erro SMTP: Os seguintes destinos fallaron: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Erro ó firmar: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallou.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'Erro do servidor SMTP: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Non puidemos axustar ou reaxustar a variábel: '; | ||
27 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Hebrew PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Ronny Sherer <ronny@hoojima.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'שגיאת SMTP: פעולת האימות נכשלה.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'שגיאת SMTP: לא הצלחתי להתחבר לשרת SMTP.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'שגיאת SMTP: מידע לא התקבל.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'גוף ההודעה ריק'; | ||
13 | -$PHPMAILER_LANG['invalid_address'] = 'כתובת שגויה: '; | ||
14 | -$PHPMAILER_LANG['encoding'] = 'קידוד לא מוכר: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'לא הצלחתי להפעיל את: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'לא ניתן לגשת לקובץ: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'שגיאת קובץ: לא ניתן לגשת לקובץ: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'כתובות הנמענים הבאות נכשלו: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'לא הצלחתי להפעיל את פונקציית המייל.'; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' אינה נתמכת.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'חובה לספק לפחות כתובת אחת של מקבל המייל.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'שגיאת SMTP: הנמענים הבאים נכשלו: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'שגיאת חתימה: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'שגיאת שרת SMTP: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'לא ניתן לקבוע או לשנות את המשתנה: '; | ||
27 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Hindi PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Yash Karanke <mr.karanke@gmail.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP त्रुटि: प्रामाणिकता की जांच नहीं हो सका। '; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP त्रुटि: SMTP सर्वर से कनेक्ट नहीं हो सका। '; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP त्रुटि: डेटा स्वीकार नहीं किया जाता है। '; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'संदेश खाली है। '; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'अज्ञात एन्कोडिंग प्रकार। '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'आदेश को निष्पादित करने में विफल। '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'फ़ाइल उपलब्ध नहीं है। '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'फ़ाइल त्रुटि: फाइल को खोला नहीं जा सका। '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'प्रेषक का पता गलत है। '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'मेल फ़ंक्शन कॉल नहीं कर सकता है।'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'पता गलत है। '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = 'मेल सर्वर के साथ काम नहीं करता है। '; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'आपको कम से कम एक प्राप्तकर्ता का ई-मेल पता प्रदान करना होगा।'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP त्रुटि: निम्न प्राप्तकर्ताओं को पते भेजने में विफल। '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'साइनअप त्रुटि:। '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP का connect () फ़ंक्शन विफल हुआ। '; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP सर्वर त्रुटि। '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'चर को बना या संशोधित नहीं किया जा सकता। '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'एक्सटेन्षन गायब है: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Croatian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Hrvoj3e <hrvoj3e@gmail.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela autentikacija.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Ne mogu se spojiti na SMTP poslužitelj.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Nepoznati encoding: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje s navedenih e-mail adresa nije uspjelo: '; | ||
18 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedenih e-mail adresa nije uspjelo: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; | ||
21 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; | ||
22 | -$PHPMAILER_LANG['provide_address'] = 'Definirajte barem jednu adresu primatelja.'; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP poslužitelj nije uspjelo.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'Greška SMTP poslužitelja: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Ne mogu postaviti varijablu niti ju vratiti nazad: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Hungarian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author @dominicus-75 | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP hiba: az azonosítás sikertelen.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP hiba: nem lehet kapcsolódni az SMTP-szerverhez.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP hiba: adatok visszautasítva.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Üres az üzenettörzs.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Ismeretlen kódolás: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Nem lehet végrehajtani: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'A következő fájl nem elérhető: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Fájl hiba: a következő fájlt nem lehet megnyitni: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'A feladóként megadott következő cím hibás: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'A PHP mail() függvényt nem sikerült végrehajtani.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Érvénytelen cím: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' a mailer-osztály nem támogatott.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Legalább egy címzettet fel kell tüntetni.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP hiba: a címzettként megadott következő címek hibásak: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Hibás aláírás: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Hiba az SMTP-kapcsolatban.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP-szerver hiba: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'A következő változók beállítása nem sikerült: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Bővítmény hiányzik: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Armenian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Hrayr Grigoryan <hrayr@bits.am> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP -ի սխալ: չհաջողվեց ստուգել իսկությունը.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP -ի սխալ: չհաջողվեց կապ հաստատել SMTP սերվերի հետ.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP -ի սխալ: տվյալները ընդունված չեն.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Հաղորդագրությունը դատարկ է'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Կոդավորման անհայտ տեսակ: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Չհաջողվեց իրականացնել հրամանը: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Ֆայլը հասանելի չէ: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Ֆայլի սխալ: ֆայլը չհաջողվեց բացել: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Ուղարկողի հետևյալ հասցեն սխալ է: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Հնարավոր չէ կանչել mail ֆունկցիան.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Հասցեն սխալ է: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' փոստային սերվերի հետ չի աշխատում.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Անհրաժեշտ է տրամադրել գոնե մեկ ստացողի e-mail հասցե.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP -ի սխալ: չի հաջողվել ուղարկել հետևյալ ստացողների հասցեներին: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Ստորագրման սխալ: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP -ի connect() ֆունկցիան չի հաջողվել'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP սերվերի սխալ: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Չի հաջողվում ստեղծել կամ վերափոխել փոփոխականը: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Հավելվածը բացակայում է: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Indonesian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Cecep Prawiro <cecep.prawiro@gmail.com> | ||
7 | - * @author @januridp | ||
8 | - * @author Ian Mustafa <mail@ianmustafa.com> | ||
9 | - */ | ||
10 | - | ||
11 | -$PHPMAILER_LANG['authenticate'] = 'Kesalahan SMTP: Tidak dapat mengotentikasi.'; | ||
12 | -$PHPMAILER_LANG['connect_host'] = 'Kesalahan SMTP: Tidak dapat terhubung ke host SMTP.'; | ||
13 | -$PHPMAILER_LANG['data_not_accepted'] = 'Kesalahan SMTP: Data tidak diterima.'; | ||
14 | -$PHPMAILER_LANG['empty_message'] = 'Isi pesan kosong'; | ||
15 | -$PHPMAILER_LANG['encoding'] = 'Pengkodean karakter tidak dikenali: '; | ||
16 | -$PHPMAILER_LANG['execute'] = 'Tidak dapat menjalankan proses: '; | ||
17 | -$PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses berkas: '; | ||
18 | -$PHPMAILER_LANG['file_open'] = 'Kesalahan Berkas: Berkas tidak dapat dibuka: '; | ||
19 | -$PHPMAILER_LANG['from_failed'] = 'Alamat pengirim berikut mengakibatkan kesalahan: '; | ||
20 | -$PHPMAILER_LANG['instantiate'] = 'Tidak dapat menginisialisasi fungsi surel.'; | ||
21 | -$PHPMAILER_LANG['invalid_address'] = 'Gagal terkirim, alamat surel tidak sesuai: '; | ||
22 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Gagal terkirim, entri host tidak sesuai: '; | ||
23 | -$PHPMAILER_LANG['invalid_host'] = 'Gagal terkirim, host tidak sesuai: '; | ||
24 | -$PHPMAILER_LANG['provide_address'] = 'Harus tersedia minimal satu alamat tujuan'; | ||
25 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer tidak didukung'; | ||
26 | -$PHPMAILER_LANG['recipients_failed'] = 'Kesalahan SMTP: Alamat tujuan berikut menyebabkan kesalahan: '; | ||
27 | -$PHPMAILER_LANG['signing'] = 'Kesalahan dalam penandatangan SSL: '; | ||
28 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() gagal.'; | ||
29 | -$PHPMAILER_LANG['smtp_error'] = 'Kesalahan pada pelayan SMTP: '; | ||
30 | -$PHPMAILER_LANG['variable_set'] = 'Tidak dapat mengatur atau mengatur ulang variabel: '; | ||
31 | -$PHPMAILER_LANG['extension_missing'] = 'Ekstensi PHP tidak tersedia: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Italian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Ilias Bartolini <brain79@inwind.it> | ||
7 | - * @author Stefano Sabatini <sabas88@gmail.com> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Impossibile autenticarsi.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Impossibile connettersi all\'host SMTP.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dati non accettati dal server.'; | ||
13 | -$PHPMAILER_LANG['empty_message'] = 'Il corpo del messaggio è vuoto'; | ||
14 | -$PHPMAILER_LANG['encoding'] = 'Codifica dei caratteri sconosciuta: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'Impossibile eseguire l\'operazione: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'Impossibile accedere al file: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'File Error: Impossibile aprire il file: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'I seguenti indirizzi mittenti hanno generato errore: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'Impossibile istanziare la funzione mail'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'Impossibile inviare, l\'indirizzo email non è valido: '; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Deve essere fornito almeno un indirizzo ricevente'; | ||
22 | -$PHPMAILER_LANG['mailer_not_supported'] = 'Mailer non supportato'; | ||
23 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: I seguenti indirizzi destinatari hanno generato un errore: '; | ||
24 | -$PHPMAILER_LANG['signing'] = 'Errore nella firma: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallita.'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'Errore del server SMTP: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'Impossibile impostare o resettare la variabile: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Estensione mancante: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Japanese PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Mitsuhiro Yoshida <http://mitstek.com/> | ||
7 | - * @author Yoshi Sakai <http://bluemooninc.jp/> | ||
8 | - * @author Arisophy <https://github.com/arisophy/> | ||
9 | - */ | ||
10 | - | ||
11 | -$PHPMAILER_LANG['authenticate'] = 'SMTPエラー: 認証できませんでした。'; | ||
12 | -$PHPMAILER_LANG['connect_host'] = 'SMTPエラー: SMTPホストに接続できませんでした。'; | ||
13 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTPエラー: データが受け付けられませんでした。'; | ||
14 | -$PHPMAILER_LANG['empty_message'] = 'メール本文が空です。'; | ||
15 | -$PHPMAILER_LANG['encoding'] = '不明なエンコーディング: '; | ||
16 | -$PHPMAILER_LANG['execute'] = '実行できませんでした: '; | ||
17 | -$PHPMAILER_LANG['file_access'] = 'ファイルにアクセスできません: '; | ||
18 | -$PHPMAILER_LANG['file_open'] = 'ファイルエラー: ファイルを開けません: '; | ||
19 | -$PHPMAILER_LANG['from_failed'] = 'Fromアドレスを登録する際にエラーが発生しました: '; | ||
20 | -$PHPMAILER_LANG['instantiate'] = 'メール関数が正常に動作しませんでした。'; | ||
21 | -$PHPMAILER_LANG['invalid_address'] = '不正なメールアドレス: '; | ||
22 | -$PHPMAILER_LANG['provide_address'] = '少なくとも1つメールアドレスを 指定する必要があります。'; | ||
23 | -$PHPMAILER_LANG['mailer_not_supported'] = ' メーラーがサポートされていません。'; | ||
24 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTPエラー: 次の受信者アドレスに 間違いがあります: '; | ||
25 | -$PHPMAILER_LANG['signing'] = '署名エラー: '; | ||
26 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP接続に失敗しました。'; | ||
27 | -$PHPMAILER_LANG['smtp_error'] = 'SMTPサーバーエラー: '; | ||
28 | -$PHPMAILER_LANG['variable_set'] = '変数が存在しません: '; | ||
29 | -$PHPMAILER_LANG['extension_missing'] = '拡張機能が見つかりません: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Georgian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP შეცდომა: ავტორიზაცია შეუძლებელია.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP შეცდომა: SMTP სერვერთან დაკავშირება შეუძლებელია.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP შეცდომა: მონაცემები არ იქნა მიღებული.'; | ||
12 | -$PHPMAILER_LANG['encoding'] = 'კოდირების უცნობი ტიპი: '; | ||
13 | -$PHPMAILER_LANG['execute'] = 'შეუძლებელია შემდეგი ბრძანების შესრულება: '; | ||
14 | -$PHPMAILER_LANG['file_access'] = 'შეუძლებელია წვდომა ფაილთან: '; | ||
15 | -$PHPMAILER_LANG['file_open'] = 'ფაილური სისტემის შეცდომა: არ იხსნება ფაილი: '; | ||
16 | -$PHPMAILER_LANG['from_failed'] = 'გამგზავნის არასწორი მისამართი: '; | ||
17 | -$PHPMAILER_LANG['instantiate'] = 'mail ფუნქციის გაშვება ვერ ხერხდება.'; | ||
18 | -$PHPMAILER_LANG['provide_address'] = 'გთხოვთ მიუთითოთ ერთი ადრესატის e-mail მისამართი მაინც.'; | ||
19 | -$PHPMAILER_LANG['mailer_not_supported'] = ' - საფოსტო სერვერის მხარდაჭერა არ არის.'; | ||
20 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP შეცდომა: შემდეგ მისამართებზე გაგზავნა ვერ მოხერხდა: '; | ||
21 | -$PHPMAILER_LANG['empty_message'] = 'შეტყობინება ცარიელია'; | ||
22 | -$PHPMAILER_LANG['invalid_address'] = 'არ გაიგზავნა, e-mail მისამართის არასწორი ფორმატი: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'ხელმოწერის შეცდომა: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'შეცდომა SMTP სერვერთან დაკავშირებისას'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP სერვერის შეცდომა: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'შეუძლებელია შემდეგი ცვლადის შექმნა ან შეცვლა: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'ბიბლიოთეკა არ არსებობს: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Korean PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author ChalkPE <amato0617@gmail.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP 오류: 인증할 수 없습니다.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP 오류: SMTP 호스트에 접속할 수 없습니다.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 오류: 데이터가 받아들여지지 않았습니다.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = '메세지 내용이 없습니다'; | ||
13 | -$PHPMAILER_LANG['encoding'] = '알 수 없는 인코딩: '; | ||
14 | -$PHPMAILER_LANG['execute'] = '실행 불가: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = '파일 접근 불가: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = '파일 오류: 파일을 열 수 없습니다: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = '다음 From 주소에서 오류가 발생했습니다: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'mail 함수를 인스턴스화할 수 없습니다'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = '잘못된 주소: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' 메일러는 지원되지 않습니다.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = '적어도 한 개 이상의 수신자 메일 주소를 제공해야 합니다.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP 오류: 다음 수신자에서 오류가 발생했습니다: '; | ||
23 | -$PHPMAILER_LANG['signing'] = '서명 오류: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 연결을 실패하였습니다.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP 서버 오류: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = '변수 설정 및 초기화 불가: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = '확장자 없음: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Lithuanian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Dainius Kaupaitis <dk@sum.lt> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP klaida: autentifikacija nepavyko.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP klaida: nepavyksta prisijungti prie SMTP stoties.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP klaida: duomenys nepriimti.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Laiško turinys tuščias'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Neatpažinta koduotė: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Nepavyko įvykdyti komandos: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Byla nepasiekiama: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Bylos klaida: Nepavyksta atidaryti: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Neteisingas siuntėjo adresas: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Nepavyko paleisti mail funkcijos.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Neteisingas adresas: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' pašto stotis nepalaikoma.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Nurodykite bent vieną gavėjo adresą.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP klaida: nepavyko išsiųsti šiems gavėjams: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Prisijungimo klaida: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP susijungimo klaida'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP stoties klaida: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Nepavyko priskirti reikšmės kintamajam: '; | ||
27 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Latvian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Eduards M. <e@npd.lv> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP kļūda: Autorizācija neizdevās.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Kļūda: Nevar izveidot savienojumu ar SMTP serveri.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Kļūda: Nepieņem informāciju.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Ziņojuma teksts ir tukšs'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Neatpazīts kodējums: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Neizdevās izpildīt komandu: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Fails nav pieejams: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Faila kļūda: Nevar atvērt failu: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Nepareiza sūtītāja adrese: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Nevar palaist sūtīšanas funkciju.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Nepareiza adrese: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' sūtītājs netiek atbalstīts.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Lūdzu, norādiet vismaz vienu adresātu.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP kļūda: neizdevās nosūtīt šādiem saņēmējiem: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Autorizācijas kļūda: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP savienojuma kļūda'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP servera kļūda: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Nevar piešķirt mainīgā vērtību: '; | ||
27 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Malagasy PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Hackinet <piyushjha8164@gmail.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'Hadisoana SMTP: Tsy nahomby ny fanamarinana.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Tsy afaka mampifandray amin\'ny mpampiantrano SMTP.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP diso: tsy voarakitra ny angona.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Tsy misy ny votoaty mailaka.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Tsy fantatra encoding: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Tsy afaka manatanteraka ity baiko manaraka ity: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Tsy nahomby ny fidirana amin\'ity rakitra ity: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Hadisoana diso: Tsy afaka nanokatra ity file manaraka ity: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Ny adiresy iraka manaraka dia diso: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Tsy afaka nanomboka ny hetsika mail.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Tsy mety ny adiresy: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer tsy manohana.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Alefaso azafady iray adiresy iray farafahakeliny.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Tsy mety ireo mpanaraka ireto: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Error nandritra ny sonia:'; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Tsy nahomby ny fifandraisana tamin\'ny server SMTP.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'Fahadisoana tamin\'ny server SMTP: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Tsy azo atao ny mametraka na mamerina ny variable: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Tsy hita ny ampahany: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Mongolian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author @wispas | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'Алдаа SMTP: Холбогдож чадсангүй.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'Алдаа SMTP: SMTP- сервертэй холбогдож болохгүй байна.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'Алдаа SMTP: зөвшөөрөгдсөнгүй.'; | ||
12 | -$PHPMAILER_LANG['encoding'] = 'Тодорхойгүй кодчилол: '; | ||
13 | -$PHPMAILER_LANG['execute'] = 'Коммандыг гүйцэтгэх боломжгүй байна: '; | ||
14 | -$PHPMAILER_LANG['file_access'] = 'Файлд хандах боломжгүй байна: '; | ||
15 | -$PHPMAILER_LANG['file_open'] = 'Файлын алдаа: файлыг нээх боломжгүй байна: '; | ||
16 | -$PHPMAILER_LANG['from_failed'] = 'Илгээгчийн хаяг буруу байна: '; | ||
17 | -$PHPMAILER_LANG['instantiate'] = 'Mail () функцийг ажиллуулах боломжгүй байна.'; | ||
18 | -$PHPMAILER_LANG['provide_address'] = 'Хүлээн авагчийн имэйл хаягийг оруулна уу.'; | ||
19 | -$PHPMAILER_LANG['mailer_not_supported'] = ' — мэйл серверийг дэмжсэнгүй.'; | ||
20 | -$PHPMAILER_LANG['recipients_failed'] = 'Алдаа SMTP: ийм хаягийг илгээж чадсангүй: '; | ||
21 | -$PHPMAILER_LANG['empty_message'] = 'Хоосон мессэж'; | ||
22 | -$PHPMAILER_LANG['invalid_address'] = 'И-Мэйл буруу форматтай тул илгээх боломжгүй: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Гарын үсгийн алдаа: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP сервертэй холбогдоход алдаа гарлаа'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP серверийн алдаа: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Хувьсагчийг тохируулах эсвэл дахин тохируулах боломжгүй байна: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Өргөтгөл байхгүй: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Malaysian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Nawawi Jamili <nawawi@rutweb.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'Ralat SMTP: Tidak dapat pengesahan.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'Ralat SMTP: Tidak dapat menghubungi hos pelayan SMTP.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'Ralat SMTP: Data tidak diterima oleh pelayan.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Tiada isi untuk mesej'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Pengekodan tidak diketahui: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Tidak dapat melaksanakan: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses fail: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Ralat Fail: Tidak dapat membuka fail: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Berikut merupakan ralat dari alamat e-mel: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Tidak dapat memberi contoh fungsi e-mel.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Alamat emel tidak sah: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' jenis penghantar emel tidak disokong.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Anda perlu menyediakan sekurang-kurangnya satu alamat e-mel penerima.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'Ralat SMTP: Penerima e-mel berikut telah gagal: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Ralat pada tanda tangan: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() telah gagal.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'Ralat pada pelayan SMTP: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Tidak boleh menetapkan atau menetapkan semula pembolehubah: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Sambungan hilang: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Norwegian Bokmål PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - */ | ||
7 | - | ||
8 | -$PHPMAILER_LANG['authenticate'] = 'SMTP Feil: Kunne ikke autentisere.'; | ||
9 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Feil: Kunne ikke koble til SMTP tjener.'; | ||
10 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Feil: Datainnhold ikke akseptert.'; | ||
11 | -$PHPMAILER_LANG['empty_message'] = 'Meldingsinnhold mangler'; | ||
12 | -$PHPMAILER_LANG['encoding'] = 'Ukjent koding: '; | ||
13 | -$PHPMAILER_LANG['execute'] = 'Kunne ikke utføre: '; | ||
14 | -$PHPMAILER_LANG['file_access'] = 'Får ikke tilgang til filen: '; | ||
15 | -$PHPMAILER_LANG['file_open'] = 'Fil Feil: Kunne ikke åpne filen: '; | ||
16 | -$PHPMAILER_LANG['from_failed'] = 'Følgende Frå adresse feilet: '; | ||
17 | -$PHPMAILER_LANG['instantiate'] = 'Kunne ikke initialisere post funksjon.'; | ||
18 | -$PHPMAILER_LANG['invalid_address'] = 'Ugyldig adresse: '; | ||
19 | -$PHPMAILER_LANG['mailer_not_supported'] = ' sender er ikke støttet.'; | ||
20 | -$PHPMAILER_LANG['provide_address'] = 'Du må opppgi minst en mottakeradresse.'; | ||
21 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Feil: Følgende mottakeradresse feilet: '; | ||
22 | -$PHPMAILER_LANG['signing'] = 'Signering Feil: '; | ||
23 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP connect() feilet.'; | ||
24 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP server feil: '; | ||
25 | -$PHPMAILER_LANG['variable_set'] = 'Kan ikke skrive eller omskrive variabel: '; | ||
26 | -$PHPMAILER_LANG['extension_missing'] = 'Utvidelse mangler: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Dutch PHPMailer language file: refer to PHPMailer.php for definitive list. | ||
5 | - * @package PHPMailer | ||
6 | - * @author Tuxion <team@tuxion.nl> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP-fout: authenticatie mislukt.'; | ||
10 | -$PHPMAILER_LANG['buggy_php'] = 'PHP versie gededecteerd die onderhavig is aan een bug die kan resulteren in gecorrumpeerde berichten. Om dit te voorkomen, gebruik SMTP voor het verzenden van berichten, zet de mail.add_x_header optie in uw php.ini file uit, gebruik MacOS of Linux, of pas de gebruikte PHP versie aan naar versie 7.0.17+ or 7.1.3+.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon niet verbinden met SMTP-host.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data niet geaccepteerd.'; | ||
13 | -$PHPMAILER_LANG['empty_message'] = 'Berichttekst is leeg'; | ||
14 | -$PHPMAILER_LANG['encoding'] = 'Onbekende codering: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'Kon niet uitvoeren: '; | ||
16 | -$PHPMAILER_LANG['extension_missing'] = 'Extensie afwezig: '; | ||
17 | -$PHPMAILER_LANG['file_access'] = 'Kreeg geen toegang tot bestand: '; | ||
18 | -$PHPMAILER_LANG['file_open'] = 'Bestandsfout: kon bestand niet openen: '; | ||
19 | -$PHPMAILER_LANG['from_failed'] = 'Het volgende afzendersadres is mislukt: '; | ||
20 | -$PHPMAILER_LANG['instantiate'] = 'Kon mailfunctie niet initialiseren.'; | ||
21 | -$PHPMAILER_LANG['invalid_address'] = 'Ongeldig adres: '; | ||
22 | -$PHPMAILER_LANG['invalid_header'] = 'Ongeldige header naam of waarde'; | ||
23 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Ongeldige hostentry: '; | ||
24 | -$PHPMAILER_LANG['invalid_host'] = 'Ongeldige host: '; | ||
25 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wordt niet ondersteund.'; | ||
26 | -$PHPMAILER_LANG['provide_address'] = 'Er moet minstens één ontvanger worden opgegeven.'; | ||
27 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: de volgende ontvangers zijn mislukt: '; | ||
28 | -$PHPMAILER_LANG['signing'] = 'Signeerfout: '; | ||
29 | -$PHPMAILER_LANG['smtp_code'] = 'SMTP code: '; | ||
30 | -$PHPMAILER_LANG['smtp_code_ex'] = 'Aanvullende SMTP informatie: '; | ||
31 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Verbinding mislukt.'; | ||
32 | -$PHPMAILER_LANG['smtp_detail'] = 'Detail: '; | ||
33 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfout: '; | ||
34 | -$PHPMAILER_LANG['variable_set'] = 'Kan de volgende variabele niet instellen of resetten: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Polish PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - */ | ||
7 | - | ||
8 | -$PHPMAILER_LANG['authenticate'] = 'Błąd SMTP: Nie można przeprowadzić uwierzytelnienia.'; | ||
9 | -$PHPMAILER_LANG['connect_host'] = 'Błąd SMTP: Nie można połączyć się z wybranym hostem.'; | ||
10 | -$PHPMAILER_LANG['data_not_accepted'] = 'Błąd SMTP: Dane nie zostały przyjęte.'; | ||
11 | -$PHPMAILER_LANG['empty_message'] = 'Wiadomość jest pusta.'; | ||
12 | -$PHPMAILER_LANG['encoding'] = 'Błędny sposób kodowania znaków: '; | ||
13 | -$PHPMAILER_LANG['execute'] = 'Nie można uruchomić: '; | ||
14 | -$PHPMAILER_LANG['file_access'] = 'Brak dostępu do pliku: '; | ||
15 | -$PHPMAILER_LANG['file_open'] = 'Nie można otworzyć pliku: '; | ||
16 | -$PHPMAILER_LANG['from_failed'] = 'Następujący adres nadawcy jest nieprawidłowy lub nie istnieje: '; | ||
17 | -$PHPMAILER_LANG['instantiate'] = 'Nie można wywołać funkcji mail(). Sprawdź konfigurację serwera.'; | ||
18 | -$PHPMAILER_LANG['invalid_address'] = 'Nie można wysłać wiadomości, ' . 'następujący adres odbiorcy jest nieprawidłowy lub nie istnieje: '; | ||
19 | -$PHPMAILER_LANG['provide_address'] = 'Należy podać prawidłowy adres email odbiorcy.'; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = 'Wybrana metoda wysyłki wiadomości nie jest obsługiwana.'; | ||
21 | -$PHPMAILER_LANG['recipients_failed'] = 'Błąd SMTP: Następujący odbiorcy są nieprawidłowi lub nie istnieją: '; | ||
22 | -$PHPMAILER_LANG['signing'] = 'Błąd podpisywania wiadomości: '; | ||
23 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Wywołanie funkcji SMTP Connect() zostało zakończone niepowodzeniem.'; | ||
24 | -$PHPMAILER_LANG['smtp_error'] = 'Błąd SMTP: '; | ||
25 | -$PHPMAILER_LANG['variable_set'] = 'Nie można ustawić lub zmodyfikować zmiennej: '; | ||
26 | -$PHPMAILER_LANG['extension_missing'] = 'Brakujące rozszerzenie: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Portuguese (European) PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Jonadabe <jonadabe@hotmail.com> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'Erro do SMTP: Não foi possível realizar a autenticação.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'Erro do SMTP: Não foi possível realizar ligação com o servidor SMTP.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'Erro do SMTP: Os dados foram rejeitados.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'A mensagem no e-mail está vazia.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Não foi possível aceder o ficheiro: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Abertura do ficheiro: Não foi possível abrir o ficheiro: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Ocorreram falhas nos endereços dos seguintes remententes: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Não foi possível iniciar uma instância da função mail.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Não foi enviado nenhum e-mail para o endereço de e-mail inválido: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Tem de fornecer pelo menos um endereço como destinatário do e-mail.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'Erro do SMTP: O endereço do seguinte destinatário falhou: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Erro ao assinar: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Extensão em falta: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Brazilian Portuguese PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Paulo Henrique Garcia <paulo@controllerweb.com.br> | ||
7 | - * @author Lucas Guimarães <lucas@lucasguimaraes.com> | ||
8 | - * @author Phelipe Alves <phelipealvesdesouza@gmail.com> | ||
9 | - * @author Fabio Beneditto <fabiobeneditto@gmail.com> | ||
10 | - * @author Geidson Benício Coelho <geidsonc@gmail.com> | ||
11 | - */ | ||
12 | - | ||
13 | -$PHPMAILER_LANG['authenticate'] = 'Erro de SMTP: Não foi possível autenticar.'; | ||
14 | -$PHPMAILER_LANG['buggy_php'] = 'Sua versão do PHP é afetada por um bug que por resultar em messagens corrompidas. Para corrigir, mude para enviar usando SMTP, desative a opção mail.add_x_header em seu php.ini, mude para MacOS ou Linux, ou atualize seu PHP para versão 7.0.17+ ou 7.1.3+ '; | ||
15 | -$PHPMAILER_LANG['connect_host'] = 'Erro de SMTP: Não foi possível conectar ao servidor SMTP.'; | ||
16 | -$PHPMAILER_LANG['data_not_accepted'] = 'Erro de SMTP: Dados rejeitados.'; | ||
17 | -$PHPMAILER_LANG['empty_message'] = 'Mensagem vazia'; | ||
18 | -$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; | ||
19 | -$PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; | ||
20 | -$PHPMAILER_LANG['extension_missing'] = 'Extensão não existe: '; | ||
21 | -$PHPMAILER_LANG['file_access'] = 'Não foi possível acessar o arquivo: '; | ||
22 | -$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: Não foi possível abrir o arquivo: '; | ||
23 | -$PHPMAILER_LANG['from_failed'] = 'Os seguintes remetentes falharam: '; | ||
24 | -$PHPMAILER_LANG['instantiate'] = 'Não foi possível instanciar a função mail.'; | ||
25 | -$PHPMAILER_LANG['invalid_address'] = 'Endereço de e-mail inválido: '; | ||
26 | -$PHPMAILER_LANG['invalid_header'] = 'Nome ou valor de cabeçalho inválido'; | ||
27 | -$PHPMAILER_LANG['invalid_hostentry'] = 'hostentry inválido: '; | ||
28 | -$PHPMAILER_LANG['invalid_host'] = 'host inválido: '; | ||
29 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.'; | ||
30 | -$PHPMAILER_LANG['provide_address'] = 'Você deve informar pelo menos um destinatário.'; | ||
31 | -$PHPMAILER_LANG['recipients_failed'] = 'Erro de SMTP: Os seguintes destinatários falharam: '; | ||
32 | -$PHPMAILER_LANG['signing'] = 'Erro de Assinatura: '; | ||
33 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.'; | ||
34 | -$PHPMAILER_LANG['smtp_code'] = 'Código do servidor SMTP: '; | ||
35 | -$PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: '; | ||
36 | -$PHPMAILER_LANG['smtp_code_ex'] = 'Informações adicionais do servidor SMTP: '; | ||
37 | -$PHPMAILER_LANG['smtp_detail'] = 'Detalhes do servidor SMTP: '; | ||
38 | -$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Romanian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - */ | ||
7 | - | ||
8 | -$PHPMAILER_LANG['authenticate'] = 'Eroare SMTP: Autentificarea a eșuat.'; | ||
9 | -$PHPMAILER_LANG['buggy_php'] = 'Versiunea instalată de PHP este afectată de o problemă care poate duce la coruperea mesajelor Pentru a preveni această problemă, folosiți SMTP, dezactivați opțiunea mail.add_x_header din php.ini, folosiți MacOS/Linux sau actualizați versiunea de PHP la 7.0.17+ sau 7.1.3+.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'Eroare SMTP: Conectarea la serverul SMTP a eșuat.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'Eroare SMTP: Datele nu au fost acceptate.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Mesajul este gol.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Encodare necunoscută: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Nu se poate executa următoarea comandă: '; | ||
15 | -$PHPMAILER_LANG['extension_missing'] = 'Lipsește extensia: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'Nu se poate accesa următorul fișier: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'Eroare fișier: Nu se poate deschide următorul fișier: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'Următoarele adrese From au dat eroare: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'Funcția mail nu a putut fi inițializată.'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'Adresa de email nu este validă: '; | ||
21 | -$PHPMAILER_LANG['invalid_header'] = 'Numele sau valoarea header-ului nu este validă: '; | ||
22 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Hostentry invalid: '; | ||
23 | -$PHPMAILER_LANG['invalid_host'] = 'Host invalid: '; | ||
24 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nu este suportat.'; | ||
25 | -$PHPMAILER_LANG['provide_address'] = 'Trebuie să adăugați cel puțin o adresă de email.'; | ||
26 | -$PHPMAILER_LANG['recipients_failed'] = 'Eroare SMTP: Următoarele adrese de email au eșuat: '; | ||
27 | -$PHPMAILER_LANG['signing'] = 'A aparut o problemă la semnarea emailului. '; | ||
28 | -$PHPMAILER_LANG['smtp_code'] = 'Cod SMTP: '; | ||
29 | -$PHPMAILER_LANG['smtp_code_ex'] = 'Informații SMTP adiționale: '; | ||
30 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Conectarea la serverul SMTP a eșuat.'; | ||
31 | -$PHPMAILER_LANG['smtp_detail'] = 'Detalii SMTP: '; | ||
32 | -$PHPMAILER_LANG['smtp_error'] = 'Eroare server SMTP: '; | ||
33 | -$PHPMAILER_LANG['variable_set'] = 'Nu se poate seta/reseta variabila. '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Russian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Alexey Chumakov <alex@chumakov.ru> | ||
7 | - * @author Foster Snowhill <i18n@forstwoof.ru> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'Ошибка SMTP: ошибка авторизации.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'Ошибка SMTP: не удается подключиться к SMTP-серверу.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'Ошибка SMTP: данные не приняты.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Неизвестная кодировка: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Невозможно выполнить команду: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Нет доступа к файлу: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Файловая ошибка: не удаётся открыть файл: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Неверный адрес отправителя: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Невозможно запустить функцию mail().'; | ||
19 | -$PHPMAILER_LANG['provide_address'] = 'Пожалуйста, введите хотя бы один email-адрес получателя.'; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' — почтовый сервер не поддерживается.'; | ||
21 | -$PHPMAILER_LANG['recipients_failed'] = 'Ошибка SMTP: не удалась отправка таким адресатам: '; | ||
22 | -$PHPMAILER_LANG['empty_message'] = 'Пустое сообщение'; | ||
23 | -$PHPMAILER_LANG['invalid_address'] = 'Не отправлено из-за неправильного формата email-адреса: '; | ||
24 | -$PHPMAILER_LANG['signing'] = 'Ошибка подписи: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Ошибка соединения с SMTP-сервером'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'Ошибка SMTP-сервера: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'Невозможно установить или сбросить переменную: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Расширение отсутствует: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Slovak PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Michal Tinka <michaltinka@gmail.com> | ||
7 | - * @author Peter Orlický <pcmanik91@gmail.com> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Chyba autentifikácie.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Nebolo možné nadviazať spojenie so SMTP serverom.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dáta neboli prijaté'; | ||
13 | -$PHPMAILER_LANG['empty_message'] = 'Prázdne telo správy.'; | ||
14 | -$PHPMAILER_LANG['encoding'] = 'Neznáme kódovanie: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'Nedá sa vykonať: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'Súbor nebol nájdený: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'File Error: Súbor sa otvoriť pre čítanie: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'Následujúca adresa From je nesprávna: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'Nedá sa vytvoriť inštancia emailovej funkcie.'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'Neodoslané, emailová adresa je nesprávna: '; | ||
21 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Záznam hostiteľa je nesprávny: '; | ||
22 | -$PHPMAILER_LANG['invalid_host'] = 'Hostiteľ je nesprávny: '; | ||
23 | -$PHPMAILER_LANG['mailer_not_supported'] = ' emailový klient nieje podporovaný.'; | ||
24 | -$PHPMAILER_LANG['provide_address'] = 'Musíte zadať aspoň jednu emailovú adresu príjemcu.'; | ||
25 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Adresy príjemcov niesu správne '; | ||
26 | -$PHPMAILER_LANG['signing'] = 'Chyba prihlasovania: '; | ||
27 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() zlyhalo.'; | ||
28 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP chyba serveru: '; | ||
29 | -$PHPMAILER_LANG['variable_set'] = 'Nemožno nastaviť alebo resetovať premennú: '; | ||
30 | -$PHPMAILER_LANG['extension_missing'] = 'Chýba rozšírenie: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Slovene PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Klemen Tušar <techouse@gmail.com> | ||
7 | - * @author Filip Š <projects@filips.si> | ||
8 | - * @author Blaž Oražem <blaz@orazem.si> | ||
9 | - */ | ||
10 | - | ||
11 | -$PHPMAILER_LANG['authenticate'] = 'SMTP napaka: Avtentikacija ni uspela.'; | ||
12 | -$PHPMAILER_LANG['buggy_php'] = 'Na vašo PHP različico vpliva napaka, ki lahko povzroči poškodovana sporočila. Če želite težavo odpraviti, preklopite na pošiljanje prek SMTP, onemogočite možnost mail.add_x_header v vaši php.ini datoteki, preklopite na MacOS ali Linux, ali nadgradite vašo PHP zaličico na 7.0.17+ ali 7.1.3+.'; | ||
13 | -$PHPMAILER_LANG['connect_host'] = 'SMTP napaka: Vzpostavljanje povezave s SMTP gostiteljem ni uspelo.'; | ||
14 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP napaka: Strežnik zavrača podatke.'; | ||
15 | -$PHPMAILER_LANG['empty_message'] = 'E-poštno sporočilo nima vsebine.'; | ||
16 | -$PHPMAILER_LANG['encoding'] = 'Nepoznan tip kodiranja: '; | ||
17 | -$PHPMAILER_LANG['execute'] = 'Operacija ni uspela: '; | ||
18 | -$PHPMAILER_LANG['extension_missing'] = 'Manjkajoča razširitev: '; | ||
19 | -$PHPMAILER_LANG['file_access'] = 'Nimam dostopa do datoteke: '; | ||
20 | -$PHPMAILER_LANG['file_open'] = 'Ne morem odpreti datoteke: '; | ||
21 | -$PHPMAILER_LANG['from_failed'] = 'Neveljaven e-naslov pošiljatelja: '; | ||
22 | -$PHPMAILER_LANG['instantiate'] = 'Ne morem inicializirati mail funkcije.'; | ||
23 | -$PHPMAILER_LANG['invalid_address'] = 'E-poštno sporočilo ni bilo poslano. E-naslov je neveljaven: '; | ||
24 | -$PHPMAILER_LANG['invalid_header'] = 'Neveljavno ime ali vrednost glave'; | ||
25 | -$PHPMAILER_LANG['invalid_hostentry'] = 'Neveljaven vnos gostitelja: '; | ||
26 | -$PHPMAILER_LANG['invalid_host'] = 'Neveljaven gostitelj: '; | ||
27 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer ni podprt.'; | ||
28 | -$PHPMAILER_LANG['provide_address'] = 'Prosimo, vnesite vsaj enega naslovnika.'; | ||
29 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP napaka: Sledeči naslovniki so neveljavni: '; | ||
30 | -$PHPMAILER_LANG['signing'] = 'Napaka pri podpisovanju: '; | ||
31 | -$PHPMAILER_LANG['smtp_code'] = 'SMTP koda: '; | ||
32 | -$PHPMAILER_LANG['smtp_code_ex'] = 'Dodatne informacije o SMTP: '; | ||
33 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Ne morem vzpostaviti povezave s SMTP strežnikom.'; | ||
34 | -$PHPMAILER_LANG['smtp_detail'] = 'Podrobnosti: '; | ||
35 | -$PHPMAILER_LANG['smtp_error'] = 'Napaka SMTP strežnika: '; | ||
36 | -$PHPMAILER_LANG['variable_set'] = 'Ne morem nastaviti oz. ponastaviti spremenljivke: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Serbian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Александар Јевремовић <ajevremovic@gmail.com> | ||
7 | - * @author Miloš Milanović <mmilanovic016@gmail.com> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'SMTP грешка: аутентификација није успела.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'SMTP грешка: повезивање са SMTP сервером није успело.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: подаци нису прихваћени.'; | ||
13 | -$PHPMAILER_LANG['empty_message'] = 'Садржај поруке је празан.'; | ||
14 | -$PHPMAILER_LANG['encoding'] = 'Непознато кодирање: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'Није могуће извршити наредбу: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'Није могуће приступити датотеци: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'Није могуће отворити датотеку: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'SMTP грешка: слање са следећих адреса није успело: '; | ||
19 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: слање на следеће адресе није успело: '; | ||
20 | -$PHPMAILER_LANG['instantiate'] = 'Није могуће покренути mail функцију.'; | ||
21 | -$PHPMAILER_LANG['invalid_address'] = 'Порука није послата. Неисправна адреса: '; | ||
22 | -$PHPMAILER_LANG['mailer_not_supported'] = ' мејлер није подржан.'; | ||
23 | -$PHPMAILER_LANG['provide_address'] = 'Дефинишите бар једну адресу примаоца.'; | ||
24 | -$PHPMAILER_LANG['signing'] = 'Грешка приликом пријаве: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Повезивање са SMTP сервером није успело.'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'Грешка SMTP сервера: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'Није могуће задати нити ресетовати променљиву: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Недостаје проширење: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Serbian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Александар Јевремовић <ajevremovic@gmail.com> | ||
7 | - * @author Miloš Milanović <mmilanovic016@gmail.com> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'SMTP greška: autentifikacija nije uspela.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'SMTP greška: povezivanje sa SMTP serverom nije uspelo.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP greška: podaci nisu prihvaćeni.'; | ||
13 | -$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; | ||
14 | -$PHPMAILER_LANG['encoding'] = 'Nepoznato kodiranje: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'SMTP greška: slanje sa sledećih adresa nije uspelo: '; | ||
19 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP greška: slanje na sledeće adrese nije uspelo: '; | ||
20 | -$PHPMAILER_LANG['instantiate'] = 'Nije moguće pokrenuti mail funkciju.'; | ||
21 | -$PHPMAILER_LANG['invalid_address'] = 'Poruka nije poslata. Neispravna adresa: '; | ||
22 | -$PHPMAILER_LANG['mailer_not_supported'] = ' majler nije podržan.'; | ||
23 | -$PHPMAILER_LANG['provide_address'] = 'Definišite bar jednu adresu primaoca.'; | ||
24 | -$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Povezivanje sa SMTP serverom nije uspelo.'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'Greška SMTP servera: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'Nije moguće zadati niti resetovati promenljivu: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Swedish PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Johan Linnér <johan@linner.biz> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'SMTP fel: Kunde inte autentisera.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'SMTP fel: Kunde inte ansluta till SMTP-server.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fel: Data accepterades inte.'; | ||
12 | -//$PHPMAILER_LANG['empty_message'] = 'Message body empty'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Okänt encode-format: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Kunde inte köra: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Ingen åtkomst till fil: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Fil fel: Kunde inte öppna fil: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Följande avsändaradress är felaktig: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Kunde inte initiera e-postfunktion.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Felaktig adress: '; | ||
20 | -$PHPMAILER_LANG['provide_address'] = 'Du måste ange minst en mottagares e-postadress.'; | ||
21 | -$PHPMAILER_LANG['mailer_not_supported'] = ' mailer stöds inte.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP fel: Följande mottagare är felaktig: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Signeringsfel: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() misslyckades.'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP serverfel: '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Kunde inte definiera eller återställa variabel: '; | ||
27 | -$PHPMAILER_LANG['extension_missing'] = 'Tillägg ej tillgängligt: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Tagalog PHPMailer language file: refer to English translation for definitive list | ||
5 | - * | ||
6 | - * @package PHPMailer | ||
7 | - * @author Adriane Justine Tan <eidoriantan@gmail.com> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Hindi mapatotohanan.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Hindi makakonekta sa SMTP host.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Ang datos ay hindi naitanggap.'; | ||
13 | -$PHPMAILER_LANG['empty_message'] = 'Walang laman ang mensahe'; | ||
14 | -$PHPMAILER_LANG['encoding'] = 'Hindi alam ang encoding: '; | ||
15 | -$PHPMAILER_LANG['execute'] = 'Hindi maisasagawa: '; | ||
16 | -$PHPMAILER_LANG['file_access'] = 'Hindi ma-access ang file: '; | ||
17 | -$PHPMAILER_LANG['file_open'] = 'File Error: Hindi mabuksan ang file: '; | ||
18 | -$PHPMAILER_LANG['from_failed'] = 'Ang sumusunod na address ay nabigo: '; | ||
19 | -$PHPMAILER_LANG['instantiate'] = 'Hindi maisimulan ang instance ng mail function.'; | ||
20 | -$PHPMAILER_LANG['invalid_address'] = 'Hindi wasto ang address na naibigay: '; | ||
21 | -$PHPMAILER_LANG['mailer_not_supported'] = 'Ang mailer ay hindi suportado.'; | ||
22 | -$PHPMAILER_LANG['provide_address'] = 'Kailangan mong magbigay ng kahit isang email address na tatanggap.'; | ||
23 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Ang mga sumusunod na tatanggap ay nabigo: '; | ||
24 | -$PHPMAILER_LANG['signing'] = 'Hindi ma-sign: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Ang SMTP connect() ay nabigo.'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'Ang server ng SMTP ay nabigo: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'Hindi matatakda o ma-reset ang mga variables: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Nawawala ang extension: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Turkish PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Elçin Özel | ||
7 | - * @author Can Yılmaz | ||
8 | - * @author Mehmet Benlioğlu | ||
9 | - * @author @yasinaydin | ||
10 | - * @author Ogün Karakuş | ||
11 | - */ | ||
12 | - | ||
13 | -$PHPMAILER_LANG['authenticate'] = 'SMTP Hatası: Oturum açılamadı.'; | ||
14 | -$PHPMAILER_LANG['connect_host'] = 'SMTP Hatası: SMTP sunucusuna bağlanılamadı.'; | ||
15 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Hatası: Veri kabul edilmedi.'; | ||
16 | -$PHPMAILER_LANG['empty_message'] = 'Mesajın içeriği boş'; | ||
17 | -$PHPMAILER_LANG['encoding'] = 'Bilinmeyen karakter kodlama: '; | ||
18 | -$PHPMAILER_LANG['execute'] = 'Çalıştırılamadı: '; | ||
19 | -$PHPMAILER_LANG['file_access'] = 'Dosyaya erişilemedi: '; | ||
20 | -$PHPMAILER_LANG['file_open'] = 'Dosya Hatası: Dosya açılamadı: '; | ||
21 | -$PHPMAILER_LANG['from_failed'] = 'Belirtilen adreslere gönderme başarısız: '; | ||
22 | -$PHPMAILER_LANG['instantiate'] = 'Örnek e-posta fonksiyonu oluşturulamadı.'; | ||
23 | -$PHPMAILER_LANG['invalid_address'] = 'Geçersiz e-posta adresi: '; | ||
24 | -$PHPMAILER_LANG['mailer_not_supported'] = ' e-posta kütüphanesi desteklenmiyor.'; | ||
25 | -$PHPMAILER_LANG['provide_address'] = 'En az bir alıcı e-posta adresi belirtmelisiniz.'; | ||
26 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP Hatası: Belirtilen alıcılara ulaşılamadı: '; | ||
27 | -$PHPMAILER_LANG['signing'] = 'İmzalama hatası: '; | ||
28 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP connect() fonksiyonu başarısız.'; | ||
29 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP sunucu hatası: '; | ||
30 | -$PHPMAILER_LANG['variable_set'] = 'Değişken ayarlanamadı ya da sıfırlanamadı: '; | ||
31 | -$PHPMAILER_LANG['extension_missing'] = 'Eklenti bulunamadı: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Ukrainian PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author Yuriy Rudyy <yrudyy@prs.net.ua> | ||
7 | - * @fixed by Boris Yurchenko <boris@yurchenko.pp.ua> | ||
8 | - */ | ||
9 | - | ||
10 | -$PHPMAILER_LANG['authenticate'] = 'Помилка SMTP: помилка авторизації.'; | ||
11 | -$PHPMAILER_LANG['connect_host'] = 'Помилка SMTP: не вдається під\'єднатися до SMTP-серверу.'; | ||
12 | -$PHPMAILER_LANG['data_not_accepted'] = 'Помилка SMTP: дані не прийнято.'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Невідоме кодування: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Неможливо виконати команду: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Немає доступу до файлу: '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Помилка файлової системи: не вдається відкрити файл: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Невірна адреса відправника: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Неможливо запустити функцію mail().'; | ||
19 | -$PHPMAILER_LANG['provide_address'] = 'Будь ласка, введіть хоча б одну email-адресу отримувача.'; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' - поштовий сервер не підтримується.'; | ||
21 | -$PHPMAILER_LANG['recipients_failed'] = 'Помилка SMTP: не вдалося відправлення для таких отримувачів: '; | ||
22 | -$PHPMAILER_LANG['empty_message'] = 'Пусте повідомлення'; | ||
23 | -$PHPMAILER_LANG['invalid_address'] = 'Не відправлено через неправильний формат email-адреси: '; | ||
24 | -$PHPMAILER_LANG['signing'] = 'Помилка підпису: '; | ||
25 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Помилка з\'єднання з SMTP-сервером'; | ||
26 | -$PHPMAILER_LANG['smtp_error'] = 'Помилка SMTP-сервера: '; | ||
27 | -$PHPMAILER_LANG['variable_set'] = 'Неможливо встановити або скинути змінну: '; | ||
28 | -$PHPMAILER_LANG['extension_missing'] = 'Розширення відсутнє: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Vietnamese (Tiếng Việt) PHPMailer language file: refer to English translation for definitive list. | ||
5 | - * @package PHPMailer | ||
6 | - * @author VINADES.,JSC <contact@vinades.vn> | ||
7 | - */ | ||
8 | - | ||
9 | -$PHPMAILER_LANG['authenticate'] = 'Lỗi SMTP: Không thể xác thực.'; | ||
10 | -$PHPMAILER_LANG['connect_host'] = 'Lỗi SMTP: Không thể kết nối máy chủ SMTP.'; | ||
11 | -$PHPMAILER_LANG['data_not_accepted'] = 'Lỗi SMTP: Dữ liệu không được chấp nhận.'; | ||
12 | -$PHPMAILER_LANG['empty_message'] = 'Không có nội dung'; | ||
13 | -$PHPMAILER_LANG['encoding'] = 'Mã hóa không xác định: '; | ||
14 | -$PHPMAILER_LANG['execute'] = 'Không thực hiện được: '; | ||
15 | -$PHPMAILER_LANG['file_access'] = 'Không thể truy cập tệp tin '; | ||
16 | -$PHPMAILER_LANG['file_open'] = 'Lỗi Tập tin: Không thể mở tệp tin: '; | ||
17 | -$PHPMAILER_LANG['from_failed'] = 'Lỗi địa chỉ gửi đi: '; | ||
18 | -$PHPMAILER_LANG['instantiate'] = 'Không dùng được các hàm gửi thư.'; | ||
19 | -$PHPMAILER_LANG['invalid_address'] = 'Đại chỉ emai không đúng: '; | ||
20 | -$PHPMAILER_LANG['mailer_not_supported'] = ' trình gửi thư không được hỗ trợ.'; | ||
21 | -$PHPMAILER_LANG['provide_address'] = 'Bạn phải cung cấp ít nhất một địa chỉ người nhận.'; | ||
22 | -$PHPMAILER_LANG['recipients_failed'] = 'Lỗi SMTP: lỗi địa chỉ người nhận: '; | ||
23 | -$PHPMAILER_LANG['signing'] = 'Lỗi đăng nhập: '; | ||
24 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'Lỗi kết nối với SMTP'; | ||
25 | -$PHPMAILER_LANG['smtp_error'] = 'Lỗi máy chủ smtp '; | ||
26 | -$PHPMAILER_LANG['variable_set'] = 'Không thể thiết lập hoặc thiết lập lại biến: '; | ||
27 | -//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Traditional Chinese PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author liqwei <liqwei@liqwei.com> | ||
7 | - * @author Peter Dave Hello <@PeterDaveHello/> | ||
8 | - * @author Jason Chiang <xcojad@gmail.com> | ||
9 | - */ | ||
10 | - | ||
11 | -$PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登入失敗。'; | ||
12 | -$PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連線到 SMTP 主機。'; | ||
13 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:無法接受的資料。'; | ||
14 | -$PHPMAILER_LANG['empty_message'] = '郵件內容為空'; | ||
15 | -$PHPMAILER_LANG['encoding'] = '未知編碼: '; | ||
16 | -$PHPMAILER_LANG['execute'] = '無法執行:'; | ||
17 | -$PHPMAILER_LANG['file_access'] = '無法存取檔案:'; | ||
18 | -$PHPMAILER_LANG['file_open'] = '檔案錯誤:無法開啟檔案:'; | ||
19 | -$PHPMAILER_LANG['from_failed'] = '發送地址錯誤:'; | ||
20 | -$PHPMAILER_LANG['instantiate'] = '未知函數呼叫。'; | ||
21 | -$PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: '; | ||
22 | -$PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。'; | ||
23 | -$PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。'; | ||
24 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:以下收件人地址錯誤:'; | ||
25 | -$PHPMAILER_LANG['signing'] = '電子簽章錯誤: '; | ||
26 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 連線失敗'; | ||
27 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP 伺服器錯誤: '; | ||
28 | -$PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: '; | ||
29 | -$PHPMAILER_LANG['extension_missing'] = '遺失模組 Extension: '; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * Simplified Chinese PHPMailer language file: refer to English translation for definitive list | ||
5 | - * @package PHPMailer | ||
6 | - * @author liqwei <liqwei@liqwei.com> | ||
7 | - * @author young <masxy@foxmail.com> | ||
8 | - * @author Teddysun <i@teddysun.com> | ||
9 | - */ | ||
10 | - | ||
11 | -$PHPMAILER_LANG['authenticate'] = 'SMTP 错误:登录失败。'; | ||
12 | -$PHPMAILER_LANG['connect_host'] = 'SMTP 错误:无法连接到 SMTP 主机。'; | ||
13 | -$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误:数据不被接受。'; | ||
14 | -$PHPMAILER_LANG['empty_message'] = '邮件正文为空。'; | ||
15 | -$PHPMAILER_LANG['encoding'] = '未知编码:'; | ||
16 | -$PHPMAILER_LANG['execute'] = '无法执行:'; | ||
17 | -$PHPMAILER_LANG['file_access'] = '无法访问文件:'; | ||
18 | -$PHPMAILER_LANG['file_open'] = '文件错误:无法打开文件:'; | ||
19 | -$PHPMAILER_LANG['from_failed'] = '发送地址错误:'; | ||
20 | -$PHPMAILER_LANG['instantiate'] = '未知函数调用。'; | ||
21 | -$PHPMAILER_LANG['invalid_address'] = '发送失败,电子邮箱地址是无效的:'; | ||
22 | -$PHPMAILER_LANG['mailer_not_supported'] = '发信客户端不被支持。'; | ||
23 | -$PHPMAILER_LANG['provide_address'] = '必须提供至少一个收件人地址。'; | ||
24 | -$PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误:收件人地址错误:'; | ||
25 | -$PHPMAILER_LANG['signing'] = '登录失败:'; | ||
26 | -$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP服务器连接失败。'; | ||
27 | -$PHPMAILER_LANG['smtp_error'] = 'SMTP服务器出错:'; | ||
28 | -$PHPMAILER_LANG['variable_set'] = '无法设置或重置变量:'; | ||
29 | -$PHPMAILER_LANG['extension_missing'] = '丢失模块 Extension:'; |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * PHPMailer Exception class. | ||
5 | - * PHP Version 5.5. | ||
6 | - * | ||
7 | - * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project | ||
8 | - * | ||
9 | - * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> | ||
10 | - * @author Jim Jagielski (jimjag) <jimjag@gmail.com> | ||
11 | - * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net> | ||
12 | - * @author Brent R. Matzelle (original founder) | ||
13 | - * @copyright 2012 - 2020 Marcus Bointon | ||
14 | - * @copyright 2010 - 2012 Jim Jagielski | ||
15 | - * @copyright 2004 - 2009 Andy Prevost | ||
16 | - * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License | ||
17 | - * @note This program is distributed in the hope that it will be useful - WITHOUT | ||
18 | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
19 | - * FITNESS FOR A PARTICULAR PURPOSE. | ||
20 | - */ | ||
21 | - | ||
22 | -namespace PHPMailer\PHPMailer; | ||
23 | - | ||
24 | -/** | ||
25 | - * PHPMailer exception handler. | ||
26 | - * | ||
27 | - * @author Marcus Bointon <phpmailer@synchromedia.co.uk> | ||
28 | - */ | ||
29 | -class Exception extends \Exception | ||
30 | -{ | ||
31 | - /** | ||
32 | - * Prettify error message output. | ||
33 | - * | ||
34 | - * @return string | ||
35 | - */ | ||
36 | - public function errorMessage() | ||
37 | - { | ||
38 | - return '<strong>' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "</strong><br />\n"; | ||
39 | - } | ||
40 | -} |
vendor/phpmailer/phpmailer/src/OAuth.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * PHPMailer - PHP email creation and transport class. | ||
5 | - * PHP Version 5.5. | ||
6 | - * | ||
7 | - * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project | ||
8 | - * | ||
9 | - * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> | ||
10 | - * @author Jim Jagielski (jimjag) <jimjag@gmail.com> | ||
11 | - * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net> | ||
12 | - * @author Brent R. Matzelle (original founder) | ||
13 | - * @copyright 2012 - 2020 Marcus Bointon | ||
14 | - * @copyright 2010 - 2012 Jim Jagielski | ||
15 | - * @copyright 2004 - 2009 Andy Prevost | ||
16 | - * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License | ||
17 | - * @note This program is distributed in the hope that it will be useful - WITHOUT | ||
18 | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
19 | - * FITNESS FOR A PARTICULAR PURPOSE. | ||
20 | - */ | ||
21 | - | ||
22 | -namespace PHPMailer\PHPMailer; | ||
23 | - | ||
24 | -use League\OAuth2\Client\Grant\RefreshToken; | ||
25 | -use League\OAuth2\Client\Provider\AbstractProvider; | ||
26 | -use League\OAuth2\Client\Token\AccessToken; | ||
27 | - | ||
28 | -/** | ||
29 | - * OAuth - OAuth2 authentication wrapper class. | ||
30 | - * Uses the oauth2-client package from the League of Extraordinary Packages. | ||
31 | - * | ||
32 | - * @see http://oauth2-client.thephpleague.com | ||
33 | - * | ||
34 | - * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> | ||
35 | - */ | ||
36 | -class OAuth implements OAuthTokenProvider | ||
37 | -{ | ||
38 | - /** | ||
39 | - * An instance of the League OAuth Client Provider. | ||
40 | - * | ||
41 | - * @var AbstractProvider | ||
42 | - */ | ||
43 | - protected $provider; | ||
44 | - | ||
45 | - /** | ||
46 | - * The current OAuth access token. | ||
47 | - * | ||
48 | - * @var AccessToken | ||
49 | - */ | ||
50 | - protected $oauthToken; | ||
51 | - | ||
52 | - /** | ||
53 | - * The user's email address, usually used as the login ID | ||
54 | - * and also the from address when sending email. | ||
55 | - * | ||
56 | - * @var string | ||
57 | - */ | ||
58 | - protected $oauthUserEmail = ''; | ||
59 | - | ||
60 | - /** | ||
61 | - * The client secret, generated in the app definition of the service you're connecting to. | ||
62 | - * | ||
63 | - * @var string | ||
64 | - */ | ||
65 | - protected $oauthClientSecret = ''; | ||
66 | - | ||
67 | - /** | ||
68 | - * The client ID, generated in the app definition of the service you're connecting to. | ||
69 | - * | ||
70 | - * @var string | ||
71 | - */ | ||
72 | - protected $oauthClientId = ''; | ||
73 | - | ||
74 | - /** | ||
75 | - * The refresh token, used to obtain new AccessTokens. | ||
76 | - * | ||
77 | - * @var string | ||
78 | - */ | ||
79 | - protected $oauthRefreshToken = ''; | ||
80 | - | ||
81 | - /** | ||
82 | - * OAuth constructor. | ||
83 | - * | ||
84 | - * @param array $options Associative array containing | ||
85 | - * `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements | ||
86 | - */ | ||
87 | - public function __construct($options) | ||
88 | - { | ||
89 | - $this->provider = $options['provider']; | ||
90 | - $this->oauthUserEmail = $options['userName']; | ||
91 | - $this->oauthClientSecret = $options['clientSecret']; | ||
92 | - $this->oauthClientId = $options['clientId']; | ||
93 | - $this->oauthRefreshToken = $options['refreshToken']; | ||
94 | - } | ||
95 | - | ||
96 | - /** | ||
97 | - * Get a new RefreshToken. | ||
98 | - * | ||
99 | - * @return RefreshToken | ||
100 | - */ | ||
101 | - protected function getGrant() | ||
102 | - { | ||
103 | - return new RefreshToken(); | ||
104 | - } | ||
105 | - | ||
106 | - /** | ||
107 | - * Get a new AccessToken. | ||
108 | - * | ||
109 | - * @return AccessToken | ||
110 | - */ | ||
111 | - protected function getToken() | ||
112 | - { | ||
113 | - return $this->provider->getAccessToken( | ||
114 | - $this->getGrant(), | ||
115 | - ['refresh_token' => $this->oauthRefreshToken] | ||
116 | - ); | ||
117 | - } | ||
118 | - | ||
119 | - /** | ||
120 | - * Generate a base64-encoded OAuth token. | ||
121 | - * | ||
122 | - * @return string | ||
123 | - */ | ||
124 | - public function getOauth64() | ||
125 | - { | ||
126 | - //Get a new token if it's not available or has expired | ||
127 | - if (null === $this->oauthToken || $this->oauthToken->hasExpired()) { | ||
128 | - $this->oauthToken = $this->getToken(); | ||
129 | - } | ||
130 | - | ||
131 | - return base64_encode( | ||
132 | - 'user=' . | ||
133 | - $this->oauthUserEmail . | ||
134 | - "\001auth=Bearer " . | ||
135 | - $this->oauthToken . | ||
136 | - "\001\001" | ||
137 | - ); | ||
138 | - } | ||
139 | -} |
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * PHPMailer - PHP email creation and transport class. | ||
5 | - * PHP Version 5.5. | ||
6 | - * | ||
7 | - * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project | ||
8 | - * | ||
9 | - * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> | ||
10 | - * @author Jim Jagielski (jimjag) <jimjag@gmail.com> | ||
11 | - * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net> | ||
12 | - * @author Brent R. Matzelle (original founder) | ||
13 | - * @copyright 2012 - 2020 Marcus Bointon | ||
14 | - * @copyright 2010 - 2012 Jim Jagielski | ||
15 | - * @copyright 2004 - 2009 Andy Prevost | ||
16 | - * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License | ||
17 | - * @note This program is distributed in the hope that it will be useful - WITHOUT | ||
18 | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
19 | - * FITNESS FOR A PARTICULAR PURPOSE. | ||
20 | - */ | ||
21 | - | ||
22 | -namespace PHPMailer\PHPMailer; | ||
23 | - | ||
24 | -/** | ||
25 | - * OAuthTokenProvider - OAuth2 token provider interface. | ||
26 | - * Provides base64 encoded OAuth2 auth strings for SMTP authentication. | ||
27 | - * | ||
28 | - * @see OAuth | ||
29 | - * @see SMTP::authenticate() | ||
30 | - * | ||
31 | - * @author Peter Scopes (pdscopes) | ||
32 | - * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> | ||
33 | - */ | ||
34 | -interface OAuthTokenProvider | ||
35 | -{ | ||
36 | - /** | ||
37 | - * Generate a base64-encoded OAuth token ensuring that the access token has not expired. | ||
38 | - * The string to be base 64 encoded should be in the form: | ||
39 | - * "user=<user_email_address>\001auth=Bearer <access_token>\001\001" | ||
40 | - * | ||
41 | - * @return string | ||
42 | - */ | ||
43 | - public function getOauth64(); | ||
44 | -} |
此 diff 太大无法显示。
vendor/phpmailer/phpmailer/src/POP3.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * PHPMailer POP-Before-SMTP Authentication Class. | ||
5 | - * PHP Version 5.5. | ||
6 | - * | ||
7 | - * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project | ||
8 | - * | ||
9 | - * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> | ||
10 | - * @author Jim Jagielski (jimjag) <jimjag@gmail.com> | ||
11 | - * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net> | ||
12 | - * @author Brent R. Matzelle (original founder) | ||
13 | - * @copyright 2012 - 2020 Marcus Bointon | ||
14 | - * @copyright 2010 - 2012 Jim Jagielski | ||
15 | - * @copyright 2004 - 2009 Andy Prevost | ||
16 | - * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License | ||
17 | - * @note This program is distributed in the hope that it will be useful - WITHOUT | ||
18 | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
19 | - * FITNESS FOR A PARTICULAR PURPOSE. | ||
20 | - */ | ||
21 | - | ||
22 | -namespace PHPMailer\PHPMailer; | ||
23 | - | ||
24 | -/** | ||
25 | - * PHPMailer POP-Before-SMTP Authentication Class. | ||
26 | - * Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. | ||
27 | - * 1) This class does not support APOP authentication. | ||
28 | - * 2) Opening and closing lots of POP3 connections can be quite slow. If you need | ||
29 | - * to send a batch of emails then just perform the authentication once at the start, | ||
30 | - * and then loop through your mail sending script. Providing this process doesn't | ||
31 | - * take longer than the verification period lasts on your POP3 server, you should be fine. | ||
32 | - * 3) This is really ancient technology; you should only need to use it to talk to very old systems. | ||
33 | - * 4) This POP3 class is deliberately lightweight and incomplete, implementing just | ||
34 | - * enough to do authentication. | ||
35 | - * If you want a more complete class there are other POP3 classes for PHP available. | ||
36 | - * | ||
37 | - * @author Richard Davey (original author) <rich@corephp.co.uk> | ||
38 | - * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> | ||
39 | - * @author Jim Jagielski (jimjag) <jimjag@gmail.com> | ||
40 | - * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net> | ||
41 | - */ | ||
42 | -class POP3 | ||
43 | -{ | ||
44 | - /** | ||
45 | - * The POP3 PHPMailer Version number. | ||
46 | - * | ||
47 | - * @var string | ||
48 | - */ | ||
49 | - const VERSION = '6.7.1'; | ||
50 | - | ||
51 | - /** | ||
52 | - * Default POP3 port number. | ||
53 | - * | ||
54 | - * @var int | ||
55 | - */ | ||
56 | - const DEFAULT_PORT = 110; | ||
57 | - | ||
58 | - /** | ||
59 | - * Default timeout in seconds. | ||
60 | - * | ||
61 | - * @var int | ||
62 | - */ | ||
63 | - const DEFAULT_TIMEOUT = 30; | ||
64 | - | ||
65 | - /** | ||
66 | - * POP3 class debug output mode. | ||
67 | - * Debug output level. | ||
68 | - * Options: | ||
69 | - * @see POP3::DEBUG_OFF: No output | ||
70 | - * @see POP3::DEBUG_SERVER: Server messages, connection/server errors | ||
71 | - * @see POP3::DEBUG_CLIENT: Client and Server messages, connection/server errors | ||
72 | - * | ||
73 | - * @var int | ||
74 | - */ | ||
75 | - public $do_debug = self::DEBUG_OFF; | ||
76 | - | ||
77 | - /** | ||
78 | - * POP3 mail server hostname. | ||
79 | - * | ||
80 | - * @var string | ||
81 | - */ | ||
82 | - public $host; | ||
83 | - | ||
84 | - /** | ||
85 | - * POP3 port number. | ||
86 | - * | ||
87 | - * @var int | ||
88 | - */ | ||
89 | - public $port; | ||
90 | - | ||
91 | - /** | ||
92 | - * POP3 Timeout Value in seconds. | ||
93 | - * | ||
94 | - * @var int | ||
95 | - */ | ||
96 | - public $tval; | ||
97 | - | ||
98 | - /** | ||
99 | - * POP3 username. | ||
100 | - * | ||
101 | - * @var string | ||
102 | - */ | ||
103 | - public $username; | ||
104 | - | ||
105 | - /** | ||
106 | - * POP3 password. | ||
107 | - * | ||
108 | - * @var string | ||
109 | - */ | ||
110 | - public $password; | ||
111 | - | ||
112 | - /** | ||
113 | - * Resource handle for the POP3 connection socket. | ||
114 | - * | ||
115 | - * @var resource | ||
116 | - */ | ||
117 | - protected $pop_conn; | ||
118 | - | ||
119 | - /** | ||
120 | - * Are we connected? | ||
121 | - * | ||
122 | - * @var bool | ||
123 | - */ | ||
124 | - protected $connected = false; | ||
125 | - | ||
126 | - /** | ||
127 | - * Error container. | ||
128 | - * | ||
129 | - * @var array | ||
130 | - */ | ||
131 | - protected $errors = []; | ||
132 | - | ||
133 | - /** | ||
134 | - * Line break constant. | ||
135 | - */ | ||
136 | - const LE = "\r\n"; | ||
137 | - | ||
138 | - /** | ||
139 | - * Debug level for no output. | ||
140 | - * | ||
141 | - * @var int | ||
142 | - */ | ||
143 | - const DEBUG_OFF = 0; | ||
144 | - | ||
145 | - /** | ||
146 | - * Debug level to show server -> client messages | ||
147 | - * also shows clients connection errors or errors from server | ||
148 | - * | ||
149 | - * @var int | ||
150 | - */ | ||
151 | - const DEBUG_SERVER = 1; | ||
152 | - | ||
153 | - /** | ||
154 | - * Debug level to show client -> server and server -> client messages. | ||
155 | - * | ||
156 | - * @var int | ||
157 | - */ | ||
158 | - const DEBUG_CLIENT = 2; | ||
159 | - | ||
160 | - /** | ||
161 | - * Simple static wrapper for all-in-one POP before SMTP. | ||
162 | - * | ||
163 | - * @param string $host The hostname to connect to | ||
164 | - * @param int|bool $port The port number to connect to | ||
165 | - * @param int|bool $timeout The timeout value | ||
166 | - * @param string $username | ||
167 | - * @param string $password | ||
168 | - * @param int $debug_level | ||
169 | - * | ||
170 | - * @return bool | ||
171 | - */ | ||
172 | - public static function popBeforeSmtp( | ||
173 | - $host, | ||
174 | - $port = false, | ||
175 | - $timeout = false, | ||
176 | - $username = '', | ||
177 | - $password = '', | ||
178 | - $debug_level = 0 | ||
179 | - ) { | ||
180 | - $pop = new self(); | ||
181 | - | ||
182 | - return $pop->authorise($host, $port, $timeout, $username, $password, $debug_level); | ||
183 | - } | ||
184 | - | ||
185 | - /** | ||
186 | - * Authenticate with a POP3 server. | ||
187 | - * A connect, login, disconnect sequence | ||
188 | - * appropriate for POP-before SMTP authorisation. | ||
189 | - * | ||
190 | - * @param string $host The hostname to connect to | ||
191 | - * @param int|bool $port The port number to connect to | ||
192 | - * @param int|bool $timeout The timeout value | ||
193 | - * @param string $username | ||
194 | - * @param string $password | ||
195 | - * @param int $debug_level | ||
196 | - * | ||
197 | - * @return bool | ||
198 | - */ | ||
199 | - public function authorise($host, $port = false, $timeout = false, $username = '', $password = '', $debug_level = 0) | ||
200 | - { | ||
201 | - $this->host = $host; | ||
202 | - //If no port value provided, use default | ||
203 | - if (false === $port) { | ||
204 | - $this->port = static::DEFAULT_PORT; | ||
205 | - } else { | ||
206 | - $this->port = (int) $port; | ||
207 | - } | ||
208 | - //If no timeout value provided, use default | ||
209 | - if (false === $timeout) { | ||
210 | - $this->tval = static::DEFAULT_TIMEOUT; | ||
211 | - } else { | ||
212 | - $this->tval = (int) $timeout; | ||
213 | - } | ||
214 | - $this->do_debug = $debug_level; | ||
215 | - $this->username = $username; | ||
216 | - $this->password = $password; | ||
217 | - //Reset the error log | ||
218 | - $this->errors = []; | ||
219 | - //Connect | ||
220 | - $result = $this->connect($this->host, $this->port, $this->tval); | ||
221 | - if ($result) { | ||
222 | - $login_result = $this->login($this->username, $this->password); | ||
223 | - if ($login_result) { | ||
224 | - $this->disconnect(); | ||
225 | - | ||
226 | - return true; | ||
227 | - } | ||
228 | - } | ||
229 | - //We need to disconnect regardless of whether the login succeeded | ||
230 | - $this->disconnect(); | ||
231 | - | ||
232 | - return false; | ||
233 | - } | ||
234 | - | ||
235 | - /** | ||
236 | - * Connect to a POP3 server. | ||
237 | - * | ||
238 | - * @param string $host | ||
239 | - * @param int|bool $port | ||
240 | - * @param int $tval | ||
241 | - * | ||
242 | - * @return bool | ||
243 | - */ | ||
244 | - public function connect($host, $port = false, $tval = 30) | ||
245 | - { | ||
246 | - //Are we already connected? | ||
247 | - if ($this->connected) { | ||
248 | - return true; | ||
249 | - } | ||
250 | - | ||
251 | - //On Windows this will raise a PHP Warning error if the hostname doesn't exist. | ||
252 | - //Rather than suppress it with @fsockopen, capture it cleanly instead | ||
253 | - set_error_handler([$this, 'catchWarning']); | ||
254 | - | ||
255 | - if (false === $port) { | ||
256 | - $port = static::DEFAULT_PORT; | ||
257 | - } | ||
258 | - | ||
259 | - //Connect to the POP3 server | ||
260 | - $errno = 0; | ||
261 | - $errstr = ''; | ||
262 | - $this->pop_conn = fsockopen( | ||
263 | - $host, //POP3 Host | ||
264 | - $port, //Port # | ||
265 | - $errno, //Error Number | ||
266 | - $errstr, //Error Message | ||
267 | - $tval | ||
268 | - ); //Timeout (seconds) | ||
269 | - //Restore the error handler | ||
270 | - restore_error_handler(); | ||
271 | - | ||
272 | - //Did we connect? | ||
273 | - if (false === $this->pop_conn) { | ||
274 | - //It would appear not... | ||
275 | - $this->setError( | ||
276 | - "Failed to connect to server $host on port $port. errno: $errno; errstr: $errstr" | ||
277 | - ); | ||
278 | - | ||
279 | - return false; | ||
280 | - } | ||
281 | - | ||
282 | - //Increase the stream time-out | ||
283 | - stream_set_timeout($this->pop_conn, $tval, 0); | ||
284 | - | ||
285 | - //Get the POP3 server response | ||
286 | - $pop3_response = $this->getResponse(); | ||
287 | - //Check for the +OK | ||
288 | - if ($this->checkResponse($pop3_response)) { | ||
289 | - //The connection is established and the POP3 server is talking | ||
290 | - $this->connected = true; | ||
291 | - | ||
292 | - return true; | ||
293 | - } | ||
294 | - | ||
295 | - return false; | ||
296 | - } | ||
297 | - | ||
298 | - /** | ||
299 | - * Log in to the POP3 server. | ||
300 | - * Does not support APOP (RFC 2828, 4949). | ||
301 | - * | ||
302 | - * @param string $username | ||
303 | - * @param string $password | ||
304 | - * | ||
305 | - * @return bool | ||
306 | - */ | ||
307 | - public function login($username = '', $password = '') | ||
308 | - { | ||
309 | - if (!$this->connected) { | ||
310 | - $this->setError('Not connected to POP3 server'); | ||
311 | - return false; | ||
312 | - } | ||
313 | - if (empty($username)) { | ||
314 | - $username = $this->username; | ||
315 | - } | ||
316 | - if (empty($password)) { | ||
317 | - $password = $this->password; | ||
318 | - } | ||
319 | - | ||
320 | - //Send the Username | ||
321 | - $this->sendString("USER $username" . static::LE); | ||
322 | - $pop3_response = $this->getResponse(); | ||
323 | - if ($this->checkResponse($pop3_response)) { | ||
324 | - //Send the Password | ||
325 | - $this->sendString("PASS $password" . static::LE); | ||
326 | - $pop3_response = $this->getResponse(); | ||
327 | - if ($this->checkResponse($pop3_response)) { | ||
328 | - return true; | ||
329 | - } | ||
330 | - } | ||
331 | - | ||
332 | - return false; | ||
333 | - } | ||
334 | - | ||
335 | - /** | ||
336 | - * Disconnect from the POP3 server. | ||
337 | - */ | ||
338 | - public function disconnect() | ||
339 | - { | ||
340 | - // If could not connect at all, no need to disconnect | ||
341 | - if ($this->pop_conn === false) { | ||
342 | - return; | ||
343 | - } | ||
344 | - | ||
345 | - $this->sendString('QUIT' . static::LE); | ||
346 | - | ||
347 | - // RFC 1939 shows POP3 server sending a +OK response to the QUIT command. | ||
348 | - // Try to get it. Ignore any failures here. | ||
349 | - try { | ||
350 | - $this->getResponse(); | ||
351 | - } catch (Exception $e) { | ||
352 | - //Do nothing | ||
353 | - } | ||
354 | - | ||
355 | - //The QUIT command may cause the daemon to exit, which will kill our connection | ||
356 | - //So ignore errors here | ||
357 | - try { | ||
358 | - @fclose($this->pop_conn); | ||
359 | - } catch (Exception $e) { | ||
360 | - //Do nothing | ||
361 | - } | ||
362 | - | ||
363 | - // Clean up attributes. | ||
364 | - $this->connected = false; | ||
365 | - $this->pop_conn = false; | ||
366 | - } | ||
367 | - | ||
368 | - /** | ||
369 | - * Get a response from the POP3 server. | ||
370 | - * | ||
371 | - * @param int $size The maximum number of bytes to retrieve | ||
372 | - * | ||
373 | - * @return string | ||
374 | - */ | ||
375 | - protected function getResponse($size = 128) | ||
376 | - { | ||
377 | - $response = fgets($this->pop_conn, $size); | ||
378 | - if ($this->do_debug >= self::DEBUG_SERVER) { | ||
379 | - echo 'Server -> Client: ', $response; | ||
380 | - } | ||
381 | - | ||
382 | - return $response; | ||
383 | - } | ||
384 | - | ||
385 | - /** | ||
386 | - * Send raw data to the POP3 server. | ||
387 | - * | ||
388 | - * @param string $string | ||
389 | - * | ||
390 | - * @return int | ||
391 | - */ | ||
392 | - protected function sendString($string) | ||
393 | - { | ||
394 | - if ($this->pop_conn) { | ||
395 | - if ($this->do_debug >= self::DEBUG_CLIENT) { //Show client messages when debug >= 2 | ||
396 | - echo 'Client -> Server: ', $string; | ||
397 | - } | ||
398 | - | ||
399 | - return fwrite($this->pop_conn, $string, strlen($string)); | ||
400 | - } | ||
401 | - | ||
402 | - return 0; | ||
403 | - } | ||
404 | - | ||
405 | - /** | ||
406 | - * Checks the POP3 server response. | ||
407 | - * Looks for for +OK or -ERR. | ||
408 | - * | ||
409 | - * @param string $string | ||
410 | - * | ||
411 | - * @return bool | ||
412 | - */ | ||
413 | - protected function checkResponse($string) | ||
414 | - { | ||
415 | - if (strpos($string, '+OK') !== 0) { | ||
416 | - $this->setError("Server reported an error: $string"); | ||
417 | - | ||
418 | - return false; | ||
419 | - } | ||
420 | - | ||
421 | - return true; | ||
422 | - } | ||
423 | - | ||
424 | - /** | ||
425 | - * Add an error to the internal error store. | ||
426 | - * Also display debug output if it's enabled. | ||
427 | - * | ||
428 | - * @param string $error | ||
429 | - */ | ||
430 | - protected function setError($error) | ||
431 | - { | ||
432 | - $this->errors[] = $error; | ||
433 | - if ($this->do_debug >= self::DEBUG_SERVER) { | ||
434 | - echo '<pre>'; | ||
435 | - foreach ($this->errors as $e) { | ||
436 | - print_r($e); | ||
437 | - } | ||
438 | - echo '</pre>'; | ||
439 | - } | ||
440 | - } | ||
441 | - | ||
442 | - /** | ||
443 | - * Get an array of error messages, if any. | ||
444 | - * | ||
445 | - * @return array | ||
446 | - */ | ||
447 | - public function getErrors() | ||
448 | - { | ||
449 | - return $this->errors; | ||
450 | - } | ||
451 | - | ||
452 | - /** | ||
453 | - * POP3 connection error handler. | ||
454 | - * | ||
455 | - * @param int $errno | ||
456 | - * @param string $errstr | ||
457 | - * @param string $errfile | ||
458 | - * @param int $errline | ||
459 | - */ | ||
460 | - protected function catchWarning($errno, $errstr, $errfile, $errline) | ||
461 | - { | ||
462 | - $this->setError( | ||
463 | - 'Connecting to the POP3 server raised a PHP warning:' . | ||
464 | - "errno: $errno errstr: $errstr; errfile: $errfile; errline: $errline" | ||
465 | - ); | ||
466 | - } | ||
467 | -} |
vendor/phpmailer/phpmailer/src/SMTP.php
已删除
100644 → 0
1 | -<?php | ||
2 | - | ||
3 | -/** | ||
4 | - * PHPMailer RFC821 SMTP email transport class. | ||
5 | - * PHP Version 5.5. | ||
6 | - * | ||
7 | - * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project | ||
8 | - * | ||
9 | - * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> | ||
10 | - * @author Jim Jagielski (jimjag) <jimjag@gmail.com> | ||
11 | - * @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net> | ||
12 | - * @author Brent R. Matzelle (original founder) | ||
13 | - * @copyright 2012 - 2020 Marcus Bointon | ||
14 | - * @copyright 2010 - 2012 Jim Jagielski | ||
15 | - * @copyright 2004 - 2009 Andy Prevost | ||
16 | - * @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License | ||
17 | - * @note This program is distributed in the hope that it will be useful - WITHOUT | ||
18 | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
19 | - * FITNESS FOR A PARTICULAR PURPOSE. | ||
20 | - */ | ||
21 | - | ||
22 | -namespace PHPMailer\PHPMailer; | ||
23 | - | ||
24 | -/** | ||
25 | - * PHPMailer RFC821 SMTP email transport class. | ||
26 | - * Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server. | ||
27 | - * | ||
28 | - * @author Chris Ryan | ||
29 | - * @author Marcus Bointon <phpmailer@synchromedia.co.uk> | ||
30 | - */ | ||
31 | -class SMTP | ||
32 | -{ | ||
33 | - /** | ||
34 | - * The PHPMailer SMTP version number. | ||
35 | - * | ||
36 | - * @var string | ||
37 | - */ | ||
38 | - const VERSION = '6.7.1'; | ||
39 | - | ||
40 | - /** | ||
41 | - * SMTP line break constant. | ||
42 | - * | ||
43 | - * @var string | ||
44 | - */ | ||
45 | - const LE = "\r\n"; | ||
46 | - | ||
47 | - /** | ||
48 | - * The SMTP port to use if one is not specified. | ||
49 | - * | ||
50 | - * @var int | ||
51 | - */ | ||
52 | - const DEFAULT_PORT = 25; | ||
53 | - | ||
54 | - /** | ||
55 | - * The maximum line length allowed by RFC 5321 section 4.5.3.1.6, | ||
56 | - * *excluding* a trailing CRLF break. | ||
57 | - * | ||
58 | - * @see https://tools.ietf.org/html/rfc5321#section-4.5.3.1.6 | ||
59 | - * | ||
60 | - * @var int | ||
61 | - */ | ||
62 | - const MAX_LINE_LENGTH = 998; | ||
63 | - | ||
64 | - /** | ||
65 | - * The maximum line length allowed for replies in RFC 5321 section 4.5.3.1.5, | ||
66 | - * *including* a trailing CRLF line break. | ||
67 | - * | ||
68 | - * @see https://tools.ietf.org/html/rfc5321#section-4.5.3.1.5 | ||
69 | - * | ||
70 | - * @var int | ||
71 | - */ | ||
72 | - const MAX_REPLY_LENGTH = 512; | ||
73 | - | ||
74 | - /** | ||
75 | - * Debug level for no output. | ||
76 | - * | ||
77 | - * @var int | ||
78 | - */ | ||
79 | - const DEBUG_OFF = 0; | ||
80 | - | ||
81 | - /** | ||
82 | - * Debug level to show client -> server messages. | ||
83 | - * | ||
84 | - * @var int | ||
85 | - */ | ||
86 | - const DEBUG_CLIENT = 1; | ||
87 | - | ||
88 | - /** | ||
89 | - * Debug level to show client -> server and server -> client messages. | ||
90 | - * | ||
91 | - * @var int | ||
92 | - */ | ||
93 | - const DEBUG_SERVER = 2; | ||
94 | - | ||
95 | - /** | ||
96 | - * Debug level to show connection status, client -> server and server -> client messages. | ||
97 | - * | ||
98 | - * @var int | ||
99 | - */ | ||
100 | - const DEBUG_CONNECTION = 3; | ||
101 | - | ||
102 | - /** | ||
103 | - * Debug level to show all messages. | ||
104 | - * | ||
105 | - * @var int | ||
106 | - */ | ||
107 | - const DEBUG_LOWLEVEL = 4; | ||
108 | - | ||
109 | - /** | ||
110 | - * Debug output level. | ||
111 | - * Options: | ||
112 | - * * self::DEBUG_OFF (`0`) No debug output, default | ||
113 | - * * self::DEBUG_CLIENT (`1`) Client commands | ||
114 | - * * self::DEBUG_SERVER (`2`) Client commands and server responses | ||
115 | - * * self::DEBUG_CONNECTION (`3`) As DEBUG_SERVER plus connection status | ||
116 | - * * self::DEBUG_LOWLEVEL (`4`) Low-level data output, all messages. | ||
117 | - * | ||
118 | - * @var int | ||
119 | - */ | ||
120 | - public $do_debug = self::DEBUG_OFF; | ||
121 | - | ||
122 | - /** | ||
123 | - * How to handle debug output. | ||
124 | - * Options: | ||
125 | - * * `echo` Output plain-text as-is, appropriate for CLI | ||
126 | - * * `html` Output escaped, line breaks converted to `<br>`, appropriate for browser output | ||
127 | - * * `error_log` Output to error log as configured in php.ini | ||
128 | - * Alternatively, you can provide a callable expecting two params: a message string and the debug level: | ||
129 | - * | ||
130 | - * ```php | ||
131 | - * $smtp->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";}; | ||
132 | - * ``` | ||
133 | - * | ||
134 | - * Alternatively, you can pass in an instance of a PSR-3 compatible logger, though only `debug` | ||
135 | - * level output is used: | ||
136 | - * | ||
137 | - * ```php | ||
138 | - * $mail->Debugoutput = new myPsr3Logger; | ||
139 | - * ``` | ||
140 | - * | ||
141 | - * @var string|callable|\Psr\Log\LoggerInterface | ||
142 | - */ | ||
143 | - public $Debugoutput = 'echo'; | ||
144 | - | ||
145 | - /** | ||
146 | - * Whether to use VERP. | ||
147 | - * | ||
148 | - * @see http://en.wikipedia.org/wiki/Variable_envelope_return_path | ||
149 | - * @see http://www.postfix.org/VERP_README.html Info on VERP | ||
150 | - * | ||
151 | - * @var bool | ||
152 | - */ | ||
153 | - public $do_verp = false; | ||
154 | - | ||
155 | - /** | ||
156 | - * The timeout value for connection, in seconds. | ||
157 | - * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2. | ||
158 | - * This needs to be quite high to function correctly with hosts using greetdelay as an anti-spam measure. | ||
159 | - * | ||
160 | - * @see http://tools.ietf.org/html/rfc2821#section-4.5.3.2 | ||
161 | - * | ||
162 | - * @var int | ||
163 | - */ | ||
164 | - public $Timeout = 300; | ||
165 | - | ||
166 | - /** | ||
167 | - * How long to wait for commands to complete, in seconds. | ||
168 | - * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2. | ||
169 | - * | ||
170 | - * @var int | ||
171 | - */ | ||
172 | - public $Timelimit = 300; | ||
173 | - | ||
174 | - /** | ||
175 | - * Patterns to extract an SMTP transaction id from reply to a DATA command. | ||
176 | - * The first capture group in each regex will be used as the ID. | ||
177 | - * MS ESMTP returns the message ID, which may not be correct for internal tracking. | ||
178 | - * | ||
179 | - * @var string[] | ||
180 | - */ | ||
181 | - protected $smtp_transaction_id_patterns = [ | ||
182 | - 'exim' => '/[\d]{3} OK id=(.*)/', | ||
183 | - 'sendmail' => '/[\d]{3} 2.0.0 (.*) Message/', | ||
184 | - 'postfix' => '/[\d]{3} 2.0.0 Ok: queued as (.*)/', | ||
185 | - 'Microsoft_ESMTP' => '/[0-9]{3} 2.[\d].0 (.*)@(?:.*) Queued mail for delivery/', | ||
186 | - 'Amazon_SES' => '/[\d]{3} Ok (.*)/', | ||
187 | - 'SendGrid' => '/[\d]{3} Ok: queued as (.*)/', | ||
188 | - 'CampaignMonitor' => '/[\d]{3} 2.0.0 OK:([a-zA-Z\d]{48})/', | ||
189 | - 'Haraka' => '/[\d]{3} Message Queued \((.*)\)/', | ||
190 | - 'Mailjet' => '/[\d]{3} OK queued as (.*)/', | ||
191 | - ]; | ||
192 | - | ||
193 | - /** | ||
194 | - * The last transaction ID issued in response to a DATA command, | ||
195 | - * if one was detected. | ||
196 | - * | ||
197 | - * @var string|bool|null | ||
198 | - */ | ||
199 | - protected $last_smtp_transaction_id; | ||
200 | - | ||
201 | - /** | ||
202 | - * The socket for the server connection. | ||
203 | - * | ||
204 | - * @var ?resource | ||
205 | - */ | ||
206 | - protected $smtp_conn; | ||
207 | - | ||
208 | - /** | ||
209 | - * Error information, if any, for the last SMTP command. | ||
210 | - * | ||
211 | - * @var array | ||
212 | - */ | ||
213 | - protected $error = [ | ||
214 | - 'error' => '', | ||
215 | - 'detail' => '', | ||
216 | - 'smtp_code' => '', | ||
217 | - 'smtp_code_ex' => '', | ||
218 | - ]; | ||
219 | - | ||
220 | - /** | ||
221 | - * The reply the server sent to us for HELO. | ||
222 | - * If null, no HELO string has yet been received. | ||
223 | - * | ||
224 | - * @var string|null | ||
225 | - */ | ||
226 | - protected $helo_rply; | ||
227 | - | ||
228 | - /** | ||
229 | - * The set of SMTP extensions sent in reply to EHLO command. | ||
230 | - * Indexes of the array are extension names. | ||
231 | - * Value at index 'HELO' or 'EHLO' (according to command that was sent) | ||
232 | - * represents the server name. In case of HELO it is the only element of the array. | ||
233 | - * Other values can be boolean TRUE or an array containing extension options. | ||
234 | - * If null, no HELO/EHLO string has yet been received. | ||
235 | - * | ||
236 | - * @var array|null | ||
237 | - */ | ||
238 | - protected $server_caps; | ||
239 | - | ||
240 | - /** | ||
241 | - * The most recent reply received from the server. | ||
242 | - * | ||
243 | - * @var string | ||
244 | - */ | ||
245 | - protected $last_reply = ''; | ||
246 | - | ||
247 | - /** | ||
248 | - * Output debugging info via a user-selected method. | ||
249 | - * | ||
250 | - * @param string $str Debug string to output | ||
251 | - * @param int $level The debug level of this message; see DEBUG_* constants | ||
252 | - * | ||
253 | - * @see SMTP::$Debugoutput | ||
254 | - * @see SMTP::$do_debug | ||
255 | - */ | ||
256 | - protected function edebug($str, $level = 0) | ||
257 | - { | ||
258 | - if ($level > $this->do_debug) { | ||
259 | - return; | ||
260 | - } | ||
261 | - //Is this a PSR-3 logger? | ||
262 | - if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) { | ||
263 | - $this->Debugoutput->debug($str); | ||
264 | - | ||
265 | - return; | ||
266 | - } | ||
267 | - //Avoid clash with built-in function names | ||
268 | - if (is_callable($this->Debugoutput) && !in_array($this->Debugoutput, ['error_log', 'html', 'echo'])) { | ||
269 | - call_user_func($this->Debugoutput, $str, $level); | ||
270 | - | ||
271 | - return; | ||
272 | - } | ||
273 | - switch ($this->Debugoutput) { | ||
274 | - case 'error_log': | ||
275 | - //Don't output, just log | ||
276 | - error_log($str); | ||
277 | - break; | ||
278 | - case 'html': | ||
279 | - //Cleans up output a bit for a better looking, HTML-safe output | ||
280 | - echo gmdate('Y-m-d H:i:s'), ' ', htmlentities( | ||
281 | - preg_replace('/[\r\n]+/', '', $str), | ||
282 | - ENT_QUOTES, | ||
283 | - 'UTF-8' | ||
284 | - ), "<br>\n"; | ||
285 | - break; | ||
286 | - case 'echo': | ||
287 | - default: | ||
288 | - //Normalize line breaks | ||
289 | - $str = preg_replace('/\r\n|\r/m', "\n", $str); | ||
290 | - echo gmdate('Y-m-d H:i:s'), | ||
291 | - "\t", | ||
292 | - //Trim trailing space | ||
293 | - trim( | ||
294 | - //Indent for readability, except for trailing break | ||
295 | - str_replace( | ||
296 | - "\n", | ||
297 | - "\n \t ", | ||
298 | - trim($str) | ||
299 | - ) | ||
300 | - ), | ||
301 | - "\n"; | ||
302 | - } | ||
303 | - } | ||
304 | - | ||
305 | - /** | ||
306 | - * Connect to an SMTP server. | ||
307 | - * | ||
308 | - * @param string $host SMTP server IP or host name | ||
309 | - * @param int $port The port number to connect to | ||
310 | - * @param int $timeout How long to wait for the connection to open | ||
311 | - * @param array $options An array of options for stream_context_create() | ||
312 | - * | ||
313 | - * @return bool | ||
314 | - */ | ||
315 | - public function connect($host, $port = null, $timeout = 30, $options = []) | ||
316 | - { | ||
317 | - //Clear errors to avoid confusion | ||
318 | - $this->setError(''); | ||
319 | - //Make sure we are __not__ connected | ||
320 | - if ($this->connected()) { | ||
321 | - //Already connected, generate error | ||
322 | - $this->setError('Already connected to a server'); | ||
323 | - | ||
324 | - return false; | ||
325 | - } | ||
326 | - if (empty($port)) { | ||
327 | - $port = self::DEFAULT_PORT; | ||
328 | - } | ||
329 | - //Connect to the SMTP server | ||
330 | - $this->edebug( | ||
331 | - "Connection: opening to $host:$port, timeout=$timeout, options=" . | ||
332 | - (count($options) > 0 ? var_export($options, true) : 'array()'), | ||
333 | - self::DEBUG_CONNECTION | ||
334 | - ); | ||
335 | - | ||
336 | - $this->smtp_conn = $this->getSMTPConnection($host, $port, $timeout, $options); | ||
337 | - | ||
338 | - if ($this->smtp_conn === false) { | ||
339 | - //Error info already set inside `getSMTPConnection()` | ||
340 | - return false; | ||
341 | - } | ||
342 | - | ||
343 | - $this->edebug('Connection: opened', self::DEBUG_CONNECTION); | ||
344 | - | ||
345 | - //Get any announcement | ||
346 | - $this->last_reply = $this->get_lines(); | ||
347 | - $this->edebug('SERVER -> CLIENT: ' . $this->last_reply, self::DEBUG_SERVER); | ||
348 | - $responseCode = (int)substr($this->last_reply, 0, 3); | ||
349 | - if ($responseCode === 220) { | ||
350 | - return true; | ||
351 | - } | ||
352 | - //Anything other than a 220 response means something went wrong | ||
353 | - //RFC 5321 says the server will wait for us to send a QUIT in response to a 554 error | ||
354 | - //https://tools.ietf.org/html/rfc5321#section-3.1 | ||
355 | - if ($responseCode === 554) { | ||
356 | - $this->quit(); | ||
357 | - } | ||
358 | - //This will handle 421 responses which may not wait for a QUIT (e.g. if the server is being shut down) | ||
359 | - $this->edebug('Connection: closing due to error', self::DEBUG_CONNECTION); | ||
360 | - $this->close(); | ||
361 | - return false; | ||
362 | - } | ||
363 | - | ||
364 | - /** | ||
365 | - * Create connection to the SMTP server. | ||
366 | - * | ||
367 | - * @param string $host SMTP server IP or host name | ||
368 | - * @param int $port The port number to connect to | ||
369 | - * @param int $timeout How long to wait for the connection to open | ||
370 | - * @param array $options An array of options for stream_context_create() | ||
371 | - * | ||
372 | - * @return false|resource | ||
373 | - */ | ||
374 | - protected function getSMTPConnection($host, $port = null, $timeout = 30, $options = []) | ||
375 | - { | ||
376 | - static $streamok; | ||
377 | - //This is enabled by default since 5.0.0 but some providers disable it | ||
378 | - //Check this once and cache the result | ||
379 | - if (null === $streamok) { | ||
380 | - $streamok = function_exists('stream_socket_client'); | ||
381 | - } | ||
382 | - | ||
383 | - $errno = 0; | ||
384 | - $errstr = ''; | ||
385 | - if ($streamok) { | ||
386 | - $socket_context = stream_context_create($options); | ||
387 | - set_error_handler([$this, 'errorHandler']); | ||
388 | - $connection = stream_socket_client( | ||
389 | - $host . ':' . $port, | ||
390 | - $errno, | ||
391 | - $errstr, | ||
392 | - $timeout, | ||
393 | - STREAM_CLIENT_CONNECT, | ||
394 | - $socket_context | ||
395 | - ); | ||
396 | - } else { | ||
397 | - //Fall back to fsockopen which should work in more places, but is missing some features | ||
398 | - $this->edebug( | ||
399 | - 'Connection: stream_socket_client not available, falling back to fsockopen', | ||
400 | - self::DEBUG_CONNECTION | ||
401 | - ); | ||
402 | - set_error_handler([$this, 'errorHandler']); | ||
403 | - $connection = fsockopen( | ||
404 | - $host, | ||
405 | - $port, | ||
406 | - $errno, | ||
407 | - $errstr, | ||
408 | - $timeout | ||
409 | - ); | ||
410 | - } | ||
411 | - restore_error_handler(); | ||
412 | - | ||
413 | - //Verify we connected properly | ||
414 | - if (!is_resource($connection)) { | ||
415 | - $this->setError( | ||
416 | - 'Failed to connect to server', | ||
417 | - '', | ||
418 | - (string) $errno, | ||
419 | - $errstr | ||
420 | - ); | ||
421 | - $this->edebug( | ||
422 | - 'SMTP ERROR: ' . $this->error['error'] | ||
423 | - . ": $errstr ($errno)", | ||
424 | - self::DEBUG_CLIENT | ||
425 | - ); | ||
426 | - | ||
427 | - return false; | ||
428 | - } | ||
429 | - | ||
430 | - //SMTP server can take longer to respond, give longer timeout for first read | ||
431 | - //Windows does not have support for this timeout function | ||
432 | - if (strpos(PHP_OS, 'WIN') !== 0) { | ||
433 | - $max = (int)ini_get('max_execution_time'); | ||
434 | - //Don't bother if unlimited, or if set_time_limit is disabled | ||
435 | - if (0 !== $max && $timeout > $max && strpos(ini_get('disable_functions'), 'set_time_limit') === false) { | ||
436 | - @set_time_limit($timeout); | ||
437 | - } | ||
438 | - stream_set_timeout($connection, $timeout, 0); | ||
439 | - } | ||
440 | - | ||
441 | - return $connection; | ||
442 | - } | ||
443 | - | ||
444 | - /** | ||
445 | - * Initiate a TLS (encrypted) session. | ||
446 | - * | ||
447 | - * @return bool | ||
448 | - */ | ||
449 | - public function startTLS() | ||
450 | - { | ||
451 | - if (!$this->sendCommand('STARTTLS', 'STARTTLS', 220)) { | ||
452 | - return false; | ||
453 | - } | ||
454 | - | ||
455 | - //Allow the best TLS version(s) we can | ||
456 | - $crypto_method = STREAM_CRYPTO_METHOD_TLS_CLIENT; | ||
457 | - | ||
458 | - //PHP 5.6.7 dropped inclusion of TLS 1.1 and 1.2 in STREAM_CRYPTO_METHOD_TLS_CLIENT | ||
459 | - //so add them back in manually if we can | ||
460 | - if (defined('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT')) { | ||
461 | - $crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT; | ||
462 | - $crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT; | ||
463 | - } | ||
464 | - | ||
465 | - //Begin encrypted connection | ||
466 | - set_error_handler([$this, 'errorHandler']); | ||
467 | - $crypto_ok = stream_socket_enable_crypto( | ||
468 | - $this->smtp_conn, | ||
469 | - true, | ||
470 | - $crypto_method | ||
471 | - ); | ||
472 | - restore_error_handler(); | ||
473 | - | ||
474 | - return (bool) $crypto_ok; | ||
475 | - } | ||
476 | - | ||
477 | - /** | ||
478 | - * Perform SMTP authentication. | ||
479 | - * Must be run after hello(). | ||
480 | - * | ||
481 | - * @see hello() | ||
482 | - * | ||
483 | - * @param string $username The user name | ||
484 | - * @param string $password The password | ||
485 | - * @param string $authtype The auth type (CRAM-MD5, PLAIN, LOGIN, XOAUTH2) | ||
486 | - * @param OAuthTokenProvider $OAuth An optional OAuthTokenProvider instance for XOAUTH2 authentication | ||
487 | - * | ||
488 | - * @return bool True if successfully authenticated | ||
489 | - */ | ||
490 | - public function authenticate( | ||
491 | - $username, | ||
492 | - $password, | ||
493 | - $authtype = null, | ||
494 | - $OAuth = null | ||
495 | - ) { | ||
496 | - if (!$this->server_caps) { | ||
497 | - $this->setError('Authentication is not allowed before HELO/EHLO'); | ||
498 | - | ||
499 | - return false; | ||
500 | - } | ||
501 | - | ||
502 | - if (array_key_exists('EHLO', $this->server_caps)) { | ||
503 | - //SMTP extensions are available; try to find a proper authentication method | ||
504 | - if (!array_key_exists('AUTH', $this->server_caps)) { | ||
505 | - $this->setError('Authentication is not allowed at this stage'); | ||
506 | - //'at this stage' means that auth may be allowed after the stage changes | ||
507 | - //e.g. after STARTTLS | ||
508 | - | ||
509 | - return false; | ||
510 | - } | ||
511 | - | ||
512 | - $this->edebug('Auth method requested: ' . ($authtype ?: 'UNSPECIFIED'), self::DEBUG_LOWLEVEL); | ||
513 | - $this->edebug( | ||
514 | - 'Auth methods available on the server: ' . implode(',', $this->server_caps['AUTH']), | ||
515 | - self::DEBUG_LOWLEVEL | ||
516 | - ); | ||
517 | - | ||
518 | - //If we have requested a specific auth type, check the server supports it before trying others | ||
519 | - if (null !== $authtype && !in_array($authtype, $this->server_caps['AUTH'], true)) { | ||
520 | - $this->edebug('Requested auth method not available: ' . $authtype, self::DEBUG_LOWLEVEL); | ||
521 | - $authtype = null; | ||
522 | - } | ||
523 | - | ||
524 | - if (empty($authtype)) { | ||
525 | - //If no auth mechanism is specified, attempt to use these, in this order | ||
526 | - //Try CRAM-MD5 first as it's more secure than the others | ||
527 | - foreach (['CRAM-MD5', 'LOGIN', 'PLAIN', 'XOAUTH2'] as $method) { | ||
528 | - if (in_array($method, $this->server_caps['AUTH'], true)) { | ||
529 | - $authtype = $method; | ||
530 | - break; | ||
531 | - } | ||
532 | - } | ||
533 | - if (empty($authtype)) { | ||
534 | - $this->setError('No supported authentication methods found'); | ||
535 | - | ||
536 | - return false; | ||
537 | - } | ||
538 | - $this->edebug('Auth method selected: ' . $authtype, self::DEBUG_LOWLEVEL); | ||
539 | - } | ||
540 | - | ||
541 | - if (!in_array($authtype, $this->server_caps['AUTH'], true)) { | ||
542 | - $this->setError("The requested authentication method \"$authtype\" is not supported by the server"); | ||
543 | - | ||
544 | - return false; | ||
545 | - } | ||
546 | - } elseif (empty($authtype)) { | ||
547 | - $authtype = 'LOGIN'; | ||
548 | - } | ||
549 | - switch ($authtype) { | ||
550 | - case 'PLAIN': | ||
551 | - //Start authentication | ||
552 | - if (!$this->sendCommand('AUTH', 'AUTH PLAIN', 334)) { | ||
553 | - return false; | ||
554 | - } | ||
555 | - //Send encoded username and password | ||
556 | - if ( | ||
557 | - //Format from https://tools.ietf.org/html/rfc4616#section-2 | ||
558 | - //We skip the first field (it's forgery), so the string starts with a null byte | ||
559 | - !$this->sendCommand( | ||
560 | - 'User & Password', | ||
561 | - base64_encode("\0" . $username . "\0" . $password), | ||
562 | - 235 | ||
563 | - ) | ||
564 | - ) { | ||
565 | - return false; | ||
566 | - } | ||
567 | - break; | ||
568 | - case 'LOGIN': | ||
569 | - //Start authentication | ||
570 | - if (!$this->sendCommand('AUTH', 'AUTH LOGIN', 334)) { | ||
571 | - return false; | ||
572 | - } | ||
573 | - if (!$this->sendCommand('Username', base64_encode($username), 334)) { | ||
574 | - return false; | ||
575 | - } | ||
576 | - if (!$this->sendCommand('Password', base64_encode($password), 235)) { | ||
577 | - return false; | ||
578 | - } | ||
579 | - break; | ||
580 | - case 'CRAM-MD5': | ||
581 | - //Start authentication | ||
582 | - if (!$this->sendCommand('AUTH CRAM-MD5', 'AUTH CRAM-MD5', 334)) { | ||
583 | - return false; | ||
584 | - } | ||
585 | - //Get the challenge | ||
586 | - $challenge = base64_decode(substr($this->last_reply, 4)); | ||
587 | - | ||
588 | - //Build the response | ||
589 | - $response = $username . ' ' . $this->hmac($challenge, $password); | ||
590 | - | ||
591 | - //send encoded credentials | ||
592 | - return $this->sendCommand('Username', base64_encode($response), 235); | ||
593 | - case 'XOAUTH2': | ||
594 | - //The OAuth instance must be set up prior to requesting auth. | ||
595 | - if (null === $OAuth) { | ||
596 | - return false; | ||
597 | - } | ||
598 | - $oauth = $OAuth->getOauth64(); | ||
599 | - | ||
600 | - //Start authentication | ||
601 | - if (!$this->sendCommand('AUTH', 'AUTH XOAUTH2 ' . $oauth, 235)) { | ||
602 | - return false; | ||
603 | - } | ||
604 | - break; | ||
605 | - default: | ||
606 | - $this->setError("Authentication method \"$authtype\" is not supported"); | ||
607 | - | ||
608 | - return false; | ||
609 | - } | ||
610 | - | ||
611 | - return true; | ||
612 | - } | ||
613 | - | ||
614 | - /** | ||
615 | - * Calculate an MD5 HMAC hash. | ||
616 | - * Works like hash_hmac('md5', $data, $key) | ||
617 | - * in case that function is not available. | ||
618 | - * | ||
619 | - * @param string $data The data to hash | ||
620 | - * @param string $key The key to hash with | ||
621 | - * | ||
622 | - * @return string | ||
623 | - */ | ||
624 | - protected function hmac($data, $key) | ||
625 | - { | ||
626 | - if (function_exists('hash_hmac')) { | ||
627 | - return hash_hmac('md5', $data, $key); | ||
628 | - } | ||
629 | - | ||
630 | - //The following borrowed from | ||
631 | - //http://php.net/manual/en/function.mhash.php#27225 | ||
632 | - | ||
633 | - //RFC 2104 HMAC implementation for php. | ||
634 | - //Creates an md5 HMAC. | ||
635 | - //Eliminates the need to install mhash to compute a HMAC | ||
636 | - //by Lance Rushing | ||
637 | - | ||
638 | - $bytelen = 64; //byte length for md5 | ||
639 | - if (strlen($key) > $bytelen) { | ||
640 | - $key = pack('H*', md5($key)); | ||
641 | - } | ||
642 | - $key = str_pad($key, $bytelen, chr(0x00)); | ||
643 | - $ipad = str_pad('', $bytelen, chr(0x36)); | ||
644 | - $opad = str_pad('', $bytelen, chr(0x5c)); | ||
645 | - $k_ipad = $key ^ $ipad; | ||
646 | - $k_opad = $key ^ $opad; | ||
647 | - | ||
648 | - return md5($k_opad . pack('H*', md5($k_ipad . $data))); | ||
649 | - } | ||
650 | - | ||
651 | - /** | ||
652 | - * Check connection state. | ||
653 | - * | ||
654 | - * @return bool True if connected | ||
655 | - */ | ||
656 | - public function connected() | ||
657 | - { | ||
658 | - if (is_resource($this->smtp_conn)) { | ||
659 | - $sock_status = stream_get_meta_data($this->smtp_conn); | ||
660 | - if ($sock_status['eof']) { | ||
661 | - //The socket is valid but we are not connected | ||
662 | - $this->edebug( | ||
663 | - 'SMTP NOTICE: EOF caught while checking if connected', | ||
664 | - self::DEBUG_CLIENT | ||
665 | - ); | ||
666 | - $this->close(); | ||
667 | - | ||
668 | - return false; | ||
669 | - } | ||
670 | - | ||
671 | - return true; //everything looks good | ||
672 | - } | ||
673 | - | ||
674 | - return false; | ||
675 | - } | ||
676 | - | ||
677 | - /** | ||
678 | - * Close the socket and clean up the state of the class. | ||
679 | - * Don't use this function without first trying to use QUIT. | ||
680 | - * | ||
681 | - * @see quit() | ||
682 | - */ | ||
683 | - public function close() | ||
684 | - { | ||
685 | - $this->server_caps = null; | ||
686 | - $this->helo_rply = null; | ||
687 | - if (is_resource($this->smtp_conn)) { | ||
688 | - //Close the connection and cleanup | ||
689 | - fclose($this->smtp_conn); | ||
690 | - $this->smtp_conn = null; //Makes for cleaner serialization | ||
691 | - $this->edebug('Connection: closed', self::DEBUG_CONNECTION); | ||
692 | - } | ||
693 | - } | ||
694 | - | ||
695 | - /** | ||
696 | - * Send an SMTP DATA command. | ||
697 | - * Issues a data command and sends the msg_data to the server, | ||
698 | - * finalizing the mail transaction. $msg_data is the message | ||
699 | - * that is to be send with the headers. Each header needs to be | ||
700 | - * on a single line followed by a <CRLF> with the message headers | ||
701 | - * and the message body being separated by an additional <CRLF>. | ||
702 | - * Implements RFC 821: DATA <CRLF>. | ||
703 | - * | ||
704 | - * @param string $msg_data Message data to send | ||
705 | - * | ||
706 | - * @return bool | ||
707 | - */ | ||
708 | - public function data($msg_data) | ||
709 | - { | ||
710 | - //This will use the standard timelimit | ||
711 | - if (!$this->sendCommand('DATA', 'DATA', 354)) { | ||
712 | - return false; | ||
713 | - } | ||
714 | - | ||
715 | - /* The server is ready to accept data! | ||
716 | - * According to rfc821 we should not send more than 1000 characters on a single line (including the LE) | ||
717 | - * so we will break the data up into lines by \r and/or \n then if needed we will break each of those into | ||
718 | - * smaller lines to fit within the limit. | ||
719 | - * We will also look for lines that start with a '.' and prepend an additional '.'. | ||
720 | - * NOTE: this does not count towards line-length limit. | ||
721 | - */ | ||
722 | - | ||
723 | - //Normalize line breaks before exploding | ||
724 | - $lines = explode("\n", str_replace(["\r\n", "\r"], "\n", $msg_data)); | ||
725 | - | ||
726 | - /* To distinguish between a complete RFC822 message and a plain message body, we check if the first field | ||
727 | - * of the first line (':' separated) does not contain a space then it _should_ be a header and we will | ||
728 | - * process all lines before a blank line as headers. | ||
729 | - */ | ||
730 | - | ||
731 | - $field = substr($lines[0], 0, strpos($lines[0], ':')); | ||
732 | - $in_headers = false; | ||
733 | - if (!empty($field) && strpos($field, ' ') === false) { | ||
734 | - $in_headers = true; | ||
735 | - } | ||
736 | - | ||
737 | - foreach ($lines as $line) { | ||
738 | - $lines_out = []; | ||
739 | - if ($in_headers && $line === '') { | ||
740 | - $in_headers = false; | ||
741 | - } | ||
742 | - //Break this line up into several smaller lines if it's too long | ||
743 | - //Micro-optimisation: isset($str[$len]) is faster than (strlen($str) > $len), | ||
744 | - while (isset($line[self::MAX_LINE_LENGTH])) { | ||
745 | - //Working backwards, try to find a space within the last MAX_LINE_LENGTH chars of the line to break on | ||
746 | - //so as to avoid breaking in the middle of a word | ||
747 | - $pos = strrpos(substr($line, 0, self::MAX_LINE_LENGTH), ' '); | ||
748 | - //Deliberately matches both false and 0 | ||
749 | - if (!$pos) { | ||
750 | - //No nice break found, add a hard break | ||
751 | - $pos = self::MAX_LINE_LENGTH - 1; | ||
752 | - $lines_out[] = substr($line, 0, $pos); | ||
753 | - $line = substr($line, $pos); | ||
754 | - } else { | ||
755 | - //Break at the found point | ||
756 | - $lines_out[] = substr($line, 0, $pos); | ||
757 | - //Move along by the amount we dealt with | ||
758 | - $line = substr($line, $pos + 1); | ||
759 | - } | ||
760 | - //If processing headers add a LWSP-char to the front of new line RFC822 section 3.1.1 | ||
761 | - if ($in_headers) { | ||
762 | - $line = "\t" . $line; | ||
763 | - } | ||
764 | - } | ||
765 | - $lines_out[] = $line; | ||
766 | - | ||
767 | - //Send the lines to the server | ||
768 | - foreach ($lines_out as $line_out) { | ||
769 | - //Dot-stuffing as per RFC5321 section 4.5.2 | ||
770 | - //https://tools.ietf.org/html/rfc5321#section-4.5.2 | ||
771 | - if (!empty($line_out) && $line_out[0] === '.') { | ||
772 | - $line_out = '.' . $line_out; | ||
773 | - } | ||
774 | - $this->client_send($line_out . static::LE, 'DATA'); | ||
775 | - } | ||
776 | - } | ||
777 | - | ||
778 | - //Message data has been sent, complete the command | ||
779 | - //Increase timelimit for end of DATA command | ||
780 | - $savetimelimit = $this->Timelimit; | ||
781 | - $this->Timelimit *= 2; | ||
782 | - $result = $this->sendCommand('DATA END', '.', 250); | ||
783 | - $this->recordLastTransactionID(); | ||
784 | - //Restore timelimit | ||
785 | - $this->Timelimit = $savetimelimit; | ||
786 | - | ||
787 | - return $result; | ||
788 | - } | ||
789 | - | ||
790 | - /** | ||
791 | - * Send an SMTP HELO or EHLO command. | ||
792 | - * Used to identify the sending server to the receiving server. | ||
793 | - * This makes sure that client and server are in a known state. | ||
794 | - * Implements RFC 821: HELO <SP> <domain> <CRLF> | ||
795 | - * and RFC 2821 EHLO. | ||
796 | - * | ||
797 | - * @param string $host The host name or IP to connect to | ||
798 | - * | ||
799 | - * @return bool | ||
800 | - */ | ||
801 | - public function hello($host = '') | ||
802 | - { | ||
803 | - //Try extended hello first (RFC 2821) | ||
804 | - if ($this->sendHello('EHLO', $host)) { | ||
805 | - return true; | ||
806 | - } | ||
807 | - | ||
808 | - //Some servers shut down the SMTP service here (RFC 5321) | ||
809 | - if (substr($this->helo_rply, 0, 3) == '421') { | ||
810 | - return false; | ||
811 | - } | ||
812 | - | ||
813 | - return $this->sendHello('HELO', $host); | ||
814 | - } | ||
815 | - | ||
816 | - /** | ||
817 | - * Send an SMTP HELO or EHLO command. | ||
818 | - * Low-level implementation used by hello(). | ||
819 | - * | ||
820 | - * @param string $hello The HELO string | ||
821 | - * @param string $host The hostname to say we are | ||
822 | - * | ||
823 | - * @return bool | ||
824 | - * | ||
825 | - * @see hello() | ||
826 | - */ | ||
827 | - protected function sendHello($hello, $host) | ||
828 | - { | ||
829 | - $noerror = $this->sendCommand($hello, $hello . ' ' . $host, 250); | ||
830 | - $this->helo_rply = $this->last_reply; | ||
831 | - if ($noerror) { | ||
832 | - $this->parseHelloFields($hello); | ||
833 | - } else { | ||
834 | - $this->server_caps = null; | ||
835 | - } | ||
836 | - | ||
837 | - return $noerror; | ||
838 | - } | ||
839 | - | ||
840 | - /** | ||
841 | - * Parse a reply to HELO/EHLO command to discover server extensions. | ||
842 | - * In case of HELO, the only parameter that can be discovered is a server name. | ||
843 | - * | ||
844 | - * @param string $type `HELO` or `EHLO` | ||
845 | - */ | ||
846 | - protected function parseHelloFields($type) | ||
847 | - { | ||
848 | - $this->server_caps = []; | ||
849 | - $lines = explode("\n", $this->helo_rply); | ||
850 | - | ||
851 | - foreach ($lines as $n => $s) { | ||
852 | - //First 4 chars contain response code followed by - or space | ||
853 | - $s = trim(substr($s, 4)); | ||
854 | - if (empty($s)) { | ||
855 | - continue; | ||
856 | - } | ||
857 | - $fields = explode(' ', $s); | ||
858 | - if (!empty($fields)) { | ||
859 | - if (!$n) { | ||
860 | - $name = $type; | ||
861 | - $fields = $fields[0]; | ||
862 | - } else { | ||
863 | - $name = array_shift($fields); | ||
864 | - switch ($name) { | ||
865 | - case 'SIZE': | ||
866 | - $fields = ($fields ? $fields[0] : 0); | ||
867 | - break; | ||
868 | - case 'AUTH': | ||
869 | - if (!is_array($fields)) { | ||
870 | - $fields = []; | ||
871 | - } | ||
872 | - break; | ||
873 | - default: | ||
874 | - $fields = true; | ||
875 | - } | ||
876 | - } | ||
877 | - $this->server_caps[$name] = $fields; | ||
878 | - } | ||
879 | - } | ||
880 | - } | ||
881 | - | ||
882 | - /** | ||
883 | - * Send an SMTP MAIL command. | ||
884 | - * Starts a mail transaction from the email address specified in | ||
885 | - * $from. Returns true if successful or false otherwise. If True | ||
886 | - * the mail transaction is started and then one or more recipient | ||
887 | - * commands may be called followed by a data command. | ||
888 | - * Implements RFC 821: MAIL <SP> FROM:<reverse-path> <CRLF>. | ||
889 | - * | ||
890 | - * @param string $from Source address of this message | ||
891 | - * | ||
892 | - * @return bool | ||
893 | - */ | ||
894 | - public function mail($from) | ||
895 | - { | ||
896 | - $useVerp = ($this->do_verp ? ' XVERP' : ''); | ||
897 | - | ||
898 | - return $this->sendCommand( | ||
899 | - 'MAIL FROM', | ||
900 | - 'MAIL FROM:<' . $from . '>' . $useVerp, | ||
901 | - 250 | ||
902 | - ); | ||
903 | - } | ||
904 | - | ||
905 | - /** | ||
906 | - * Send an SMTP QUIT command. | ||
907 | - * Closes the socket if there is no error or the $close_on_error argument is true. | ||
908 | - * Implements from RFC 821: QUIT <CRLF>. | ||
909 | - * | ||
910 | - * @param bool $close_on_error Should the connection close if an error occurs? | ||
911 | - * | ||
912 | - * @return bool | ||
913 | - */ | ||
914 | - public function quit($close_on_error = true) | ||
915 | - { | ||
916 | - $noerror = $this->sendCommand('QUIT', 'QUIT', 221); | ||
917 | - $err = $this->error; //Save any error | ||
918 | - if ($noerror || $close_on_error) { | ||
919 | - $this->close(); | ||
920 | - $this->error = $err; //Restore any error from the quit command | ||
921 | - } | ||
922 | - | ||
923 | - return $noerror; | ||
924 | - } | ||
925 | - | ||
926 | - /** | ||
927 | - * Send an SMTP RCPT command. | ||
928 | - * Sets the TO argument to $toaddr. | ||
929 | - * Returns true if the recipient was accepted false if it was rejected. | ||
930 | - * Implements from RFC 821: RCPT <SP> TO:<forward-path> <CRLF>. | ||
931 | - * | ||
932 | - * @param string $address The address the message is being sent to | ||
933 | - * @param string $dsn Comma separated list of DSN notifications. NEVER, SUCCESS, FAILURE | ||
934 | - * or DELAY. If you specify NEVER all other notifications are ignored. | ||
935 | - * | ||
936 | - * @return bool | ||
937 | - */ | ||
938 | - public function recipient($address, $dsn = '') | ||
939 | - { | ||
940 | - if (empty($dsn)) { | ||
941 | - $rcpt = 'RCPT TO:<' . $address . '>'; | ||
942 | - } else { | ||
943 | - $dsn = strtoupper($dsn); | ||
944 | - $notify = []; | ||
945 | - | ||
946 | - if (strpos($dsn, 'NEVER') !== false) { | ||
947 | - $notify[] = 'NEVER'; | ||
948 | - } else { | ||
949 | - foreach (['SUCCESS', 'FAILURE', 'DELAY'] as $value) { | ||
950 | - if (strpos($dsn, $value) !== false) { | ||
951 | - $notify[] = $value; | ||
952 | - } | ||
953 | - } | ||
954 | - } | ||
955 | - | ||
956 | - $rcpt = 'RCPT TO:<' . $address . '> NOTIFY=' . implode(',', $notify); | ||
957 | - } | ||
958 | - | ||
959 | - return $this->sendCommand( | ||
960 | - 'RCPT TO', | ||
961 | - $rcpt, | ||
962 | - [250, 251] | ||
963 | - ); | ||
964 | - } | ||
965 | - | ||
966 | - /** | ||
967 | - * Send an SMTP RSET command. | ||
968 | - * Abort any transaction that is currently in progress. | ||
969 | - * Implements RFC 821: RSET <CRLF>. | ||
970 | - * | ||
971 | - * @return bool True on success | ||
972 | - */ | ||
973 | - public function reset() | ||
974 | - { | ||
975 | - return $this->sendCommand('RSET', 'RSET', 250); | ||
976 | - } | ||
977 | - | ||
978 | - /** | ||
979 | - * Send a command to an SMTP server and check its return code. | ||
980 | - * | ||
981 | - * @param string $command The command name - not sent to the server | ||
982 | - * @param string $commandstring The actual command to send | ||
983 | - * @param int|array $expect One or more expected integer success codes | ||
984 | - * | ||
985 | - * @return bool True on success | ||
986 | - */ | ||
987 | - protected function sendCommand($command, $commandstring, $expect) | ||
988 | - { | ||
989 | - if (!$this->connected()) { | ||
990 | - $this->setError("Called $command without being connected"); | ||
991 | - | ||
992 | - return false; | ||
993 | - } | ||
994 | - //Reject line breaks in all commands | ||
995 | - if ((strpos($commandstring, "\n") !== false) || (strpos($commandstring, "\r") !== false)) { | ||
996 | - $this->setError("Command '$command' contained line breaks"); | ||
997 | - | ||
998 | - return false; | ||
999 | - } | ||
1000 | - $this->client_send($commandstring . static::LE, $command); | ||
1001 | - | ||
1002 | - $this->last_reply = $this->get_lines(); | ||
1003 | - //Fetch SMTP code and possible error code explanation | ||
1004 | - $matches = []; | ||
1005 | - if (preg_match('/^([\d]{3})[ -](?:([\d]\\.[\d]\\.[\d]{1,2}) )?/', $this->last_reply, $matches)) { | ||
1006 | - $code = (int) $matches[1]; | ||
1007 | - $code_ex = (count($matches) > 2 ? $matches[2] : null); | ||
1008 | - //Cut off error code from each response line | ||
1009 | - $detail = preg_replace( | ||
1010 | - "/{$code}[ -]" . | ||
1011 | - ($code_ex ? str_replace('.', '\\.', $code_ex) . ' ' : '') . '/m', | ||
1012 | - '', | ||
1013 | - $this->last_reply | ||
1014 | - ); | ||
1015 | - } else { | ||
1016 | - //Fall back to simple parsing if regex fails | ||
1017 | - $code = (int) substr($this->last_reply, 0, 3); | ||
1018 | - $code_ex = null; | ||
1019 | - $detail = substr($this->last_reply, 4); | ||
1020 | - } | ||
1021 | - | ||
1022 | - $this->edebug('SERVER -> CLIENT: ' . $this->last_reply, self::DEBUG_SERVER); | ||
1023 | - | ||
1024 | - if (!in_array($code, (array) $expect, true)) { | ||
1025 | - $this->setError( | ||
1026 | - "$command command failed", | ||
1027 | - $detail, | ||
1028 | - $code, | ||
1029 | - $code_ex | ||
1030 | - ); | ||
1031 | - $this->edebug( | ||
1032 | - 'SMTP ERROR: ' . $this->error['error'] . ': ' . $this->last_reply, | ||
1033 | - self::DEBUG_CLIENT | ||
1034 | - ); | ||
1035 | - | ||
1036 | - return false; | ||
1037 | - } | ||
1038 | - | ||
1039 | - //Don't clear the error store when using keepalive | ||
1040 | - if ($command !== 'RSET') { | ||
1041 | - $this->setError(''); | ||
1042 | - } | ||
1043 | - | ||
1044 | - return true; | ||
1045 | - } | ||
1046 | - | ||
1047 | - /** | ||
1048 | - * Send an SMTP SAML command. | ||
1049 | - * Starts a mail transaction from the email address specified in $from. | ||
1050 | - * Returns true if successful or false otherwise. If True | ||
1051 | - * the mail transaction is started and then one or more recipient | ||
1052 | - * commands may be called followed by a data command. This command | ||
1053 | - * will send the message to the users terminal if they are logged | ||
1054 | - * in and send them an email. | ||
1055 | - * Implements RFC 821: SAML <SP> FROM:<reverse-path> <CRLF>. | ||
1056 | - * | ||
1057 | - * @param string $from The address the message is from | ||
1058 | - * | ||
1059 | - * @return bool | ||
1060 | - */ | ||
1061 | - public function sendAndMail($from) | ||
1062 | - { | ||
1063 | - return $this->sendCommand('SAML', "SAML FROM:$from", 250); | ||
1064 | - } | ||
1065 | - | ||
1066 | - /** | ||
1067 | - * Send an SMTP VRFY command. | ||
1068 | - * | ||
1069 | - * @param string $name The name to verify | ||
1070 | - * | ||
1071 | - * @return bool | ||
1072 | - */ | ||
1073 | - public function verify($name) | ||
1074 | - { | ||
1075 | - return $this->sendCommand('VRFY', "VRFY $name", [250, 251]); | ||
1076 | - } | ||
1077 | - | ||
1078 | - /** | ||
1079 | - * Send an SMTP NOOP command. | ||
1080 | - * Used to keep keep-alives alive, doesn't actually do anything. | ||
1081 | - * | ||
1082 | - * @return bool | ||
1083 | - */ | ||
1084 | - public function noop() | ||
1085 | - { | ||
1086 | - return $this->sendCommand('NOOP', 'NOOP', 250); | ||
1087 | - } | ||
1088 | - | ||
1089 | - /** | ||
1090 | - * Send an SMTP TURN command. | ||
1091 | - * This is an optional command for SMTP that this class does not support. | ||
1092 | - * This method is here to make the RFC821 Definition complete for this class | ||
1093 | - * and _may_ be implemented in future. | ||
1094 | - * Implements from RFC 821: TURN <CRLF>. | ||
1095 | - * | ||
1096 | - * @return bool | ||
1097 | - */ | ||
1098 | - public function turn() | ||
1099 | - { | ||
1100 | - $this->setError('The SMTP TURN command is not implemented'); | ||
1101 | - $this->edebug('SMTP NOTICE: ' . $this->error['error'], self::DEBUG_CLIENT); | ||
1102 | - | ||
1103 | - return false; | ||
1104 | - } | ||
1105 | - | ||
1106 | - /** | ||
1107 | - * Send raw data to the server. | ||
1108 | - * | ||
1109 | - * @param string $data The data to send | ||
1110 | - * @param string $command Optionally, the command this is part of, used only for controlling debug output | ||
1111 | - * | ||
1112 | - * @return int|bool The number of bytes sent to the server or false on error | ||
1113 | - */ | ||
1114 | - public function client_send($data, $command = '') | ||
1115 | - { | ||
1116 | - //If SMTP transcripts are left enabled, or debug output is posted online | ||
1117 | - //it can leak credentials, so hide credentials in all but lowest level | ||
1118 | - if ( | ||
1119 | - self::DEBUG_LOWLEVEL > $this->do_debug && | ||
1120 | - in_array($command, ['User & Password', 'Username', 'Password'], true) | ||
1121 | - ) { | ||
1122 | - $this->edebug('CLIENT -> SERVER: [credentials hidden]', self::DEBUG_CLIENT); | ||
1123 | - } else { | ||
1124 | - $this->edebug('CLIENT -> SERVER: ' . $data, self::DEBUG_CLIENT); | ||
1125 | - } | ||
1126 | - set_error_handler([$this, 'errorHandler']); | ||
1127 | - $result = fwrite($this->smtp_conn, $data); | ||
1128 | - restore_error_handler(); | ||
1129 | - | ||
1130 | - return $result; | ||
1131 | - } | ||
1132 | - | ||
1133 | - /** | ||
1134 | - * Get the latest error. | ||
1135 | - * | ||
1136 | - * @return array | ||
1137 | - */ | ||
1138 | - public function getError() | ||
1139 | - { | ||
1140 | - return $this->error; | ||
1141 | - } | ||
1142 | - | ||
1143 | - /** | ||
1144 | - * Get SMTP extensions available on the server. | ||
1145 | - * | ||
1146 | - * @return array|null | ||
1147 | - */ | ||
1148 | - public function getServerExtList() | ||
1149 | - { | ||
1150 | - return $this->server_caps; | ||
1151 | - } | ||
1152 | - | ||
1153 | - /** | ||
1154 | - * Get metadata about the SMTP server from its HELO/EHLO response. | ||
1155 | - * The method works in three ways, dependent on argument value and current state: | ||
1156 | - * 1. HELO/EHLO has not been sent - returns null and populates $this->error. | ||
1157 | - * 2. HELO has been sent - | ||
1158 | - * $name == 'HELO': returns server name | ||
1159 | - * $name == 'EHLO': returns boolean false | ||
1160 | - * $name == any other string: returns null and populates $this->error | ||
1161 | - * 3. EHLO has been sent - | ||
1162 | - * $name == 'HELO'|'EHLO': returns the server name | ||
1163 | - * $name == any other string: if extension $name exists, returns True | ||
1164 | - * or its options (e.g. AUTH mechanisms supported). Otherwise returns False. | ||
1165 | - * | ||
1166 | - * @param string $name Name of SMTP extension or 'HELO'|'EHLO' | ||
1167 | - * | ||
1168 | - * @return string|bool|null | ||
1169 | - */ | ||
1170 | - public function getServerExt($name) | ||
1171 | - { | ||
1172 | - if (!$this->server_caps) { | ||
1173 | - $this->setError('No HELO/EHLO was sent'); | ||
1174 | - | ||
1175 | - return null; | ||
1176 | - } | ||
1177 | - | ||
1178 | - if (!array_key_exists($name, $this->server_caps)) { | ||
1179 | - if ('HELO' === $name) { | ||
1180 | - return $this->server_caps['EHLO']; | ||
1181 | - } | ||
1182 | - if ('EHLO' === $name || array_key_exists('EHLO', $this->server_caps)) { | ||
1183 | - return false; | ||
1184 | - } | ||
1185 | - $this->setError('HELO handshake was used; No information about server extensions available'); | ||
1186 | - | ||
1187 | - return null; | ||
1188 | - } | ||
1189 | - | ||
1190 | - return $this->server_caps[$name]; | ||
1191 | - } | ||
1192 | - | ||
1193 | - /** | ||
1194 | - * Get the last reply from the server. | ||
1195 | - * | ||
1196 | - * @return string | ||
1197 | - */ | ||
1198 | - public function getLastReply() | ||
1199 | - { | ||
1200 | - return $this->last_reply; | ||
1201 | - } | ||
1202 | - | ||
1203 | - /** | ||
1204 | - * Read the SMTP server's response. | ||
1205 | - * Either before eof or socket timeout occurs on the operation. | ||
1206 | - * With SMTP we can tell if we have more lines to read if the | ||
1207 | - * 4th character is '-' symbol. If it is a space then we don't | ||
1208 | - * need to read anything else. | ||
1209 | - * | ||
1210 | - * @return string | ||
1211 | - */ | ||
1212 | - protected function get_lines() | ||
1213 | - { | ||
1214 | - //If the connection is bad, give up straight away | ||
1215 | - if (!is_resource($this->smtp_conn)) { | ||
1216 | - return ''; | ||
1217 | - } | ||
1218 | - $data = ''; | ||
1219 | - $endtime = 0; | ||
1220 | - stream_set_timeout($this->smtp_conn, $this->Timeout); | ||
1221 | - if ($this->Timelimit > 0) { | ||
1222 | - $endtime = time() + $this->Timelimit; | ||
1223 | - } | ||
1224 | - $selR = [$this->smtp_conn]; | ||
1225 | - $selW = null; | ||
1226 | - while (is_resource($this->smtp_conn) && !feof($this->smtp_conn)) { | ||
1227 | - //Must pass vars in here as params are by reference | ||
1228 | - //solution for signals inspired by https://github.com/symfony/symfony/pull/6540 | ||
1229 | - set_error_handler([$this, 'errorHandler']); | ||
1230 | - $n = stream_select($selR, $selW, $selW, $this->Timelimit); | ||
1231 | - restore_error_handler(); | ||
1232 | - | ||
1233 | - if ($n === false) { | ||
1234 | - $message = $this->getError()['detail']; | ||
1235 | - | ||
1236 | - $this->edebug( | ||
1237 | - 'SMTP -> get_lines(): select failed (' . $message . ')', | ||
1238 | - self::DEBUG_LOWLEVEL | ||
1239 | - ); | ||
1240 | - | ||
1241 | - //stream_select returns false when the `select` system call is interrupted | ||
1242 | - //by an incoming signal, try the select again | ||
1243 | - if (stripos($message, 'interrupted system call') !== false) { | ||
1244 | - $this->edebug( | ||
1245 | - 'SMTP -> get_lines(): retrying stream_select', | ||
1246 | - self::DEBUG_LOWLEVEL | ||
1247 | - ); | ||
1248 | - $this->setError(''); | ||
1249 | - continue; | ||
1250 | - } | ||
1251 | - | ||
1252 | - break; | ||
1253 | - } | ||
1254 | - | ||
1255 | - if (!$n) { | ||
1256 | - $this->edebug( | ||
1257 | - 'SMTP -> get_lines(): select timed-out in (' . $this->Timelimit . ' sec)', | ||
1258 | - self::DEBUG_LOWLEVEL | ||
1259 | - ); | ||
1260 | - break; | ||
1261 | - } | ||
1262 | - | ||
1263 | - //Deliberate noise suppression - errors are handled afterwards | ||
1264 | - $str = @fgets($this->smtp_conn, self::MAX_REPLY_LENGTH); | ||
1265 | - $this->edebug('SMTP INBOUND: "' . trim($str) . '"', self::DEBUG_LOWLEVEL); | ||
1266 | - $data .= $str; | ||
1267 | - //If response is only 3 chars (not valid, but RFC5321 S4.2 says it must be handled), | ||
1268 | - //or 4th character is a space or a line break char, we are done reading, break the loop. | ||
1269 | - //String array access is a significant micro-optimisation over strlen | ||
1270 | - if (!isset($str[3]) || $str[3] === ' ' || $str[3] === "\r" || $str[3] === "\n") { | ||
1271 | - break; | ||
1272 | - } | ||
1273 | - //Timed-out? Log and break | ||
1274 | - $info = stream_get_meta_data($this->smtp_conn); | ||
1275 | - if ($info['timed_out']) { | ||
1276 | - $this->edebug( | ||
1277 | - 'SMTP -> get_lines(): stream timed-out (' . $this->Timeout . ' sec)', | ||
1278 | - self::DEBUG_LOWLEVEL | ||
1279 | - ); | ||
1280 | - break; | ||
1281 | - } | ||
1282 | - //Now check if reads took too long | ||
1283 | - if ($endtime && time() > $endtime) { | ||
1284 | - $this->edebug( | ||
1285 | - 'SMTP -> get_lines(): timelimit reached (' . | ||
1286 | - $this->Timelimit . ' sec)', | ||
1287 | - self::DEBUG_LOWLEVEL | ||
1288 | - ); | ||
1289 | - break; | ||
1290 | - } | ||
1291 | - } | ||
1292 | - | ||
1293 | - return $data; | ||
1294 | - } | ||
1295 | - | ||
1296 | - /** | ||
1297 | - * Enable or disable VERP address generation. | ||
1298 | - * | ||
1299 | - * @param bool $enabled | ||
1300 | - */ | ||
1301 | - public function setVerp($enabled = false) | ||
1302 | - { | ||
1303 | - $this->do_verp = $enabled; | ||
1304 | - } | ||
1305 | - | ||
1306 | - /** | ||
1307 | - * Get VERP address generation mode. | ||
1308 | - * | ||
1309 | - * @return bool | ||
1310 | - */ | ||
1311 | - public function getVerp() | ||
1312 | - { | ||
1313 | - return $this->do_verp; | ||
1314 | - } | ||
1315 | - | ||
1316 | - /** | ||
1317 | - * Set error messages and codes. | ||
1318 | - * | ||
1319 | - * @param string $message The error message | ||
1320 | - * @param string $detail Further detail on the error | ||
1321 | - * @param string $smtp_code An associated SMTP error code | ||
1322 | - * @param string $smtp_code_ex Extended SMTP code | ||
1323 | - */ | ||
1324 | - protected function setError($message, $detail = '', $smtp_code = '', $smtp_code_ex = '') | ||
1325 | - { | ||
1326 | - $this->error = [ | ||
1327 | - 'error' => $message, | ||
1328 | - 'detail' => $detail, | ||
1329 | - 'smtp_code' => $smtp_code, | ||
1330 | - 'smtp_code_ex' => $smtp_code_ex, | ||
1331 | - ]; | ||
1332 | - } | ||
1333 | - | ||
1334 | - /** | ||
1335 | - * Set debug output method. | ||
1336 | - * | ||
1337 | - * @param string|callable $method The name of the mechanism to use for debugging output, or a callable to handle it | ||
1338 | - */ | ||
1339 | - public function setDebugOutput($method = 'echo') | ||
1340 | - { | ||
1341 | - $this->Debugoutput = $method; | ||
1342 | - } | ||
1343 | - | ||
1344 | - /** | ||
1345 | - * Get debug output method. | ||
1346 | - * | ||
1347 | - * @return string | ||
1348 | - */ | ||
1349 | - public function getDebugOutput() | ||
1350 | - { | ||
1351 | - return $this->Debugoutput; | ||
1352 | - } | ||
1353 | - | ||
1354 | - /** | ||
1355 | - * Set debug output level. | ||
1356 | - * | ||
1357 | - * @param int $level | ||
1358 | - */ | ||
1359 | - public function setDebugLevel($level = 0) | ||
1360 | - { | ||
1361 | - $this->do_debug = $level; | ||
1362 | - } | ||
1363 | - | ||
1364 | - /** | ||
1365 | - * Get debug output level. | ||
1366 | - * | ||
1367 | - * @return int | ||
1368 | - */ | ||
1369 | - public function getDebugLevel() | ||
1370 | - { | ||
1371 | - return $this->do_debug; | ||
1372 | - } | ||
1373 | - | ||
1374 | - /** | ||
1375 | - * Set SMTP timeout. | ||
1376 | - * | ||
1377 | - * @param int $timeout The timeout duration in seconds | ||
1378 | - */ | ||
1379 | - public function setTimeout($timeout = 0) | ||
1380 | - { | ||
1381 | - $this->Timeout = $timeout; | ||
1382 | - } | ||
1383 | - | ||
1384 | - /** | ||
1385 | - * Get SMTP timeout. | ||
1386 | - * | ||
1387 | - * @return int | ||
1388 | - */ | ||
1389 | - public function getTimeout() | ||
1390 | - { | ||
1391 | - return $this->Timeout; | ||
1392 | - } | ||
1393 | - | ||
1394 | - /** | ||
1395 | - * Reports an error number and string. | ||
1396 | - * | ||
1397 | - * @param int $errno The error number returned by PHP | ||
1398 | - * @param string $errmsg The error message returned by PHP | ||
1399 | - * @param string $errfile The file the error occurred in | ||
1400 | - * @param int $errline The line number the error occurred on | ||
1401 | - */ | ||
1402 | - protected function errorHandler($errno, $errmsg, $errfile = '', $errline = 0) | ||
1403 | - { | ||
1404 | - $notice = 'Connection failed.'; | ||
1405 | - $this->setError( | ||
1406 | - $notice, | ||
1407 | - $errmsg, | ||
1408 | - (string) $errno | ||
1409 | - ); | ||
1410 | - $this->edebug( | ||
1411 | - "$notice Error #$errno: $errmsg [$errfile line $errline]", | ||
1412 | - self::DEBUG_CONNECTION | ||
1413 | - ); | ||
1414 | - } | ||
1415 | - | ||
1416 | - /** | ||
1417 | - * Extract and return the ID of the last SMTP transaction based on | ||
1418 | - * a list of patterns provided in SMTP::$smtp_transaction_id_patterns. | ||
1419 | - * Relies on the host providing the ID in response to a DATA command. | ||
1420 | - * If no reply has been received yet, it will return null. | ||
1421 | - * If no pattern was matched, it will return false. | ||
1422 | - * | ||
1423 | - * @return bool|string|null | ||
1424 | - */ | ||
1425 | - protected function recordLastTransactionID() | ||
1426 | - { | ||
1427 | - $reply = $this->getLastReply(); | ||
1428 | - | ||
1429 | - if (empty($reply)) { | ||
1430 | - $this->last_smtp_transaction_id = null; | ||
1431 | - } else { | ||
1432 | - $this->last_smtp_transaction_id = false; | ||
1433 | - foreach ($this->smtp_transaction_id_patterns as $smtp_transaction_id_pattern) { | ||
1434 | - $matches = []; | ||
1435 | - if (preg_match($smtp_transaction_id_pattern, $reply, $matches)) { | ||
1436 | - $this->last_smtp_transaction_id = trim($matches[1]); | ||
1437 | - break; | ||
1438 | - } | ||
1439 | - } | ||
1440 | - } | ||
1441 | - | ||
1442 | - return $this->last_smtp_transaction_id; | ||
1443 | - } | ||
1444 | - | ||
1445 | - /** | ||
1446 | - * Get the queue/transaction ID of the last SMTP transaction | ||
1447 | - * If no reply has been received yet, it will return null. | ||
1448 | - * If no pattern was matched, it will return false. | ||
1449 | - * | ||
1450 | - * @return bool|string|null | ||
1451 | - * | ||
1452 | - * @see recordLastTransactionID() | ||
1453 | - */ | ||
1454 | - public function getLastTransactionID() | ||
1455 | - { | ||
1456 | - return $this->last_smtp_transaction_id; | ||
1457 | - } | ||
1458 | -} |
-
请 注册 或 登录 后发表评论