Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
copyright.php
1<?php
9namespace Bitrix\Main\UI;
10
11use Bitrix\Main;
14
16{
17 const LICENCE_MIT = "MIT";
18 const LICENCE_COMMERCIAL = "Commercial";
19 const LICENCE_PUBLIC_DOMAIN = "Public Domain";
20 const LICENCE_BSD2 = "2-Clause BSD";
21 const LICENCE_BSD3 = "3-Clause BSD";
22 const LICENCE_APACHE2 = "Apache License, Version 2.0";
23 const LICENCE_W3C = "W3C License";
24 const LICENCE_OFL = "SIL Open Font License, Version 1.1";
25 const LICENCE_LGPL2 = "GNU Lesser General Public License, Version 2.1";
26 const LICENCE_CUSTOM = "License";
27
28 protected
39
40 public function __construct($productName)
41 {
42 $this->productName = $productName;
43 }
44
49 public static function getBitrixCopyright()
50 {
51 /*
52 if(LANGUAGE_ID == "ru")
53 $vendor = "1c_bitrix_portal";
54 elseif(LANGUAGE_ID == "ua")
55 $vendor = "ua_bitrix_portal";
56 else
57 $vendor = "bitrix_portal";
58
59 if (LANGUAGE_ID == "ru")
60 COption::SetOptionString("main", "vendor", "1c_bitrix");
61 else
62 COption::SetOptionString("main", "vendor", "bitrix");
63 */
64 $vendor = Option::get("main", "vendor", "1c_bitrix");
65
66 return (new static(Loc::getMessage("EPILOG_ADMIN_SM_".$vendor)))
67 ->setProductUrl(Loc::getMessage("EPILOG_ADMIN_URL_PRODUCT_".$vendor))
68 ->setCopyright(Loc::getMessage("EPILOG_ADMIN_COPY_".$vendor))
69 ->setVendorName(Loc::getMessage("EPILOG_ADMIN_URL_MAIN_TEXT_".$vendor))
70 ->setVendorUrl(Loc::getMessage("EPILOG_ADMIN_URL_MAIN_".$vendor))
71 ->setSupportUrl(Loc::getMessage("EPILOG_ADMIN_URL_SUPPORT_".$vendor))
72 ->setLicenceUrl("/bitrix/legal/license.php");
73 }
74
78 public function getProductName()
79 {
80 return $this->productName;
81 }
82
86 public function getProductUrl()
87 {
88 return $this->productUrl;
89 }
90
94 public function getCopyright()
95 {
96 return $this->copyright;
97 }
98
102 public function getCopyrightUrl()
103 {
104 return $this->copyrightUrl;
105 }
106
110 public function getVendorName()
111 {
112 return $this->vendorName;
113 }
114
118 public function getVendorUrl()
119 {
120 return $this->vendorUrl;
121 }
122
126 public function getSupportUrl()
127 {
128 return $this->supportUrl;
129 }
130
134 public function getLicence()
135 {
136 return $this->licence? : static::LICENCE_CUSTOM;
137 }
138
142 public function getLicenceUrl()
143 {
144 static $urls = [
145 self::LICENCE_MIT => "https://opensource.org/licenses/MIT",
146 self::LICENCE_BSD2 => "https://opensource.org/licenses/BSD-2-Clause",
147 self::LICENCE_BSD3 => "https://opensource.org/licenses/BSD-3-Clause",
148 self::LICENCE_APACHE2 => "http://www.apache.org/licenses/LICENSE-2.0",
149 self::LICENCE_W3C => "https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document",
150 self::LICENCE_OFL => "https://scripts.sil.org/OFL",
151 self::LICENCE_LGPL2 => "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html",
152 ];
153
154 if($this->licenceUrl === null && isset($urls[$this->licence]))
155 {
156 return $urls[$this->licence];
157 }
158
159 return $this->licenceUrl;
160 }
161
165 public function getLicenceText()
166 {
167 return $this->licenceText;
168 }
169
175 {
176 $this->productName = $productName;
177 return $this;
178 }
179
184 public function setProductUrl($productUrl)
185 {
186 $this->productUrl = $productUrl;
187 return $this;
188 }
189
194 public function setCopyright($copyright)
195 {
196 $this->copyright = $copyright;
197 return $this;
198 }
199
205 {
206 $this->copyrightUrl = $copyrightUrl;
207 return $this;
208 }
209
214 public function setVendorName($vendorName)
215 {
216 $this->vendorName = $vendorName;
217 return $this;
218 }
219
224 public function setVendorUrl($vendorUrl)
225 {
226 $this->vendorUrl = $vendorUrl;
227 return $this;
228 }
229
234 public function setSupportUrl($supportUrl)
235 {
236 $this->supportUrl = $supportUrl;
237 return $this;
238 }
239
244 public function setLicence($licence)
245 {
246 $this->licence = $licence;
247 return $this;
248 }
249
254 public function setLicenceUrl($licenceUrl)
255 {
256 $this->licenceUrl = $licenceUrl;
257 return $this;
258 }
259
265 {
266 $this->licenceText = $licenceText;
267 return $this;
268 }
269
274 public static function getThirdPartySoftware()
275 {
276 $software = static::getMainThirdParty();
277
278 $event = new Main\Event("main", "onGetThirdPartySoftware");
279 $event->send();
280
281 foreach($event->getResults() as $evenResult)
282 {
283 if($evenResult->getType() == Main\EventResult::SUCCESS)
284 {
285 $result = $evenResult->getParameters();
286 if(is_array($result))
287 {
288 $software = array_merge($software, $result);
289 }
290 }
291 }
292
293 usort($software, function($a, $b){
294 return strcasecmp($a->getProductName(), $b->getProductName());
295 });
296
297 return $software;
298 }
299
300 protected static function getMainThirdParty()
301 {
302 return [
303 // main/install/js/main/jquery
304 (new static("jQuery JavaScript Library v1.7"))
305 ->setProductUrl("http://jquery.com/")
306 ->setCopyright("Copyright 2011, John Resig")
307 ->setLicence(static::LICENCE_MIT)
308 ->setLicenceUrl("http://jquery.org/license"),
309
310 // main/install/js/main/jquery
311 (new static("jQuery JavaScript Library v1.8"))
312 ->setProductUrl("http://jquery.com/")
313 ->setCopyright("Copyright 2012 jQuery Foundation and other contributors")
314 ->setLicence(static::LICENCE_MIT)
315 ->setLicenceUrl("http://jquery.org/license"),
316
317 // main/install/js/main/jquery
318 (new static("jQuery JavaScript Library v2.1"))
319 ->setProductUrl("http://jquery.com/")
320 ->setCopyright("Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors")
321 ->setLicence(static::LICENCE_MIT)
322 ->setLicenceUrl("http://jquery.org/license"),
323
324 // main/install/js/main/jquery
325 (new static("jQuery JavaScript Library v3"))
326 ->setProductUrl("http://jquery.com/")
327 ->setCopyright("Copyright JS Foundation and other contributors")
328 ->setLicence(static::LICENCE_MIT)
329 ->setLicenceUrl("http://jquery.org/license"),
330
331 // main/install/js/main/amcharts
332 (new static("amCharts"))
333 ->setProductUrl("https://www.amcharts.com/")
334 ->setCopyright("Copyright (c) 2018 amCharts (Antanas Marcelionis, Martynas Majeris)")
335 ->setLicence(static::LICENCE_COMMERCIAL),
336
337 // main/install/js/main/imageeditor/external/react
338 (new static("React"))
339 ->setProductUrl("https://reactjs.org/")
340 ->setCopyright("Copyright (c) Facebook, Inc. and its affiliates")
341 ->setLicence(static::LICENCE_MIT),
342
343 // main/install/js/main/imageeditor/external/photoeditorsdk
344 (new static("PhotoEditorSDK"))
345 ->setProductUrl("https://photoeditorsdk.com/")
346 ->setCopyright("Copyright (C) 2016-2019 img.ly GmbH <contact@img.ly>")
347 ->setLicence(static::LICENCE_COMMERCIAL),
348
349 // main/install/js/main/json
350 (new static("json2.js"))
351 ->setProductUrl("https://github.com/douglascrockford/JSON-js")
352 ->setCopyright("Douglas Crockford")
353 ->setLicence(static::LICENCE_PUBLIC_DOMAIN),
354
355 // main/install/js/main/md5
356 (new static("js-md5"))
357 ->setProductUrl("https://github.com/emn178/js-md5")
358 ->setCopyright("copyright Chen, Yi-Cyuan 2014-2017")
359 ->setLicence(static::LICENCE_MIT),
360
361 // main/install/js/main/sha1
362 (new static("js-sha1"))
363 ->setProductUrl("https://github.com/emn178/js-sha1")
364 ->setCopyright("copyright Chen, Yi-Cyuan 2014-2017")
365 ->setLicence(static::LICENCE_MIT),
366
367 // main/install/js/main/polyfill/intersectionobserver
368 (new static("IntersectionObserver"))
369 ->setProductUrl("https://github.com/w3c/IntersectionObserver/")
370 ->setCopyright("Copyright 2016 Google Inc.")
371 ->setLicence(static::LICENCE_W3C),
372
373 // main/install/js/main/qrcode
374 (new static("QRCode for JavaScript"))
375 ->setProductUrl("https://kazuhikoarase.github.io/qrcode-generator/")
376 ->setCopyright("Copyright (c) 2009 Kazuhiko Arase")
377 ->setLicence(static::LICENCE_MIT),
378
379 // main/install/js/main/recorder
380 (new static("lamejs"))
381 ->setProductUrl("https://github.com/zhuker/lamejs")
382 ->setCopyright("Alex Zhukov")
383 ->setLicenceUrl("https://raw.githubusercontent.com/zhuker/lamejs/master/LICENSE"),
384
385 // main/install/js/main/webrtc
386 (new static("WebRTC adapter"))
387 ->setProductUrl("https://github.com/webrtchacks/adapter")
388 ->setCopyright("Copyright (c) 2017 The WebRTC project authors")
389 ->setLicence(static::LICENCE_BSD3)
390 ->setLicenceUrl("https://raw.githubusercontent.com/webrtcHacks/adapter/master/LICENSE.md"),
391
392 // main/install/js/main/rsasecurity.js
393 (new static("Base64 js"))
394 ->setCopyright("Tyler Akins")
395 ->setLicence(static::LICENCE_PUBLIC_DOMAIN),
396
397 // main/install/js/main/rsasecurity.js
398 (new static("BigInt js"))
399 ->setCopyright("Copyright 1998-2005 David Shapiro")
400 ->setLicenceText(
401"You may use, re-use, abuse, copy, and modify this code to your liking, but please keep this header.
402
403Thanks!
404"),
405
406 // main/install/js/main/rsasecurity.js
407 (new static("BarrettMu js"))
408 ->setCopyright("Copyright 2004-2005 David Shapiro")
409 ->setLicenceText(
410"You may use, re-use, abuse, copy, and modify this code to your liking, but please keep this header.
411
412Thanks!
413"),
414
415 // main/install/js/main/rsasecurity.js
416 (new static("RSA js"))
417 ->setCopyright("Copyright 1998-2005 David Shapiro")
418 ->setLicenceText(
419"You may use, re-use, abuse, copy, and modify this code to your liking, but please keep this header.
420
421Thanks!
422"),
423
424 // main/lib/web/jwk.php
425 (new static("PHP-JWT"))
426 ->setProductUrl("https://github.com/fproject/php-jwt")
427 ->setCopyright("Bui Sy Nguyen <nguyenbs@gmail.com>")
428 ->setLicence(static::LICENCE_BSD3)
429 ->setLicenceUrl("https://github.com/fproject/php-jwt/blob/master/LICENSE"),
430
431 // main/lib/web/jwt.php
432 (new static("PHP-JWT"))
433 ->setProductUrl("https://github.com/firebase/php-jwt")
434 ->setCopyright("Neuman Vong <neuman@twilio.com>, Anant Narayanan <anant@php.net>")
435 ->setLicence(static::LICENCE_BSD3)
436 ->setLicenceUrl("https://github.com/firebase/php-jwt/blob/master/LICENSE"),
437
438 // main/install/fonts
439 (new static("Fonts \"PT Sans\", \"PT Serif\""))
440 ->setProductUrl("http://www.paratype.com/public")
441 ->setCopyright("Copyright (c) 2010, ParaType Ltd.")
442 ->setLicence(static::LICENCE_OFL),
443
444 // main/install/css/main/bootstrap.css
445 (new static("Bootstrap v3.3"))
446 ->setProductUrl("https://getbootstrap.com/")
447 ->setCopyright("Copyright 2011-2016 Twitter, Inc.")
448 ->setLicence(static::LICENCE_MIT)
449 ->setLicenceUrl("https://github.com/twbs/bootstrap/blob/main/LICENSE"),
450
451 // main/install/css/main/bootstrap_v4
452 // ui/install/js/ui/bootstrap4
453 (new static("Bootstrap v4"))
454 ->setProductUrl("https://getbootstrap.com/")
455 ->setCopyright("Copyright 2011-2019 The Bootstrap Authors. Copyright 2011-2019 Twitter, Inc.")
456 ->setLicence(static::LICENCE_MIT)
457 ->setLicenceUrl("https://github.com/twbs/bootstrap/blob/main/LICENSE"),
458
459 // main/install/fonts
460 (new static("Font Awesome 6"))
461 ->setProductUrl("http://fontawesome.io")
462 ->setCopyright("Fonticons, Inc.")
463 ->setLicence("Font: SIL OFL 1.1, CSS: MIT License")
464 ->setLicenceUrl("http://fontawesome.io/license"),
465
466 // main/install/fonts
467 (new static("Open Sans Font"))
468 ->setProductUrl("https://fonts.google.com/specimen/Open+Sans")
469 ->setCopyright("Google Inc.")
470 ->setLicence(static::LICENCE_APACHE2),
471
472 // main/install/js/main/phonenumber/flag
473 (new static("Flags Images"))
474 ->setProductUrl("http://www.gosquared.com/")
475 ->setCopyright("Copyright (c) 2013 Go Squared Ltd")
476 ->setLicenceText(
477"Copyright (c) 2013 Go Squared Ltd. http://www.gosquared.com/
478
479Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
480
481The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
482
483THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
484"),
485
486 // main/install/js/main/polyfill/core
487 // crm/install/js/crm/site/form/babelhelpers/
488 (new static("Babel"))
489 ->setProductUrl("https://github.com/babel/babel")
490 ->setCopyright("(c) 2018 Babel")
491 ->setLicence(static::LICENCE_MIT)
492 ->setLicenceUrl("https://github.com/babel/babel/blob/main/LICENSE"),
493
494 // main/install/js/main/polyfill/core
495 (new static("Babel Regenerator Runtime"))
496 ->setCopyright("Copyright (c) 2014-present, Facebook, Inc.")
497 ->setLicence(static::LICENCE_MIT),
498
499 // main/vendor/psr/container
500 (new static("PSR Container"))
501 ->setProductUrl("https://github.com/container-interop/fig-standards/")
502 ->setCopyright("Copyright (c) 2013-2016 container-interop. Copyright (c) 2016 PHP Framework Interoperability Group")
503 ->setLicence(static::LICENCE_MIT)
504 ->setLicenceUrl("https://github.com/container-interop/fig-standards/blob/master/LICENSE-MIT.md"),
505
506 // main/vendor/psr/log
507 (new static("PSR Log"))
508 ->setProductUrl("https://github.com/php-fig/log/")
509 ->setCopyright("Copyright (c) 2012 PHP Framework Interoperability Group")
510 ->setLicence(static::LICENCE_MIT)
511 ->setLicenceUrl("https://github.com/php-fig/log/blob/master/LICENSE"),
512
513 // main/vendor/psr/http-message
514 (new static("PSR HTTP Message"))
515 ->setProductUrl("https://github.com/php-fig/http-message")
516 ->setCopyright("Copyright (c) 2014 PHP Framework Interoperability Group")
517 ->setLicence(static::LICENCE_MIT)
518 ->setLicenceUrl("https://github.com/php-fig/http-message/blob/master/LICENSE"),
519
520 // main/vendor/psr/http-client
521 (new static("PSR HTTP Client"))
522 ->setProductUrl("https://github.com/php-fig/http-client")
523 ->setCopyright("Copyright (c) 2017 PHP Framework Interoperability Group")
524 ->setLicence(static::LICENCE_MIT)
525 ->setLicenceUrl("https://github.com/php-fig/http-client/blob/master/LICENSE"),
526
527 // main/vendor/php-http/promise
528 (new static("php-http/promise"))
529 ->setProductUrl("https://github.com/php-http/promise")
530 ->setCopyright("Copyright (c) 2015-2016 PHP HTTP Team <team@php-http.org>")
531 ->setLicence(static::LICENCE_MIT)
532 ->setLicenceUrl("https://github.com/php-http/promise/blob/master/LICENSE"),
533
534 // main/install/js/main/d3js
535 (new static("D3.js"))
536 ->setProductUrl("https://d3js.org")
537 ->setCopyright("Copyright 2020 Mike Bostock")
538 ->setLicence(static::LICENCE_BSD3)
539 ->setLicenceUrl("https://github.com/d3/d3/blob/master/LICENSE"),
540
541 // main/install/js/main/helper/runtime.js
542 (new static("Swiffy runtime"))
543 ->setCopyright("Copyright 2014 Google Inc.")
544 ->setLicenceText(
545"Copyright 2014 Google Inc.
546
547Swiffy runtime version 7.2.0
548
549In addition to the Google Terms of Service (http://www.google.com/accounts/TOS), Google grants you and the Google Swiffy end users a personal, worldwide, royalty-free, non-assignable and non-exclusive license to use the Google Swiffy runtime to host it for Google Swiffy end users and to use it in connection with the Google Swiffy service.
550"),
551
552 // ui/install/js/ui/mustache/mustache.js
553 // sale/install/components/bitrix/sale.basket.basket/templates/.default/js/mustache.js
554 // sale/install/components/bitrix/sale.basket.basket/templates/bootstrap_v4/js/mustache.js
555 (new static("mustache.js"))
556 ->setProductUrl("http://github.com/janl/mustache.js")
557 ->setCopyright("Copyright (c) 2009 Chris Wanstrath (Ruby). Copyright (c) 2010-2014 Jan Lehnardt (JavaScript). Copyright (c) 2010-2015 The mustache.js community")
558 ->setLicence(static::LICENCE_MIT)
559 ->setLicenceUrl("https://github.com/janl/mustache.js/blob/master/LICENSE"),
560
561 // ui/install/js/ui/pdfjs
562 // ui/install/js/ui/pdfjs-ie11
563 // fileman/install/components/bitrix/pdf.viewer
564 (new static("PDF.js"))
565 ->setProductUrl("https://github.com/mozilla/pdf.js")
566 ->setCopyright("Copyright 2018 Mozilla Foundation")
567 ->setLicence(static::LICENCE_APACHE2)
568 ->setLicenceUrl("http://www.apache.org/licenses/LICENSE-2.0"),
569
570 // ui/install/js/ui/highlightjs
571 (new static("Highlight.js"))
572 ->setProductUrl("https://github.com/highlightjs/highlight.js")
573 ->setCopyright("Copyright (c) 2006, Ivan Sagalaev")
574 ->setLicence(static::LICENCE_BSD3)
575 ->setLicenceUrl("https://github.com/highlightjs/highlight.js/blob/master/LICENSE"),
576
577 // for landing
578 // landing/install/templates/landing24/assets/vendor
579 (new static("Animate.css"))
580 ->setProductUrl("http://daneden.me/animate")
581 ->setCopyright("Copyright (c) 2017 Daniel Eden")
582 ->setLicence(static::LICENCE_MIT),
583
584 // landing/install/templates/landing24/assets/vendor
585 (new static("jQuery Easing v1.3"))
586 ->setProductUrl("http://gsgd.co.uk/sandbox/jquery/easing/")
587 ->setCopyright("Copyright (c) 2008 George McGinley Smith")
588 ->setLicence(static::LICENCE_BSD3),
589
590 // landing/install/templates/landing24/assets/vendor
591 (new static("The Final Countdown for jQuery v2.2.0"))
592 ->setProductUrl("http://hilios.github.io/jQuery.countdown/")
593 ->setCopyright("Copyright (c) 2016 Edson Hilios")
594 ->setLicence(static::LICENCE_MIT)
595 ->setLicenceUrl("https://github.com/hilios/jQuery.countdown/blob/master/LICENSE.md"),
596
597 // landing/install/templates/landing24/assets/vendor
598 (new static("Slick carousel"))
599 ->setProductUrl("https://github.com/kenwheeler/slick/")
600 ->setCopyright("Copyright (c) 2017 Ken Wheeler")
601 ->setLicence(static::LICENCE_MIT)
602 ->setLicenceUrl("https://github.com/kenwheeler/slick/blob/master/LICENSE"),
603
604 // landing/install/templates/landing24/assets/vendor
605 (new static("FancyBox v3.2.5"))
606 ->setProductUrl("http://fancyapps.com/fancybox/")
607 ->setCopyright("Copyright 2017 fancyApps")
608 ->setLicence(static::LICENCE_COMMERCIAL),
609
610 // landing/install/templates/landing24/assets/vendor
611 (new static("Simple Line Icons"))
612 ->setProductUrl("https://simplelineicons.github.io/")
613 ->setCopyright("Originally brought to you by Sabbir & Contributors")
614 ->setLicence(static::LICENCE_MIT),
615
616 // landing/install/templates/landing24/assets/vendor
617 (new static("Hamburgers.css"))
618 ->setProductUrl("https://jonsuh.com/hamburgers/")
619 ->setCopyright("@author Jonathan Suh @jonsuh")
620 ->setLicence(static::LICENCE_MIT)
621 ->setLicenceUrl("https://github.com/jonsuh/hamburgers/blob/master/LICENSE"),
622
623 (new static("Unify - Responsive Website Template v2.0.0"))
624 ->setProductUrl("https://wrapbootstrap.com/theme/unify-responsive-website-template-WB0412697")
625 ->setCopyright("Author: Htmlstream")
626 ->setLicence(static::LICENCE_COMMERCIAL),
627
628 (new static("Unsplash"))
629 ->setProductUrl("https://unsplash.com/")
630 ->setLicenceText("Unsplash grants you an irrevocable, nonexclusive, worldwide copyright license to download, copy, modify, distribute, perform, and use photos from Unsplash for free, including for commercial purposes, without permission from or attributing the photographer or Unsplash. This license does not include the right to compile photos from Unsplash to replicate a similar or competing service."),
631
632 // ui/install/js/ui/dexie
633 (new static("Dexie.js - a minimalistic wrapper for IndexedDB v3.2.2"))
634 ->setCopyright("David Fahlander, david.fahlander@gmail.com")
635 ->setProductUrl("https://dexie.org")
636 ->setLicence(static::LICENCE_APACHE2)
637 ->setLicenceUrl("http://www.apache.org/licenses/"),
638
639 // ui/install/js/ui/progressbarjs
640 (new static("ProgressBar.js v1.1.0"))
641 ->setCopyright("Copyright 2016, Kimmo Brunfeldt")
642 ->setProductUrl("https://kimmobrunfeldt.github.io/progressbar.js")
643 ->setLicence(static::LICENCE_MIT),
644
645 // ui/install/js/ui/vue
646 // crm/install/js/crm/site/form/src/vue
647 (new static("Vue.js v2.6.14"))
648 ->setCopyright("Copyright 2014-2021, Evan You")
649 ->setProductUrl("https://v2.vuejs.org")
650 ->setLicence(static::LICENCE_MIT),
651
652 // ui/install/js/ui/vue/vuex
653 (new static("Vuex v3.6.2"))
654 ->setCopyright("Copyright 2021, Evan You")
655 ->setProductUrl("https://v3.vuex.vuejs.org/")
656 ->setLicence(static::LICENCE_MIT),
657
658 // ui/install/js/ui/vue/router
659 (new static("Vue-router v3.6.5"))
660 ->setCopyright("Copyright 2021, Evan You")
661 ->setProductUrl("https://v3.router.vuejs.org/")
662 ->setLicence(static::LICENCE_MIT),
663
664 // ui/install/js/ui/vue/portal
665 (new static("Portal Vue v2.1.7"))
666 ->setCopyright("Copyright 2019, Thorsten Lunborg")
667 ->setProductUrl("https://portal-vue.linusb.org/")
668 ->setLicence(static::LICENCE_MIT),
669
670 // ui/install/js/ui/vue3/vue
671 (new static("Vue v3.2.40"))
672 ->setCopyright("Copyright 2014-2022 Evan You")
673 ->setProductUrl("https://vuejs.org/")
674 ->setLicence(static::LICENCE_MIT),
675
676 // ui/install/js/ui/vue3/vue/dev/src/vueuse.js
677 (new static("Utilities from VueUse collection"))
678 ->setCopyright("Copyright 2019-2022 Anthony Fu")
679 ->setProductUrl("https://vueuse.org/")
680 ->setLicence(static::LICENCE_MIT),
681
682 // ui/install/js/ui/vue3/vuex
683 (new static("Vuex v4.0.2"))
684 ->setCopyright("Copyright 2021 Evan You")
685 ->setProductUrl("https://vuex.vuejs.org/")
686 ->setLicence(static::LICENCE_MIT),
687
688 // ui/install/js/ui/vue3/router
689 (new static("Vue-router v4.1.5"))
690 ->setCopyright("Copyright 2022 Eduardo San Martin Morote")
691 ->setProductUrl("https://router.vuejs.org/")
692 ->setLicence(static::LICENCE_MIT),
693
694 // ui/install/js/ui/vue3/pinia
695 (new static("Pinia v2.0.22"))
696 ->setCopyright("Copyright 2022 Eduardo San Martin Morote")
697 ->setProductUrl("https://pinia.vuejs.org/")
698 ->setLicence(static::LICENCE_MIT),
699
700 // advertising/install/components/bitrix/advertising.banner/templates/jssor
701 (new static("Jssor Slider"))
702 ->setCopyright("Jssor Slider 2009-2020")
703 ->setProductUrl("https://www.jssor.com")
704 ->setLicence(static::LICENCE_MIT),
705
706 // advertising/install/components/bitrix/advertising.banner/templates/nivo
707 (new static("jQuery Nivo Slider v3.2"))
708 ->setCopyright("Copyright 2012, Dev7studios")
709 ->setProductUrl("http://nivo.dev7studios.com")
710 ->setLicence(static::LICENCE_MIT),
711
712 // fileman/install/js/fileman/player/videojs
713 (new static("Video.js v5.16.0"))
714 ->setCopyright("Copyright Brightcove, Inc. <https://www.brightcove.com/>")
715 ->setProductUrl("http://videojs.com/")
716 ->setLicence(static::LICENCE_APACHE2),
717
718 // fileman/install/js/fileman/player/videojs
719 (new static("videojs-contrib-hls v5.2.1"))
720 ->setCopyright("Copyright 2017 Brightcove, Inc. <https://www.brightcove.com/>")
721 ->setLicence(static::LICENCE_APACHE2),
722
723 // fileman/install/js/fileman/player/videojs
724 (new static("videojs-playlist-thumbs v0.1.5"))
725 ->setCopyright("Copyright 2016 Emmanuel Alves <manel.pb@gmail.com>")
726 ->setLicence(static::LICENCE_MIT),
727
728 // fileman/install/js/fileman/player/videojs
729 (new static("videojs-vimeo v2.0.2"))
730 ->setCopyright("Copyright Benoit Tremblay <trembl.ben@gmail.com>")
731 ->setLicence(static::LICENCE_MIT),
732
733 // fileman/install/js/fileman/player/videojs
734 (new static("videojs-youtube v2.0.2"))
735 ->setCopyright("Copyright Benoit Tremblay <trembl.ben@gmail.com>")
736 ->setLicence(static::LICENCE_MIT),
737
738 // documentgenerator/lib/external
739 (new static("Petrovich v1.0.0"))
740 ->setCopyright("Mike Bazhenov")
741 ->setProductUrl('https://github.com/MikeBazhenov/petrovich')
742 ->setLicence(static::LICENCE_MIT),
743
744 // ui/install/js/ui/confetti
745 (new static("Canvas confetti"))
746 ->setCopyright("Copyright (c) 2020, Kiril Vatev")
747 ->setProductUrl('https://github.com/catdad/canvas-confetti')
748 ->setLicence(static::LICENCE_MIT),
749
750 // location/install/js/location/osm/leaflet
751 (new static("Leaflet"))
752 ->setCopyright("Copyright (c) 2010-2019, Vladimir Agafonkin. Copyright (c) 2010-2011, CloudMade")
753 ->setProductUrl('https://github.com/Leaflet/Leaflet')
754 ->setLicence(static::LICENCE_BSD2),
755
756 // ui/install/js/ui/entity-selector/src/search/unicode-words.js
757 // mobile/install/mobileapp/mobile/extensions/bitrix/selector/utils/word-separator
758 (new static("Lodash"))
759 ->setCopyright("Copyright OpenJS Foundation and other contributors <https://openjsf.org/>")
760 ->setProductUrl('https://lodash.com/')
761 ->setLicence(static::LICENCE_MIT),
762
763 // main/data/weak_passwords
764 (new static("SecLists"))
765 ->setCopyright("Copyright (c) 2018 Daniel Miessler")
766 ->setProductUrl('https://github.com/danielmiessler/SecLists')
767 ->setLicence(static::LICENCE_MIT)
768 ->setLicenceUrl('https://github.com/danielmiessler/SecLists/blob/master/LICENSE'),
769
770 // intranet/install/templates/login/font
771 (new static('Font Montserrat'))
772 ->setCopyright('Copyright 2011 The Montserrat Project Authors')
773 ->setProductUrl('https://fonts.google.com/specimen/Montserrat')
774 ->setLicence(static::LICENCE_OFL),
775
776 // ui/lib/barcode
777 (new static("Barcode"))
778 ->setCopyright("Copyright (c) 2016-2018 Kreative Software")
779 ->setProductUrl('https://github.com/kreativekorp/barcode')
780 ->setLicence(static::LICENCE_MIT)
781 ->setLicenceUrl('https://github.com/kreativekorp/barcode/blob/master/LICENSE'),
782
783 // main/vendor/phpmailer
784 (new static("PHPMailer"))
785 ->setCopyright("Copyright 2012 - 2020 Marcus Bointon, 2010 - 2012 Jim Jagielski, 2004 - 2009 Andy Prevost")
786 ->setProductUrl('https://github.com/PHPMailer/PHPMailer')
787 ->setLicence(static::LICENCE_LGPL2)
788 ->setLicenceUrl('https://github.com/PHPMailer/PHPMailer/blob/master/LICENSE'),
789
790 // landing/install/js/landing/screenshoter
791 (new static("html-to-image"))
792 ->setCopyright("Copyright (c) 2017-2021 bubkoo")
793 ->setProductUrl('https://github.com/bubkoo/html-to-image')
794 ->setLicence(static::LICENCE_MIT)
795 ->setLicenceUrl("https://github.com/bubkoo/html-to-image/blob/master/LICENSE"),
796
797 // sale/general/tfpdf
798 (new static("tFPDF (based on FPDF 1.7)"))
799 ->setCopyright("Ian Back <ianb@bpm1.com>")
800 ->setProductUrl('http://www.fpdf.org/en/script/script92.php')
801 ->setLicence(static::LICENCE_LGPL2),
802
803 // conversion/lib/internals/mobiledetect.php
804 (new static("Mobile Detect Library"))
805 ->setCopyright("Copyright (c) 2021 Serban Ghita, Nick Ilyin and contributors")
806 ->setProductUrl('https://github.com/serbanghita/Mobile-Detect')
807 ->setLicence(static::LICENCE_MIT)
808 ->setLicenceUrl("https://github.com/serbanghita/Mobile-Detect/blob/5.x/LICENSE"),
809
810 // fileman/install/js/fileman/html_editor/range.js
811 (new static("Rangy"))
812 ->setCopyright("Copyright 2013, Tim Down")
813 ->setProductUrl('http://code.google.com/p/rangy/')
814 ->setLicence(static::LICENCE_MIT),
815
816 // landing/install/js/landing/polyfill.js
817 (new static("loadCSS"))
818 ->setCopyright("[c]2017 Filament Group, Inc.")
819 ->setLicence(static::LICENCE_MIT),
820
821 // landing/install/js/landing/external/webfontloader
822 (new static("Web Font Loader"))
823 ->setCopyright("Copyright 2016 Small Batch, Inc., (c) Adobe Systems, Google")
824 ->setLicence(static::LICENCE_APACHE2),
825
826 // mobileapp/install/js/mobileapp
827 (new static("Apache Cordova"))
828 ->setCopyright("Copyright 2012 The Apache Software Foundation")
829 ->setLicence(static::LICENCE_APACHE2),
830
831 // faceid/install/components/bitrix/faceid.tracker/templates/.default/smoother.js
832 // faceid/install/js/faceid/WebPhotoMaker/smoother.js
833 (new static("Smoother"))
834 ->setCopyright("Copyright 2014 Martin Tschirsich")
835 ->setLicence(static::LICENCE_MIT),
836
837 // ui/install/js/ui/fonts/comforter-brush
838 (new static("Font Comforter Brush"))
839 ->setCopyright("Copyright 2015 The Comforter Brush Project Authors")
840 ->setProductUrl('https://github.com/googlefonts/comforter-brush')
841 ->setLicence(static::LICENCE_OFL),
842
843 // main/vendor/geoip2
844 // main/vendor/maxmind-db
845 (new static("GeoIP2 PHP API"))
846 ->setCopyright("Copyright (c) 2013-2020 by MaxMind, Inc.")
847 ->setProductUrl('https://github.com/maxmind/GeoIP2-php')
848 ->setLicence(static::LICENCE_APACHE2),
849
850 // main/install/js/main/rating
851 (new static("Lottie-web"))
852 ->setCopyright("Copyright (c) 2015 Bodymovin")
853 ->setProductUrl('https://github.com/airbnb/lottie-web')
854 ->setLicence(static::LICENCE_MIT),
855
856 // mobileapp/mobile/extensions/bitrix/utils/url/punycode.js
857 (new static("Punycode.js"))
858 ->setCopyright("Copyright Mathias Bynens <https://mathiasbynens.be/>")
859 ->setProductUrl('https://github.com/mathiasbynens/punycode.js')
860 ->setLicence(static::LICENCE_MIT),
861
862 // voximplant/install/js/voximplant/voximplant.min.js
863 (new static("Voximplant Web SDK"))
864 ->setCopyright("Copyright Voximplant <https://voximplant.com/>")
865 ->setProductUrl('https://www.npmjs.com/package/voximplant-websdk')
866 ->setLicence(static::LICENCE_COMMERCIAL),
867
868 // main/vendor/nikic/php-parser
869 (new static("PHP Parser"))
870 ->setCopyright('Copyright (c) 2011, Nikita Popov')
871 ->setProductUrl('https://github.com/nikic/PHP-Parser/')
872 ->setLicence(static::LICENCE_BSD3)
873 ->setLicenceUrl('https://github.com/nikic/PHP-Parser/blob/4.x/LICENSE'),
874 ];
875 }
876}
877
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29