Commit cabfeeeff86bb926a05a7db661318a0b3230774e

Authored by Anastasia
1 parent 94154eea

capcha

common/config/main.php
... ... @@ -29,7 +29,7 @@
29 29  
30 30 'reCaptcha' => [
31 31 'name' => 'reCaptcha',
32   - 'class' => 'sashsvamir\yii2\recaptcha\ReCaptcha',
  32 + 'class' => 'himiklab\yii2\recaptcha\ReCaptcha',
33 33 'siteKey' => '6LcZcmQUAAAAANF1TashIYAvYtTBCscpTlPe1q6T',
34 34 'secret' => '6LcZcmQUAAAAAFH4Ru4S6QnmB3An3PJWglmV',
35 35 ],
... ...
composer.json
... ... @@ -18,8 +18,9 @@
18 18 "minimum-stability": "RC",
19 19 "require": {
20 20 "php": ">=7.0",
21   - "artweb/artbox-core": ">0.0.10",
22   - "sashsvamir/yii2-recaptcha-widget": "dev-master"
  21 + "artweb/artbox-core" : ">0.0.10",
  22 + "himiklab/yii2-recaptcha-widget": "*"
  23 +
23 24 },
24 25 "require-dev": {
25 26 "yiisoft/yii2-debug": "~2.0.0",
... ...
composer.lock
... ... @@ -4,8 +4,7 @@
4 4 "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5 5 "This file is @generated automatically"
6 6 ],
7   - "hash": "9a6e92d2cba1e4da99f27abd0a2ae4f3",
8   - "content-hash": "f335aaff8ec5703aad48c3b2fd89b0c1",
  7 + "content-hash": "46c28e5733466f00f8bfe25c3564e1aa",
9 8 "packages": [
10 9 {
11 10 "name": "2amigos/yii2-tinymce-widget",
... ... @@ -65,7 +64,7 @@
65 64 "yii 2",
66 65 "yii2"
67 66 ],
68   - "time": "2017-06-09 14:12:14"
  67 + "time": "2017-06-09T14:12:14+00:00"
69 68 },
70 69 {
71 70 "name": "artweb/artbox-core",
... ... @@ -126,7 +125,7 @@
126 125 "BSD-3-Clause"
127 126 ],
128 127 "description": "Artbox core extension",
129   - "time": "2018-05-21 12:55:30"
  128 + "time": "2018-05-21T12:55:30+00:00"
130 129 },
131 130 {
132 131 "name": "bower-asset/amcharts",
... ... @@ -538,7 +537,7 @@
538 537 "markdown",
539 538 "markdown-extra"
540 539 ],
541   - "time": "2017-07-16 21:13:23"
  540 + "time": "2017-07-16T21:13:23+00:00"
542 541 },
543 542 {
544 543 "name": "container-interop/container-interop",
... ... @@ -569,7 +568,7 @@
569 568 ],
570 569 "description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
571 570 "homepage": "https://github.com/container-interop/container-interop",
572   - "time": "2017-02-14 19:40:03"
  571 + "time": "2017-02-14T19:40:03+00:00"
573 572 },
574 573 {
575 574 "name": "doctrine/lexer",
... ... @@ -623,7 +622,7 @@
623 622 "lexer",
624 623 "parser"
625 624 ],
626   - "time": "2014-09-09 13:34:57"
  625 + "time": "2014-09-09T13:34:57+00:00"
627 626 },
628 627 {
629 628 "name": "egulias/email-validator",
... ... @@ -680,7 +679,7 @@
680 679 "validation",
681 680 "validator"
682 681 ],
683   - "time": "2018-04-10 10:11:19"
  682 + "time": "2018-04-10T10:11:19+00:00"
684 683 },
685 684 {
686 685 "name": "ezyang/htmlpurifier",
... ... @@ -727,7 +726,7 @@
727 726 "keywords": [
728 727 "html"
729 728 ],
730   - "time": "2018-02-23 01:58:20"
  729 + "time": "2018-02-23T01:58:20+00:00"
731 730 },
732 731 {
733 732 "name": "firebase/php-jwt",
... ... @@ -773,7 +772,7 @@
773 772 ],
774 773 "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.",
775 774 "homepage": "https://github.com/firebase/php-jwt",
776   - "time": "2017-06-27 22:17:23"
  775 + "time": "2017-06-27T22:17:23+00:00"
777 776 },
778 777 {
779 778 "name": "fortawesome/font-awesome",
... ... @@ -821,7 +820,7 @@
821 820 "font",
822 821 "icon"
823 822 ],
824   - "time": "2016-10-24 15:52:54"
  823 + "time": "2016-10-24T15:52:54+00:00"
825 824 },
826 825 {
827 826 "name": "google/apiclient",
... ... @@ -880,7 +879,7 @@
880 879 "keywords": [
881 880 "google"
882 881 ],
883   - "time": "2017-11-03 01:19:53"
  882 + "time": "2017-11-03T01:19:53+00:00"
884 883 },
885 884 {
886 885 "name": "google/apiclient-services",
... ... @@ -917,7 +916,7 @@
917 916 "keywords": [
918 917 "google"
919 918 ],
920   - "time": "2018-05-19 00:23:51"
  919 + "time": "2018-05-19T00:23:51+00:00"
921 920 },
922 921 {
923 922 "name": "google/auth",
... ... @@ -964,7 +963,7 @@
964 963 "google",
965 964 "oauth2"
966 965 ],
967   - "time": "2018-04-06 19:26:30"
  966 + "time": "2018-04-06T19:26:30+00:00"
968 967 },
969 968 {
970 969 "name": "guzzlehttp/guzzle",
... ... @@ -1029,7 +1028,7 @@
1029 1028 "rest",
1030 1029 "web service"
1031 1030 ],
1032   - "time": "2018-04-22 15:46:56"
  1031 + "time": "2018-04-22T15:46:56+00:00"
1033 1032 },
1034 1033 {
1035 1034 "name": "guzzlehttp/promises",
... ... @@ -1080,7 +1079,7 @@
1080 1079 "keywords": [
1081 1080 "promise"
1082 1081 ],
1083   - "time": "2016-12-20 10:07:11"
  1082 + "time": "2016-12-20T10:07:11+00:00"
1084 1083 },
1085 1084 {
1086 1085 "name": "guzzlehttp/psr7",
... ... @@ -1145,7 +1144,51 @@
1145 1144 "uri",
1146 1145 "url"
1147 1146 ],
1148   - "time": "2017-03-20 17:10:46"
  1147 + "time": "2017-03-20T17:10:46+00:00"
  1148 + },
  1149 + {
  1150 + "name": "himiklab/yii2-recaptcha-widget",
  1151 + "version": "1.2.1",
  1152 + "source": {
  1153 + "type": "git",
  1154 + "url": "https://github.com/himiklab/yii2-recaptcha-widget.git",
  1155 + "reference": "cc8a023bf51db3b40f1b8532cd94fc00c532edf5"
  1156 + },
  1157 + "dist": {
  1158 + "type": "zip",
  1159 + "url": "https://api.github.com/repos/himiklab/yii2-recaptcha-widget/zipball/cc8a023bf51db3b40f1b8532cd94fc00c532edf5",
  1160 + "reference": "cc8a023bf51db3b40f1b8532cd94fc00c532edf5",
  1161 + "shasum": ""
  1162 + },
  1163 + "require": {
  1164 + "yiisoft/yii2": "~2.0.11",
  1165 + "yiisoft/yii2-httpclient": "*"
  1166 + },
  1167 + "type": "yii2-extension",
  1168 + "autoload": {
  1169 + "psr-4": {
  1170 + "himiklab\\yii2\\recaptcha\\": ""
  1171 + }
  1172 + },
  1173 + "notification-url": "https://packagist.org/downloads/",
  1174 + "license": [
  1175 + "MIT"
  1176 + ],
  1177 + "authors": [
  1178 + {
  1179 + "name": "HimikLab",
  1180 + "homepage": "https://github.com/himiklab/"
  1181 + }
  1182 + ],
  1183 + "description": "Yii2 Google reCAPTCHA widget",
  1184 + "keywords": [
  1185 + "captcha",
  1186 + "google",
  1187 + "recaptcha",
  1188 + "widget",
  1189 + "yii2"
  1190 + ],
  1191 + "time": "2018-07-03T13:34:52+00:00"
1149 1192 },
1150 1193 {
1151 1194 "name": "hiqdev/yii2-asset-icheck",
... ... @@ -1217,7 +1260,7 @@
1217 1260 "iCheck",
1218 1261 "yii2"
1219 1262 ],
1220   - "time": "2016-03-30 10:59:26"
  1263 + "time": "2016-03-30T10:59:26+00:00"
1221 1264 },
1222 1265 {
1223 1266 "name": "hiqdev/yii2-asset-pnotify",
... ... @@ -1279,7 +1322,7 @@
1279 1322 "pnotify",
1280 1323 "yii2"
1281 1324 ],
1282   - "time": "2015-09-09 15:16:38"
  1325 + "time": "2015-09-09T15:16:38+00:00"
1283 1326 },
1284 1327 {
1285 1328 "name": "imagine/imagine",
... ... @@ -1337,7 +1380,7 @@
1337 1380 "image manipulation",
1338 1381 "image processing"
1339 1382 ],
1340   - "time": "2017-05-16 10:31:22"
  1383 + "time": "2017-05-16T10:31:22+00:00"
1341 1384 },
1342 1385 {
1343 1386 "name": "intervention/httpauth",
... ... @@ -1390,7 +1433,7 @@
1390 1433 "http",
1391 1434 "laravel"
1392 1435 ],
1393   - "time": "2017-06-28 17:37:25"
  1436 + "time": "2017-06-28T17:37:25+00:00"
1394 1437 },
1395 1438 {
1396 1439 "name": "kartik-v/bootstrap-fileinput",
... ... @@ -1443,7 +1486,7 @@
1443 1486 "progress",
1444 1487 "upload"
1445 1488 ],
1446   - "time": "2018-04-11 10:34:10"
  1489 + "time": "2018-04-11T10:34:10+00:00"
1447 1490 },
1448 1491 {
1449 1492 "name": "kartik-v/yii2-krajee-base",
... ... @@ -1494,7 +1537,7 @@
1494 1537 "widget",
1495 1538 "yii2"
1496 1539 ],
1497   - "time": "2017-09-29 06:18:14"
  1540 + "time": "2017-09-29T06:18:14+00:00"
1498 1541 },
1499 1542 {
1500 1543 "name": "kartik-v/yii2-widget-colorinput",
... ... @@ -1548,7 +1591,7 @@
1548 1591 "widget",
1549 1592 "yii2"
1550 1593 ],
1551   - "time": "2016-01-14 11:15:49"
  1594 + "time": "2016-01-14T11:15:49+00:00"
1552 1595 },
1553 1596 {
1554 1597 "name": "kartik-v/yii2-widget-datepicker",
... ... @@ -1602,7 +1645,7 @@
1602 1645 "widget",
1603 1646 "yii2"
1604 1647 ],
1605   - "time": "2017-09-04 03:28:47"
  1648 + "time": "2017-09-04T03:28:47+00:00"
1606 1649 },
1607 1650 {
1608 1651 "name": "kartik-v/yii2-widget-fileinput",
... ... @@ -1657,7 +1700,7 @@
1657 1700 "widget",
1658 1701 "yii2"
1659 1702 ],
1660   - "time": "2017-05-25 20:12:30"
  1703 + "time": "2017-05-25T20:12:30+00:00"
1661 1704 },
1662 1705 {
1663 1706 "name": "kartik-v/yii2-widget-select2",
... ... @@ -1710,7 +1753,7 @@
1710 1753 "widget",
1711 1754 "yii2"
1712 1755 ],
1713   - "time": "2017-11-25 06:02:18"
  1756 + "time": "2017-11-25T06:02:18+00:00"
1714 1757 },
1715 1758 {
1716 1759 "name": "monolog/monolog",
... ... @@ -1788,7 +1831,7 @@
1788 1831 "logging",
1789 1832 "psr-3"
1790 1833 ],
1791   - "time": "2017-06-19 01:22:40"
  1834 + "time": "2017-06-19T01:22:40+00:00"
1792 1835 },
1793 1836 {
1794 1837 "name": "mrclay/jsmin-php",
... ... @@ -1840,7 +1883,7 @@
1840 1883 "jsmin",
1841 1884 "minify"
1842 1885 ],
1843   - "time": "2015-03-30 15:04:42"
  1886 + "time": "2015-03-30T15:04:42+00:00"
1844 1887 },
1845 1888 {
1846 1889 "name": "mrclay/minify",
... ... @@ -1902,7 +1945,7 @@
1902 1945 ],
1903 1946 "description": "Minify is a PHP5 app that helps you follow several rules for client-side performance. It combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers",
1904 1947 "homepage": "https://github.com/mrclay/minify",
1905   - "time": "2017-11-03 21:00:15"
  1948 + "time": "2017-11-03T21:00:15+00:00"
1906 1949 },
1907 1950 {
1908 1951 "name": "mrclay/props-dic",
... ... @@ -1954,7 +1997,7 @@
1954 1997 "di",
1955 1998 "di container"
1956 1999 ],
1957   - "time": "2016-02-10 18:59:20"
  2000 + "time": "2016-02-10T18:59:20+00:00"
1958 2001 },
1959 2002 {
1960 2003 "name": "natxet/CssMin",
... ... @@ -2001,7 +2044,7 @@
2001 2044 "css",
2002 2045 "minify"
2003 2046 ],
2004   - "time": "2018-01-09 11:15:01"
  2047 + "time": "2018-01-09T11:15:01+00:00"
2005 2048 },
2006 2049 {
2007 2050 "name": "noam148/yii2-image-manager",
... ... @@ -2050,7 +2093,7 @@
2050 2093 "widget",
2051 2094 "yii2"
2052 2095 ],
2053   - "time": "2018-02-18 20:13:22"
  2096 + "time": "2018-02-18T20:13:22+00:00"
2054 2097 },
2055 2098 {
2056 2099 "name": "noam148/yii2-image-resize",
... ... @@ -2096,7 +2139,7 @@
2096 2139 "resize",
2097 2140 "yii2"
2098 2141 ],
2099   - "time": "2018-02-18 19:23:04"
  2142 + "time": "2018-02-18T19:23:04+00:00"
2100 2143 },
2101 2144 {
2102 2145 "name": "phpseclib/phpseclib",
... ... @@ -2188,7 +2231,7 @@
2188 2231 "x.509",
2189 2232 "x509"
2190 2233 ],
2191   - "time": "2018-04-15 16:55:05"
  2234 + "time": "2018-04-15T16:55:05+00:00"
2192 2235 },
2193 2236 {
2194 2237 "name": "pimple/pimple",
... ... @@ -2238,7 +2281,7 @@
2238 2281 "container",
2239 2282 "dependency injection"
2240 2283 ],
2241   - "time": "2018-01-21 07:42:36"
  2284 + "time": "2018-01-21T07:42:36+00:00"
2242 2285 },
2243 2286 {
2244 2287 "name": "psr/cache",
... ... @@ -2284,7 +2327,7 @@
2284 2327 "psr",
2285 2328 "psr-6"
2286 2329 ],
2287   - "time": "2016-08-06 20:24:11"
  2330 + "time": "2016-08-06T20:24:11+00:00"
2288 2331 },
2289 2332 {
2290 2333 "name": "psr/container",
... ... @@ -2333,7 +2376,7 @@
2333 2376 "container-interop",
2334 2377 "psr"
2335 2378 ],
2336   - "time": "2017-02-14 16:28:37"
  2379 + "time": "2017-02-14T16:28:37+00:00"
2337 2380 },
2338 2381 {
2339 2382 "name": "psr/http-message",
... ... @@ -2383,7 +2426,7 @@
2383 2426 "request",
2384 2427 "response"
2385 2428 ],
2386   - "time": "2016-08-06 14:39:51"
  2429 + "time": "2016-08-06T14:39:51+00:00"
2387 2430 },
2388 2431 {
2389 2432 "name": "psr/log",
... ... @@ -2430,7 +2473,7 @@
2430 2473 "psr",
2431 2474 "psr-3"
2432 2475 ],
2433   - "time": "2016-10-10 12:19:37"
  2476 + "time": "2016-10-10T12:19:37+00:00"
2434 2477 },
2435 2478 {
2436 2479 "name": "rmrevin/yii2-fontawesome",
... ... @@ -2482,51 +2525,7 @@
2482 2525 "font",
2483 2526 "yii"
2484 2527 ],
2485   - "time": "2017-01-11 14:05:47"
2486   - },
2487   - {
2488   - "name": "sashsvamir/yii2-recaptcha-widget",
2489   - "version": "dev-master",
2490   - "source": {
2491   - "type": "git",
2492   - "url": "https://github.com/sashsvamir/yii2-recaptcha-widget.git",
2493   - "reference": "3daa1b48d99839807c0bf520bb2660d43ed83446"
2494   - },
2495   - "dist": {
2496   - "type": "zip",
2497   - "url": "https://api.github.com/repos/sashsvamir/yii2-recaptcha-widget/zipball/3daa1b48d99839807c0bf520bb2660d43ed83446",
2498   - "reference": "3daa1b48d99839807c0bf520bb2660d43ed83446",
2499   - "shasum": ""
2500   - },
2501   - "require": {
2502   - "himiklab/yii2-recaptcha-widget": "1.0.6",
2503   - "yiisoft/yii2": "*"
2504   - },
2505   - "type": "yii2-extension",
2506   - "autoload": {
2507   - "psr-4": {
2508   - "sashsvamir\\yii2\\recaptcha\\": ""
2509   - }
2510   - },
2511   - "notification-url": "https://packagist.org/downloads/",
2512   - "license": [
2513   - "MIT"
2514   - ],
2515   - "authors": [
2516   - {
2517   - "name": "sashsvamir",
2518   - "homepage": "https://github.com/sashsvamir/"
2519   - }
2520   - ],
2521   - "description": "Yii2 Google reCAPTCHA widget",
2522   - "keywords": [
2523   - "captcha",
2524   - "google",
2525   - "recaptcha",
2526   - "widget",
2527   - "yii2"
2528   - ],
2529   - "time": "2018-01-24 10:27:21"
  2528 + "time": "2017-01-11T14:05:47+00:00"
2530 2529 },
2531 2530 {
2532 2531 "name": "skeeks/yii2-assets-auto-compress",
... ... @@ -2583,7 +2582,7 @@
2583 2582 "skeeks",
2584 2583 "yii"
2585 2584 ],
2586   - "time": "2018-04-04 08:44:24"
  2585 + "time": "2018-04-04T08:44:24+00:00"
2587 2586 },
2588 2587 {
2589 2588 "name": "swiftmailer/swiftmailer",
... ... @@ -2638,7 +2637,7 @@
2638 2637 "mail",
2639 2638 "mailer"
2640 2639 ],
2641   - "time": "2017-09-30 22:39:41"
  2640 + "time": "2017-09-30T22:39:41+00:00"
2642 2641 },
2643 2642 {
2644 2643 "name": "tedivm/jshrink",
... ... @@ -2684,7 +2683,7 @@
2684 2683 "javascript",
2685 2684 "minifier"
2686 2685 ],
2687   - "time": "2017-12-08 00:59:56"
  2686 + "time": "2017-12-08T00:59:56+00:00"
2688 2687 },
2689 2688 {
2690 2689 "name": "tinymce/tinymce",
... ... @@ -2730,7 +2729,7 @@
2730 2729 "tinymce",
2731 2730 "wysiwyg"
2732 2731 ],
2733   - "time": "2018-05-16 04:27:27"
  2732 + "time": "2018-05-16T04:27:27+00:00"
2734 2733 },
2735 2734 {
2736 2735 "name": "tubalmartin/cssmin",
... ... @@ -2783,7 +2782,7 @@
2783 2782 "minify",
2784 2783 "yui"
2785 2784 ],
2786   - "time": "2018-01-15 15:26:51"
  2785 + "time": "2018-01-15T15:26:51+00:00"
2787 2786 },
2788 2787 {
2789 2788 "name": "yii2tech/ar-linkmany",
... ... @@ -2834,7 +2833,7 @@
2834 2833 "relaton",
2835 2834 "yii2"
2836 2835 ],
2837   - "time": "2018-02-09 14:02:04"
  2836 + "time": "2018-02-09T14:02:04+00:00"
2838 2837 },
2839 2838 {
2840 2839 "name": "yii2tech/ar-position",
... ... @@ -2883,7 +2882,7 @@
2883 2882 "sort",
2884 2883 "yii2"
2885 2884 ],
2886   - "time": "2017-11-01 10:56:01"
  2885 + "time": "2017-11-01T10:56:01+00:00"
2887 2886 },
2888 2887 {
2889 2888 "name": "yii2tech/ar-variation",
... ... @@ -2937,7 +2936,7 @@
2937 2936 "variator",
2938 2937 "yii2"
2939 2938 ],
2940   - "time": "2018-04-09 08:43:38"
  2939 + "time": "2018-04-09T08:43:38+00:00"
2941 2940 },
2942 2941 {
2943 2942 "name": "yii2tech/filedb",
... ... @@ -2985,7 +2984,7 @@
2985 2984 "static",
2986 2985 "yii2"
2987 2986 ],
2988   - "time": "2018-04-09 08:12:49"
  2987 + "time": "2018-04-09T08:12:49+00:00"
2989 2988 },
2990 2989 {
2991 2990 "name": "yiisoft/yii2",
... ... @@ -3085,7 +3084,7 @@
3085 3084 "framework",
3086 3085 "yii2"
3087 3086 ],
3088   - "time": "2018-03-21 18:36:53"
  3087 + "time": "2018-03-21T18:36:53+00:00"
3089 3088 },
3090 3089 {
3091 3090 "name": "yiisoft/yii2-bootstrap",
... ... @@ -3145,7 +3144,7 @@
3145 3144 "bootstrap",
3146 3145 "yii2"
3147 3146 ],
3148   - "time": "2018-02-16 10:41:52"
  3147 + "time": "2018-02-16T10:41:52+00:00"
3149 3148 },
3150 3149 {
3151 3150 "name": "yiisoft/yii2-composer",
... ... @@ -3199,7 +3198,7 @@
3199 3198 "extension installer",
3200 3199 "yii2"
3201 3200 ],
3202   - "time": "2018-03-21 16:15:55"
  3201 + "time": "2018-03-21T16:15:55+00:00"
3203 3202 },
3204 3203 {
3205 3204 "name": "yiisoft/yii2-httpclient",
... ... @@ -3246,7 +3245,7 @@
3246 3245 "httpclient",
3247 3246 "yii2"
3248 3247 ],
3249   - "time": "2018-02-13 15:11:30"
  3248 + "time": "2018-02-13T15:11:30+00:00"
3250 3249 },
3251 3250 {
3252 3251 "name": "yiisoft/yii2-imagine",
... ... @@ -3294,7 +3293,7 @@
3294 3293 "imagine",
3295 3294 "yii2"
3296 3295 ],
3297   - "time": "2018-02-22 11:57:06"
  3296 + "time": "2018-02-22T11:57:06+00:00"
3298 3297 },
3299 3298 {
3300 3299 "name": "yiisoft/yii2-jui",
... ... @@ -3340,7 +3339,7 @@
3340 3339 "jQuery UI",
3341 3340 "yii2"
3342 3341 ],
3343   - "time": "2017-11-25 15:32:29"
  3342 + "time": "2017-11-25T15:32:29+00:00"
3344 3343 },
3345 3344 {
3346 3345 "name": "yiisoft/yii2-swiftmailer",
... ... @@ -3390,7 +3389,7 @@
3390 3389 "swiftmailer",
3391 3390 "yii2"
3392 3391 ],
3393   - "time": "2018-04-24 23:17:42"
  3392 + "time": "2018-04-24T23:17:42+00:00"
3394 3393 },
3395 3394 {
3396 3395 "name": "yiister/yii2-gentelella",
... ... @@ -3448,7 +3447,7 @@
3448 3447 "theme",
3449 3448 "yii2"
3450 3449 ],
3451   - "time": "2017-11-12 16:49:22"
  3450 + "time": "2017-11-12T16:49:22+00:00"
3452 3451 }
3453 3452 ],
3454 3453 "packages-dev": [
... ... @@ -3509,7 +3508,7 @@
3509 3508 "gherkin",
3510 3509 "parser"
3511 3510 ],
3512   - "time": "2017-08-30 11:04:43"
  3511 + "time": "2017-08-30T11:04:43+00:00"
3513 3512 },
3514 3513 {
3515 3514 "name": "bower-asset/typeahead.js",
... ... @@ -3617,7 +3616,7 @@
3617 3616 "functional testing",
3618 3617 "unit testing"
3619 3618 ],
3620   - "time": "2018-03-31 22:36:34"
  3619 + "time": "2018-03-31T22:36:34+00:00"
3621 3620 },
3622 3621 {
3623 3622 "name": "codeception/phpunit-wrapper",
... ... @@ -3660,7 +3659,7 @@
3660 3659 }
3661 3660 ],
3662 3661 "description": "PHPUnit classes used by Codeception",
3663   - "time": "2018-05-22 09:20:59"
  3662 + "time": "2018-05-22T09:20:59+00:00"
3664 3663 },
3665 3664 {
3666 3665 "name": "codeception/stub",
... ... @@ -3693,7 +3692,7 @@
3693 3692 "MIT"
3694 3693 ],
3695 3694 "description": "Flexible Stub wrapper for PHPUnit's Mock Builder",
3696   - "time": "2018-05-17 09:31:08"
  3695 + "time": "2018-05-17T09:31:08+00:00"
3697 3696 },
3698 3697 {
3699 3698 "name": "codeception/verify",
... ... @@ -3729,7 +3728,7 @@
3729 3728 }
3730 3729 ],
3731 3730 "description": "BDD assertion library for PHPUnit",
3732   - "time": "2017-01-09 10:58:51"
  3731 + "time": "2017-01-09T10:58:51+00:00"
3733 3732 },
3734 3733 {
3735 3734 "name": "doctrine/instantiator",
... ... @@ -3783,7 +3782,7 @@
3783 3782 "constructor",
3784 3783 "instantiate"
3785 3784 ],
3786   - "time": "2017-07-22 11:58:36"
  3785 + "time": "2017-07-22T11:58:36+00:00"
3787 3786 },
3788 3787 {
3789 3788 "name": "fzaninotto/faker",
... ... @@ -3833,7 +3832,7 @@
3833 3832 "faker",
3834 3833 "fixtures"
3835 3834 ],
3836   - "time": "2017-08-15 16:48:10"
  3835 + "time": "2017-08-15T16:48:10+00:00"
3837 3836 },
3838 3837 {
3839 3838 "name": "myclabs/deep-copy",
... ... @@ -3878,7 +3877,7 @@
3878 3877 "object",
3879 3878 "object graph"
3880 3879 ],
3881   - "time": "2017-10-19 19:58:43"
  3880 + "time": "2017-10-19T19:58:43+00:00"
3882 3881 },
3883 3882 {
3884 3883 "name": "phar-io/manifest",
... ... @@ -3933,7 +3932,7 @@
3933 3932 }
3934 3933 ],
3935 3934 "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
3936   - "time": "2017-03-05 18:14:27"
  3935 + "time": "2017-03-05T18:14:27+00:00"
3937 3936 },
3938 3937 {
3939 3938 "name": "phar-io/version",
... ... @@ -3980,7 +3979,7 @@
3980 3979 }
3981 3980 ],
3982 3981 "description": "Library for handling version information and constraints",
3983   - "time": "2017-03-05 17:38:23"
  3982 + "time": "2017-03-05T17:38:23+00:00"
3984 3983 },
3985 3984 {
3986 3985 "name": "phpdocumentor/reflection-common",
... ... @@ -4034,7 +4033,7 @@
4034 4033 "reflection",
4035 4034 "static analysis"
4036 4035 ],
4037   - "time": "2017-09-11 18:02:19"
  4036 + "time": "2017-09-11T18:02:19+00:00"
4038 4037 },
4039 4038 {
4040 4039 "name": "phpdocumentor/reflection-docblock",
... ... @@ -4085,7 +4084,7 @@
4085 4084 }
4086 4085 ],
4087 4086 "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
4088   - "time": "2017-11-30 07:14:17"
  4087 + "time": "2017-11-30T07:14:17+00:00"
4089 4088 },
4090 4089 {
4091 4090 "name": "phpdocumentor/type-resolver",
... ... @@ -4132,7 +4131,7 @@
4132 4131 "email": "me@mikevanriel.com"
4133 4132 }
4134 4133 ],
4135   - "time": "2017-07-14 14:27:02"
  4134 + "time": "2017-07-14T14:27:02+00:00"
4136 4135 },
4137 4136 {
4138 4137 "name": "phpspec/php-diff",
... ... @@ -4170,7 +4169,7 @@
4170 4169 }
4171 4170 ],
4172 4171 "description": "A comprehensive library for generating differences between two hashable objects (strings or arrays).",
4173   - "time": "2016-04-07 12:29:16"
  4172 + "time": "2016-04-07T12:29:16+00:00"
4174 4173 },
4175 4174 {
4176 4175 "name": "phpspec/prophecy",
... ... @@ -4233,7 +4232,7 @@
4233 4232 "spy",
4234 4233 "stub"
4235 4234 ],
4236   - "time": "2018-04-18 13:57:24"
  4235 + "time": "2018-04-18T13:57:24+00:00"
4237 4236 },
4238 4237 {
4239 4238 "name": "phpunit/php-code-coverage",
... ... @@ -4296,7 +4295,7 @@
4296 4295 "testing",
4297 4296 "xunit"
4298 4297 ],
4299   - "time": "2018-04-29 14:59:09"
  4298 + "time": "2018-04-29T14:59:09+00:00"
4300 4299 },
4301 4300 {
4302 4301 "name": "phpunit/php-file-iterator",
... ... @@ -4343,7 +4342,7 @@
4343 4342 "filesystem",
4344 4343 "iterator"
4345 4344 ],
4346   - "time": "2017-11-27 13:52:08"
  4345 + "time": "2017-11-27T13:52:08+00:00"
4347 4346 },
4348 4347 {
4349 4348 "name": "phpunit/php-text-template",
... ... @@ -4384,7 +4383,7 @@
4384 4383 "keywords": [
4385 4384 "template"
4386 4385 ],
4387   - "time": "2015-06-21 13:50:34"
  4386 + "time": "2015-06-21T13:50:34+00:00"
4388 4387 },
4389 4388 {
4390 4389 "name": "phpunit/php-timer",
... ... @@ -4433,7 +4432,7 @@
4433 4432 "keywords": [
4434 4433 "timer"
4435 4434 ],
4436   - "time": "2018-02-01 13:07:23"
  4435 + "time": "2018-02-01T13:07:23+00:00"
4437 4436 },
4438 4437 {
4439 4438 "name": "phpunit/php-token-stream",
... ... @@ -4482,7 +4481,7 @@
4482 4481 "keywords": [
4483 4482 "tokenizer"
4484 4483 ],
4485   - "time": "2018-02-01 13:16:43"
  4484 + "time": "2018-02-01T13:16:43+00:00"
4486 4485 },
4487 4486 {
4488 4487 "name": "phpunit/phpunit",
... ... @@ -4562,7 +4561,7 @@
4562 4561 "testing",
4563 4562 "xunit"
4564 4563 ],
4565   - "time": "2018-04-29 15:09:19"
  4564 + "time": "2018-04-29T15:09:19+00:00"
4566 4565 },
4567 4566 {
4568 4567 "name": "phpunit/phpunit-mock-objects",
... ... @@ -4618,7 +4617,7 @@
4618 4617 "mock",
4619 4618 "xunit"
4620 4619 ],
4621   - "time": "2018-04-11 04:50:36"
  4620 + "time": "2018-04-11T04:50:36+00:00"
4622 4621 },
4623 4622 {
4624 4623 "name": "sebastian/code-unit-reverse-lookup",
... ... @@ -4663,7 +4662,7 @@
4663 4662 ],
4664 4663 "description": "Looks up which function or method a line of code belongs to",
4665 4664 "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
4666   - "time": "2017-03-04 06:30:41"
  4665 + "time": "2017-03-04T06:30:41+00:00"
4667 4666 },
4668 4667 {
4669 4668 "name": "sebastian/comparator",
... ... @@ -4727,7 +4726,7 @@
4727 4726 "compare",
4728 4727 "equality"
4729 4728 ],
4730   - "time": "2018-04-18 13:33:00"
  4729 + "time": "2018-04-18T13:33:00+00:00"
4731 4730 },
4732 4731 {
4733 4732 "name": "sebastian/diff",
... ... @@ -4783,7 +4782,7 @@
4783 4782 "unidiff",
4784 4783 "unified diff"
4785 4784 ],
4786   - "time": "2018-02-01 13:45:15"
  4785 + "time": "2018-02-01T13:45:15+00:00"
4787 4786 },
4788 4787 {
4789 4788 "name": "sebastian/environment",
... ... @@ -4833,7 +4832,7 @@
4833 4832 "environment",
4834 4833 "hhvm"
4835 4834 ],
4836   - "time": "2017-07-01 08:51:00"
  4835 + "time": "2017-07-01T08:51:00+00:00"
4837 4836 },
4838 4837 {
4839 4838 "name": "sebastian/exporter",
... ... @@ -4900,7 +4899,7 @@
4900 4899 "export",
4901 4900 "exporter"
4902 4901 ],
4903   - "time": "2017-04-03 13:19:02"
  4902 + "time": "2017-04-03T13:19:02+00:00"
4904 4903 },
4905 4904 {
4906 4905 "name": "sebastian/global-state",
... ... @@ -4951,7 +4950,7 @@
4951 4950 "keywords": [
4952 4951 "global state"
4953 4952 ],
4954   - "time": "2017-04-27 15:39:26"
  4953 + "time": "2017-04-27T15:39:26+00:00"
4955 4954 },
4956 4955 {
4957 4956 "name": "sebastian/object-enumerator",
... ... @@ -4998,7 +4997,7 @@
4998 4997 ],
4999 4998 "description": "Traverses array structures and object graphs to enumerate all referenced objects",
5000 4999 "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
5001   - "time": "2017-08-03 12:35:26"
  5000 + "time": "2017-08-03T12:35:26+00:00"
5002 5001 },
5003 5002 {
5004 5003 "name": "sebastian/object-reflector",
... ... @@ -5043,7 +5042,7 @@
5043 5042 ],
5044 5043 "description": "Allows reflection of object attributes, including inherited and non-public ones",
5045 5044 "homepage": "https://github.com/sebastianbergmann/object-reflector/",
5046   - "time": "2017-03-29 09:07:27"
  5045 + "time": "2017-03-29T09:07:27+00:00"
5047 5046 },
5048 5047 {
5049 5048 "name": "sebastian/recursion-context",
... ... @@ -5096,7 +5095,7 @@
5096 5095 ],
5097 5096 "description": "Provides functionality to recursively process PHP variables",
5098 5097 "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
5099   - "time": "2017-03-03 06:23:57"
  5098 + "time": "2017-03-03T06:23:57+00:00"
5100 5099 },
5101 5100 {
5102 5101 "name": "sebastian/resource-operations",
... ... @@ -5138,7 +5137,7 @@
5138 5137 ],
5139 5138 "description": "Provides a list of PHP built-in functions that operate on resources",
5140 5139 "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
5141   - "time": "2015-07-28 20:34:47"
  5140 + "time": "2015-07-28T20:34:47+00:00"
5142 5141 },
5143 5142 {
5144 5143 "name": "sebastian/version",
... ... @@ -5181,7 +5180,7 @@
5181 5180 ],
5182 5181 "description": "Library that helps with managing the version number of Git-hosted PHP projects",
5183 5182 "homepage": "https://github.com/sebastianbergmann/version",
5184   - "time": "2016-10-03 07:35:21"
  5183 + "time": "2016-10-03T07:35:21+00:00"
5185 5184 },
5186 5185 {
5187 5186 "name": "symfony/browser-kit",
... ... @@ -5238,7 +5237,7 @@
5238 5237 ],
5239 5238 "description": "Symfony BrowserKit Component",
5240 5239 "homepage": "https://symfony.com",
5241   - "time": "2018-03-19 22:35:49"
  5240 + "time": "2018-03-19T22:35:49+00:00"
5242 5241 },
5243 5242 {
5244 5243 "name": "symfony/console",
... ... @@ -5306,7 +5305,7 @@
5306 5305 ],
5307 5306 "description": "Symfony Console Component",
5308 5307 "homepage": "https://symfony.com",
5309   - "time": "2018-05-16 09:05:32"
  5308 + "time": "2018-05-16T09:05:32+00:00"
5310 5309 },
5311 5310 {
5312 5311 "name": "symfony/css-selector",
... ... @@ -5359,7 +5358,7 @@
5359 5358 ],
5360 5359 "description": "Symfony CssSelector Component",
5361 5360 "homepage": "https://symfony.com",
5362   - "time": "2018-05-11 15:58:37"
  5361 + "time": "2018-05-11T15:58:37+00:00"
5363 5362 },
5364 5363 {
5365 5364 "name": "symfony/dom-crawler",
... ... @@ -5416,7 +5415,7 @@
5416 5415 ],
5417 5416 "description": "Symfony DomCrawler Component",
5418 5417 "homepage": "https://symfony.com",
5419   - "time": "2018-05-01 23:00:51"
  5418 + "time": "2018-05-01T23:00:51+00:00"
5420 5419 },
5421 5420 {
5422 5421 "name": "symfony/event-dispatcher",
... ... @@ -5479,7 +5478,7 @@
5479 5478 ],
5480 5479 "description": "Symfony EventDispatcher Component",
5481 5480 "homepage": "https://symfony.com",
5482   - "time": "2018-04-06 07:35:43"
  5481 + "time": "2018-04-06T07:35:43+00:00"
5483 5482 },
5484 5483 {
5485 5484 "name": "symfony/finder",
... ... @@ -5528,7 +5527,7 @@
5528 5527 ],
5529 5528 "description": "Symfony Finder Component",
5530 5529 "homepage": "https://symfony.com",
5531   - "time": "2018-05-16 09:05:32"
  5530 + "time": "2018-05-16T09:05:32+00:00"
5532 5531 },
5533 5532 {
5534 5533 "name": "symfony/polyfill-ctype",
... ... @@ -5583,7 +5582,7 @@
5583 5582 "polyfill",
5584 5583 "portable"
5585 5584 ],
5586   - "time": "2018-04-30 19:57:29"
  5585 + "time": "2018-04-30T19:57:29+00:00"
5587 5586 },
5588 5587 {
5589 5588 "name": "symfony/polyfill-mbstring",
... ... @@ -5642,7 +5641,7 @@
5642 5641 "portable",
5643 5642 "shim"
5644 5643 ],
5645   - "time": "2018-04-26 10:06:28"
  5644 + "time": "2018-04-26T10:06:28+00:00"
5646 5645 },
5647 5646 {
5648 5647 "name": "symfony/yaml",
... ... @@ -5701,7 +5700,7 @@
5701 5700 ],
5702 5701 "description": "Symfony Yaml Component",
5703 5702 "homepage": "https://symfony.com",
5704   - "time": "2018-05-07 07:12:24"
  5703 + "time": "2018-05-07T07:12:24+00:00"
5705 5704 },
5706 5705 {
5707 5706 "name": "theseer/tokenizer",
... ... @@ -5741,7 +5740,7 @@
5741 5740 }
5742 5741 ],
5743 5742 "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
5744   - "time": "2017-04-07 12:08:54"
  5743 + "time": "2017-04-07T12:08:54+00:00"
5745 5744 },
5746 5745 {
5747 5746 "name": "webmozart/assert",
... ... @@ -5791,7 +5790,7 @@
5791 5790 "check",
5792 5791 "validate"
5793 5792 ],
5794   - "time": "2018-01-29 19:49:41"
  5793 + "time": "2018-01-29T19:49:41+00:00"
5795 5794 },
5796 5795 {
5797 5796 "name": "yiisoft/yii2-debug",
... ... @@ -5838,7 +5837,7 @@
5838 5837 "debugger",
5839 5838 "yii2"
5840 5839 ],
5841   - "time": "2017-12-05 07:36:23"
  5840 + "time": "2017-12-05T07:36:23+00:00"
5842 5841 },
5843 5842 {
5844 5843 "name": "yiisoft/yii2-faker",
... ... @@ -5885,7 +5884,7 @@
5885 5884 "faker",
5886 5885 "yii2"
5887 5886 ],
5888   - "time": "2018-02-19 20:27:10"
  5887 + "time": "2018-02-19T20:27:10+00:00"
5889 5888 },
5890 5889 {
5891 5890 "name": "yiisoft/yii2-gii",
... ... @@ -5938,14 +5937,12 @@
5938 5937 "gii",
5939 5938 "yii2"
5940 5939 ],
5941   - "time": "2018-05-02 22:05:25"
  5940 + "time": "2018-05-02T22:05:25+00:00"
5942 5941 }
5943 5942 ],
5944 5943 "aliases": [],
5945 5944 "minimum-stability": "RC",
5946   - "stability-flags": {
5947   - "sashsvamir/yii2-recaptcha-widget": 20
5948   - },
  5945 + "stability-flags": [],
5949 5946 "prefer-stable": false,
5950 5947 "prefer-lowest": false,
5951 5948 "platform": {
... ...
console/migrations/m180709_111256_create_partner_table.php 0 → 100644
  1 +<?php
  2 +
  3 +use yii\db\Migration;
  4 +
  5 +/**
  6 + * Handles the creation of table `partner`.
  7 + */
  8 +class m180709_111256_create_partner_table extends Migration
  9 +{
  10 + /**
  11 + * {@inheritdoc}
  12 + */
  13 + public function safeUp()
  14 + {
  15 + $this->createTable('partner', [
  16 + 'id' => $this->primaryKey(),
  17 + 'image_id' => $this->integer(),
  18 + 'status' => $this->boolean(),
  19 + 'sort' => $this->integer(),
  20 + 'link' => $this->string()
  21 + ]);
  22 + }
  23 +
  24 + /**
  25 + * {@inheritdoc}
  26 + */
  27 + public function safeDown()
  28 + {
  29 + $this->dropTable('partner');
  30 + }
  31 +}
... ...
frontend/models/Feedback.php
... ... @@ -7,7 +7,7 @@
7 7  
8 8 namespace frontend\models;
9 9 use artbox\core\models\Feedback as ArtboxCoreFeedback;
10   -use sashsvamir\yii2\recaptcha\ReCaptchaValidator;
  10 +
11 11  
12 12 class Feedback extends ArtboxCoreFeedback
13 13 {
... ... @@ -29,7 +29,7 @@ class Feedback extends ArtboxCoreFeedback
29 29 'on' => self::SCENARIO_DEFAULT,
30 30 'message' => \Yii::t('app', 'Empty field'),
31 31 ],
32   - ['reCaptcha', ReCaptchaValidator::className(),
  32 + ['reCaptcha', \himiklab\yii2\recaptcha\ReCaptchaValidator::className(),
33 33 'uncheckedMessage' => 'Please confirm that you are not a bot.',
34 34 // add follow lines to prevent checking recaptcha when from has errors
35 35 'when' => function ($model) {
... ...
frontend/modules/forms/Module.php
... ... @@ -155,7 +155,8 @@ class Module extends \yii\base\Module
155 155 public $buttonTemplate = '{button}';
156 156  
157 157 public $locale = 'app';
158   -
  158 +
  159 +
159 160 /**
160 161 * @inheritdoc
161 162 * @throws \yii\base\InvalidConfigException
... ... @@ -241,7 +242,7 @@ JS;
241 242 $content .= $formStr;
242 243  
243 244 }
244   - $content .= $form->field($this->model, 'reCaptcha')->widget(\sashsvamir\yii2\recaptcha\ReCaptcha::className())->label(false);
  245 + $content .= $form->field($this->model, 'reCaptcha')->widget(\himiklab\yii2\recaptcha\ReCaptcha::className())->label(false);
245 246  
246 247  
247 248 $content .= str_replace('{button}', Html::submitButton(\Yii::t($this->locale, $this->buttonContent), $this->buttonOptions), $this->buttonTemplate);
... ...
frontend/widgets/ParthnersList.php
1 1 <?php
2   -//======================================================================================================================
3   -//Виджет, который получает массив данных о партнёрах, и делает html код для карусели
4   -
5   -namespace frontend\widgets;
6   -use yii\base\Widget;
7   -use common\models\Partner;
8   -
9   -
10   -class ParthnersList extends Widget
11   -{
12   - public $filesList=[];
13   - public $parthnersLinkList=[];
14   - public function init()
15   - {
16   - parent::init();
17   - #$this->filesList=preg_grep('$^customer-\d{1,3}\.(png|jpg|jpeg)$',scandir('../web/img',0));
18   - $this->filesList=Partner::find()
19   - ->where(['status'=>true])
20   - ->all();
21   -
22   -
23   - }
24   -
25   -
26   - public function run(){
27   - parent::run();
28   - return $this->render('_parthnerList',['data'=>$this->filesList]);
29   - }
30   -}
  2 + //======================================================================================================================
  3 + //Виджет, который получает массив данных о партнёрах, и делает html код для карусели
  4 +
  5 + namespace frontend\widgets;
  6 +
  7 + use yii\base\Widget;
  8 + use common\models\Partner;
  9 +
  10 + class ParthnersList extends Widget
  11 + {
  12 + public $filesList = [];
  13 + public $parthnersLinkList = [];
  14 + public function init()
  15 + {
  16 + parent::init();
  17 + #$this->filesList=preg_grep('$^customer-\d{1,3}\.(png|jpg|jpeg)$',scandir('../web/img',0));
  18 + $this->filesList = Partner::find()
  19 + ->where([ 'status' => true ])
  20 + ->all();
  21 +
  22 + }
  23 +
  24 + public function run()
  25 + {
  26 + parent::run();
  27 + return $this->render('_parthnerList', [ 'data' => $this->filesList ]);
  28 + }
  29 + }
31 30  
... ...