{"id":205456,"date":"2013-12-10T11:38:03","date_gmt":"2013-12-10T07:38:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=205456"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=205456","title":{"rendered":"<span class=\"post_title\">\u041a\u0430\u043a \u043f\u043e\u0434\u0440\u0443\u0436\u0438\u0442\u044c \u041a\u0430\u043f\u0447\u0443 Yandex API \u0438 AJAX<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u043a\u043e\u043b\u043b\u0435\u0433\u0438. \u0421\u043f\u043e\u0440\u044b \u043e \u0442\u043e\u043c, \u043d\u0443\u0436\u043d\u0430 \u043b\u0438 \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0430\u044f \u00ab\u043a\u0430\u043f\u0447\u0430\u00bb, \u043f\u0440\u0438\u043d\u043e\u0441\u0438\u0442 \u043b\u0438 \u043e\u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u043b\u044c\u0437\u0443 \u0432 \u0434\u0435\u043b\u0435 \u0431\u043e\u0440\u044c\u0431\u044b \u0441\u043e \u0437\u043b\u043e\u0431\u043d\u044b\u043c\u0438 \u0440\u043e\u0431\u043e\u0442\u0430\u043c\u0438 \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u0434\u0438\u0442 \u00ab\u044e\u0437\u0430\u0431\u0438\u043b\u0438\u0442\u0438\u00bb \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u0430\u0432\u043d\u043e \u0443\u0442\u0438\u0445\u043b\u0438, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439, \u043a\u0442\u043e \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0441\u044f \u044d\u0442\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b. <\/p>\n<p>  \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u0430\u043f\u0447\u0443 \u0432 \u0444\u043e\u0440\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0447\u0430\u0441\u043e\u0432 \u0432\u043e\u0437\u043d\u0438 \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c reCaptcha, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0442\u043e\u043d\u043d\u044b <s>\u043c\u0443\u0441\u043e\u0440\u043d\u043e\u0433\u043e<\/s> \u043a\u043e\u0434\u0430, \u044f \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u044b \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u043e \u043c\u0435\u043d\u044f \u043d\u0430 \u0441\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432. \u041d\u0443 \u0447\u0442\u043e \u0436\u0435, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0448\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u0441\u0434\u0435\u043b\u0430\u0439 \u044d\u0442\u043e \u0441\u0430\u043c. <\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e API \u042f\u043d\u0434\u0435\u043a\u0441 \u2014 \u0427\u0438\u0441\u0442\u044b\u0439 \u0412\u0435\u0431 \u0432 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e, \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u0430\u043f\u0447\u0443. \u0410 \u0440\u0430\u0437 \u0443\u0436 \u043c\u044b \u0437\u0430\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e \u043c\u043e\u0434\u0443\u043b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u043e \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0443\u043c\u0435\u0441\u0442\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u2014 \u043a\u0430\u043a \u043d\u0430\u0448\u0430 \u043d\u043e\u0432\u0430\u044f \u043a\u0430\u043f\u0447\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0442\u0430\u043a, \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f:<br \/>   <a href=\"http:\/\/api.yandex.ru\/cleanweb\/\">API \u042f\u043d\u0434\u0435\u043a\u0441 \u2014 \u0427\u0438\u0441\u0442\u044b\u0439 \u0412\u0435\u0431<\/a>. <\/p>\n<p>  \u0414\u0443\u043c\u0430\u044e \u0447\u0442\u043e \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u044f\u043c \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e js \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0438 \u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f, \u044f \u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"http:\/\/jquery.com\">jQuery<\/a> <\/p>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u043c\u0441\u044f \u043a Yandex API, \u0432\u0435\u0434\u044c \u0441\u043f\u0435\u0440\u0432\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0441\u043a\u043e\u043c\u0443\u044e \u043a\u0430\u043f\u0447\u0443. \u041f\u043e\u0447\u0438\u0442\u0430\u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043f\u0438\u0448\u0435\u043c \u043a\u043b\u0430\u0441\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0435\u0451 \u0438 \u043e\u0442\u0434\u0430\u0451\u0442:<\/p>\n<p>  <b>class_yandex_capcha.php<\/b><\/p>\n<pre><code class=\"php\">class yandexCaptcha {     static function get() {         $lang = $_SESSION['lang'];         if ($lang == &quot;ru&quot;) {             $type = &quot;std&quot;;         }         else {             $type = &quot;estd&quot;;         }         $key = &quot;\u0412\u0430\u0448 API \u041a\u043b\u044e\u0447&quot;;         $xmlResponse = file_get_contents(&quot;http:\/\/cleanweb-api.yandex.ru\/1.0\/get-captcha?key=&quot;.$key.&quot;&type=&quot;.$type);         $xml = simplexml_load_string($xmlResponse);         return $xml-&gt;url;     } } <\/code><\/pre>\n<p>  \u0412\u0441\u0451 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u2014 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c GET \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438:<br \/>  $key \u2014 \u042f\u043d\u0434\u0435\u043a\u0441 API \u041a\u043b\u044e\u0447, <a href=\"http:\/\/api.yandex.ru\/key\/form.xml?service=cw\">\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0442\u0443\u0442<\/a><br \/>  $type \u2014 \u0442\u0438\u043f \u043a\u0430\u043f\u0447\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432\u0441\u0435\u0446\u0435\u043b\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u042f\u043d\u0434\u0435\u043a\u0441\u0430.<\/p>\n<p>  \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0430\u0439\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432 \u2014 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u044f\u0437\u044b\u043a\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c: <i>std<\/i> \u2014 \u0446\u0438\u0444\u0440\u044b \u0438 \u043b\u043e\u0433\u043e\u0442\u0438\u043f \u042f\u043d\u0434\u0435\u043a\u0441\u0430 \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c, \u043b\u0438\u0431\u043e <i>estd<\/i> \u2014 \u0442\u043e\u0436\u0435 \u0446\u0438\u0444\u0440\u044b, \u043d\u043e \u0441 \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u043e\u043c \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c. <\/p>\n<p>  \u041c\u0435\u0442\u043e\u0434 <b>yandexCaptcha::get()<\/b> \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0430\u0434\u0440\u0435\u0441 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u043d\u0430\u0448\u0430 \u043a\u0430\u043f\u0447\u0430. <br \/>  \u041a\u0440\u043e\u043c\u0435 \u00aburl \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043a\u0430\u043f\u0447\u0438\u00bb xml \u0437\u0430\u043f\u0440\u043e\u0441 \u043c\u0435\u0442\u043e\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u2014 <u>captcha<\/u>, \u043d\u043e \u0435\u0441\u0442\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u0445\u0438\u0442\u0440\u043e\u0441\u0442\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439<br \/>  \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 captcha \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c, \u0441\u043a\u0430\u0436\u0435\u043c \u0432 \u0441\u0435\u0441\u0441\u0438\u0438. \u0415\u0433\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u2014 \u043e\u0431\u044a\u044f\u0441\u043d\u044e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043d\u0430\u0448 \u043a\u043b\u0430\u0441\u0441 \u0433\u043e\u0442\u043e\u0432 \u2014 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0432 \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435:<\/p>\n<p>  <b>model_closed.php<\/b><\/p>\n<pre><code class=\"php\">class model_closed extends model {         function get_data() {             $root = $_SERVER['DOCUMENT_ROOT'];             $dataArray['language'] = parse_ini_file($root.&quot;\/app\/languages\/&quot;.Route::$lang.&quot;_closed.ini&quot;);             $dataArray['base_href'] = $_SERVER['HTTP_HOST'];             require_once($root.&quot;\/app\/core\/class\/class_yandex_capcha.php&quot;);             $dataArray['capcha_url'] = yandexCaptcha::get();             return $dataArray;         }     }      <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0442\u0440\u0438 \u0441\u0442\u0440\u043e\u043a\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 <b>get_data()<\/b> \u043e\u0442\u0434\u0430\u044e\u0442 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043a\u0430\u043f\u0447\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044e:<\/p>\n<p>  \u0410 \u0432\u043e\u0442 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u2014 <b>closed_view.php<\/b><\/p>\n<pre><code class=\"php\">&lt;div class=&quot;closedLoginForm&quot;&gt;     &lt;input type=&quot;text&quot; class=&quot;loginInput&quot; value=&quot;&lt;?php echo $data['language']['login']; ?&gt;&quot;&gt;&lt;br&gt;     &lt;input type=&quot;password&quot; class=&quot;passworldInput&quot; value=&quot;&lt;?php echo $data['language']['passworld']; ?&gt;&quot;&gt;     &lt;div id=&quot;capcha&quot; title=&quot;&lt;?php echo $data['language']['reload_image']; ?&gt;&quot;&gt;         &lt;img class=&quot;yandexCapchaImage&quot; src=&quot;&lt;?php echo $data['capcha_url']; ?&gt;&quot; alt=&quot;&lt;?php echo $data['language']['capcha']; ?&gt;&quot;&gt;     &lt;\/div&gt;     &lt;input type=&quot;text&quot; class=&quot;capchaInput&quot; value=&quot;&lt;?php echo $data['language']['capcha']; ?&gt;&quot;&gt;     &lt;div class=&quot;loginButton&quot;&gt;&lt;div class=&quot;loginBottonInner&quot;&gt;&lt;?php echo $data['language']['loginBotton']; ?&gt;&lt;\/div&gt;&lt;\/div&gt;     &lt;div class=&quot;loginError&quot;&gt;&lt;\/div&gt; &lt;\/div&gt; &lt;script type=&quot;text\/javascript&quot; src=&quot;\/js\/jquery.js&quot;&gt;&lt;\/script&gt; &lt;script type=&quot;text\/javascript&quot; src=&quot;\/js\/closed.js&quot;&gt;&lt;\/script&gt; &lt;script type=&quot;text\/javascript&quot; src=&quot;\/js\/login.js&quot;&gt;&lt;\/script&gt; <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u2014 \u0432 html \u043a\u043e\u0434\u0435 \u043d\u0435\u0442 \u0442\u0435\u0433\u043e\u0432 <b>form,<\/b> \u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e <b>\u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c AJAX<\/b><\/p>\n<p>  \u0412 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0443 \u043d\u0430\u0441 3 \u043f\u043e\u043b\u044f: \u043b\u043e\u0433\u0438\u043d, \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u043f\u043e\u043b\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043a\u0430\u043f\u0447\u0438, \u0441\u0430\u043c\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043a\u0430\u043f\u0447\u0438 \u0438 \u043a\u043d\u043e\u043f\u043a\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c.<\/p>\n<p>  \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0444\u043e\u0440\u043c\u0443, \u043a\u0430\u043a \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0440\u0430\u043d\u0435\u0435, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AJAX \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 <b>login.js<\/b><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0443\u0442 &#8212; \u0432\u0441\u044f \u0441\u0443\u0442\u044c<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">$(document).ready(function(){     var capchaStartText = $(&quot;.capchaInput&quot;).val();     var passworldStartText = $(&quot;.passworldInput&quot;).val();     function login() {         var login = $(&quot;.loginInput&quot;), passworld = $(&quot;.passworldInput&quot;), capcha = $(&quot;.capchaInput&quot;), buttontext = $(&quot;.loginBottonInner&quot;).html(), captchasrc = $(&quot;.yandexCapchaImage&quot;).attr(&quot;src&quot;);         var pos = captchasrc.indexOf(&quot;=&quot;);         var key = captchasrc.substr(pos+1);         $.ajax({             type: &quot;POST&quot;,             url: &quot;\/app\/modules\/module_login.php&quot;,             dataType: &quot;json&quot;,             data: {login:login.val(), passworld:passworld.val(), captchaCode:key, captchaValue:capcha.val()},             beforeSend: function(){                 $(&quot;.loginBottonInner&quot;).html(&quot;...&quot;);             }         }).done(function(data){             if (data.captcha == 1 && data.login == 1) {                 location.reload();             }             if (data.login == 0) {                 capchaRenew();                 $(&quot;.loginBottonInner&quot;).html(buttontext);                 login.focus();                 login.select();                 passworld.val(passworldStartText);                 capcha.val(capchaStartText);                 $(&quot;.loginError&quot;).html(data.login_error);             }             if (data.captcha == 0 && data.login == 1) {                 capchaRenew();                 $(&quot;.loginBottonInner&quot;).html(buttontext);                 capcha.val(capchaStartText);                 capcha.focus();                 $(&quot;.loginError&quot;).html(data.captcha_error);             }         });     }     function capchaRenew() {         $.ajax({             type: &quot;POST&quot;,             data: {check:&quot;ok&quot;},             url: &quot;\/app\/modules\/module_capcha_renew.php&quot;         }).done(function(html) {             $(&quot;.yandexCapchaImage&quot;).attr(&quot;src&quot;,html);             console.log(html);         });     }     $(&quot;#capcha&quot;).click(function(){         capchaRenew();         $(&quot;.capchaInput&quot;).focus();     });     $(&quot;.loginBottonInner&quot;).click(function() {         login();     });     $(window).keydown(function(eventObject){         if ($(&quot;.closedLoginForm input&quot;).is(&quot;:focus&quot;) == true) {             if (eventObject.which == 13) {                 login();             }         }     }); }); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <b>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043a\u0430\u043f\u0447\u0443.<\/b><br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0437 \u043f\u043e\u043b\u0435\u0439 \u043d\u0430\u0448\u0435\u0439 \u0444\u043e\u0440\u043c\u044b \u043f\u043e \u043a\u043b\u0438\u043a\u0443 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u00ab\u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u00bb \u043b\u0438\u0431\u043e \u043f\u043e \u043a\u043d\u043e\u043f\u043a\u0435 Enter (\u043b\u044e\u0431\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439), \u0445\u0432\u0430\u0442\u0430\u0435\u043c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 \u043b\u043e\u0433\u0438\u043d, \u043f\u0430\u0440\u043e\u043b\u044c, \u043d\u0430\u0431\u043e\u0440 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0432 \u043f\u043e\u043b\u0435 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043a\u0430\u043f\u0447\u0438, \u0438 \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435 \u2014 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <u>captcha<\/u> (\u0441\u043c\u043e\u0442\u0440\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <b>yandexCaptcha::get()<\/b>). <br \/>  \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u2014 <b>\u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u0432\u043e\u0434\u0430 \u043a\u0430\u043f\u0447\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <\/b> \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043a\u0430\u043a \u0447\u0430\u0441\u0442\u044c URL \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 \u043a\u0430\u043f\u0447\u0438. \u0415\u0451 \u043e\u0442\u0434\u0430\u0451\u0442 \u043d\u0430\u043c \u042f\u043d\u0434\u0435\u043a\u0441 \u0432\u0441\u0451 \u0432 \u0442\u043e\u043c \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u0435 <b>yandexCaptcha::get()<\/b>. \u041d\u0430\u043c \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u00ab\u0432\u044b\u0447\u043b\u0435\u043d\u0438\u0442\u044c\u00bb \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <u>captcha<\/u> \u0438\u0437 url \u0430\u0434\u0440\u0435\u0441\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f, \u0447\u0442\u043e \u043c\u044b \u0438 \u0434\u0435\u043b\u0430\u0435\u043c. <\/p>\n<p>  \u0424\u0430\u0439\u043b <b>module_login.php<\/b> \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AJAX \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440 <b>\u043a\u043b\u0430\u0441\u0441\u0430 Login<\/b> \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u043d\u0430\u043c\u0438 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 <b>siteLogin()<\/b> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0432 \u043f\u0435\u0440\u0435\u0434 \u044d\u0442\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u0438\u043d-\u043f\u0430\u0440\u043e\u043b\u044c \u0438, \u0447\u0442\u043e \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u2014 <i>\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0430 \u043a\u0430\u043f\u0447\u0438.<\/i><\/p>\n<pre><code class=\"php\">    echo Login::siteLogin($login, $passworld, $captchaCode, $captchaValue); <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043c\u043e\u044f \u0441\u0442\u0430\u0442\u044c\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438 \u0442\u0430\u043a \u0443\u0436\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0434\u043b\u0438\u043d\u043d\u0435\u0435 \u0447\u0435\u043c \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0435 \u0440\u0430\u0437\u0440\u0430\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0434\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u0433\u0440\u043e\u043c\u0430\u0434\u043d\u044b\u0445 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u0432, \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0443 \u0447\u0430\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u0430 <b>Login::siteLogin<\/b> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043a\u0430\u043f\u0447\u0438:<\/p>\n<p>  <b>class_login.php<\/b><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a\u043e\u0434<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">class Login {     static function siteLogin($login, $password, $captchaCode, $captchaValue) {         $path = $_SERVER['DOCUMENT_ROOT'];         session_start();         $langArray = parse_ini_file($path.&quot;\/app\/languages\/&quot;.$_SESSION['lang'].&quot;_login.ini&quot;);         $login = htmlspecialchars($login);         $password = htmlspecialchars($password);         $json = Array();         $json['captcha'] = 0;         $json['login'] = 0;         $json['captcha_error'] = $langArray['captcha_error'];         $json['login_error'] = $langArray['login_error'];         $key = &quot;\u0412\u0430\u0448 API \u041a\u043b\u044e\u0447&quot;;         $response = file_get_contents(&quot;http:\/\/cleanweb-api.yandex.ru\/1.0\/check-captcha?key=&quot;.$key.&quot;&captcha=&quot;.$captchaCode.&quot;&value=&quot;.$captchaValue);         if (strpos($response,&quot;&lt;ok&quot;)){             $json['captcha'] = 1;             unset($json['captcha_error']);         }         require_once $path.&quot;\/app\/core\/class\/class_dbconnect.php&quot;;         $mysqli = dbconnect::connect();         $sql = &quot;SELECT `id`,`login`,`passworld`,`rights` FROM `users` WHERE `login` = '&quot;.$login.&quot;'&quot;;         $qr = $mysqli-&gt;query($sql);         $quant = $qr-&gt;num_rows;         if ($quant &lt;&gt; 0) {             $row = $qr-&gt;fetch_assoc();             if ($row['passworld'] == hash(&quot;whirlpool&quot;,&quot;super&quot;.$password.&quot;orgy&quot;)) {                 $json['login'] = 1;                 unset($json['login_error']);                 if ($json['login'] == 1 and $json['captcha'] == 1) {                     \/\/\u0423\u0440\u0430! \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0448\u043b\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e                     }             }         }         return json_encode($json);     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  *\u041f\u043e\u0434\u0443\u043c\u0430\u043b \u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0432\u0435\u0441\u044c \u043a\u043e\u0434, \u0447\u0442\u043e\u0431\u044b \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044e \u0431\u044b\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435 \u043e\u0442\u043a\u0443\u0434\u0430 \u0440\u0430\u0441\u0442\u0443\u0442 \u043d\u043e\u0433\u0438. <br \/>  \u0421\u0443\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u0430\u043f\u0447\u0438 \u2014 \u0441\u043d\u043e\u0432\u0430 GET \u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e Yandex API; <\/p>\n<p>  \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u2014 \u0432\u0435\u043b\u0438 \u0432\u0435\u0440\u043d\u0443\u044e \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e \u043b\u043e\u0433\u0438\u043d\/\u043f\u0430\u0440\u043e\u043b\u044c + \u043a\u0430\u043f\u0447\u0430 \u043f\u0440\u043e\u0448\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u2014 \u0423\u0440\u0430! \u041c\u044b \u043f\u0440\u043e\u0448\u043b\u0438 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e.<\/p>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435, \u0434\u0443\u043c\u0430\u044e \u0431\u0443\u0434\u0435\u0442 <b>\u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u0442\u0430\u0442\u044c\u0438<\/b>. \u041e\u0431\u0440\u0430\u0449\u0430\u044e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0442\u0435\u0445, \u043a\u0442\u043e \u0432\u0441\u0451 \u0435\u0449\u0451 \u0447\u0438\u0442\u0430\u0435\u0442 \u2014 \u0432\u0441\u0451 \u0441\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043a \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. <\/p>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0448\u0438\u0431\u0441\u044f \u043f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u043a\u0430\u043f\u0447\u0438, \u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0438 \u0445\u043e\u0447\u0435\u0442 \u0435\u0451 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c.<\/p>\n<p>  <b>\u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u2014 \u0435\u043c\u0443 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043b\u0438\u0448\u043d\u0438\u0445 \u0442\u0435\u043b\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0439<\/b><\/p>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u2014 \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0440\u0430\u043d\u0435\u0435 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044e\u0442\u0441\u044f, \u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u043a\u0430\u043f\u0447\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f. \u0410 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0440\u0435\u0448\u0438\u0442 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u0430\u043f\u0447\u0443 \u2014 \u0435\u043c\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043b\u0438\u043a\u043d\u0443\u0442\u044c \u043d\u0430 \u043d\u0435\u0451. <\/p>\n<p>  \u0412\u0435\u0440\u043d\u0451\u043c\u0441\u044f \u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0430 <b>login.js<\/b>, \u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <b>capchaRenew()<\/b><\/p>\n<pre><code class=\"javascript\"> function capchaRenew() {         $.ajax({             type: &quot;POST&quot;,             data: {check:&quot;ok&quot;},             url: &quot;\/app\/modules\/module_capcha_renew.php&quot;         }).done(function(html) {             $(&quot;.yandexCapchaImage&quot;).attr(&quot;src&quot;,html);         });     } <\/code><\/pre>\n<p>  \u0418\u0442\u0430\u043a \u2014 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u043c\u043e\u0434\u0443\u043b\u044e <b>module_capcha_renew.php<\/b> \u0432\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043a \u0442\u043e\u043c\u0443, <br \/>  \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043f\u0447\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0442\u043e\u0433\u043e \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <b>yandexCaptcha::get()<\/b> \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043c\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u043b\u0438\u0441\u044c \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043e\u0442\u0434\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441 \u043d\u043e\u0432\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. <\/p>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u2014 \u0438\u043c\u0435\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u0430\u043f\u0447\u0443, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0440\u0443\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u0410 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0433\u043e reCapcha \u2014 \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 iframe, \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u0435\u043d, \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e\u0434 \u043d\u0430\u0448\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0435\u043c. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/205456\/\"> http:\/\/habrahabr.ru\/post\/205456\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u043a\u043e\u043b\u043b\u0435\u0433\u0438. \u0421\u043f\u043e\u0440\u044b \u043e \u0442\u043e\u043c, \u043d\u0443\u0436\u043d\u0430 \u043b\u0438 \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0430\u044f \u00ab\u043a\u0430\u043f\u0447\u0430\u00bb, \u043f\u0440\u0438\u043d\u043e\u0441\u0438\u0442 \u043b\u0438 \u043e\u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u043b\u044c\u0437\u0443 \u0432 \u0434\u0435\u043b\u0435 \u0431\u043e\u0440\u044c\u0431\u044b \u0441\u043e \u0437\u043b\u043e\u0431\u043d\u044b\u043c\u0438 \u0440\u043e\u0431\u043e\u0442\u0430\u043c\u0438 \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0440\u0435\u0434\u0438\u0442 \u00ab\u044e\u0437\u0430\u0431\u0438\u043b\u0438\u0442\u0438\u00bb \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u0430\u0432\u043d\u043e \u0443\u0442\u0438\u0445\u043b\u0438, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439, \u043a\u0442\u043e \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0441\u044f \u044d\u0442\u0438\u043c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b. <\/p>\n<p>  \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u0432\u0448\u0438\u0441\u044c \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u0430\u043f\u0447\u0443 \u0432 \u0444\u043e\u0440\u043c\u0443 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0447\u0430\u0441\u043e\u0432 \u0432\u043e\u0437\u043d\u0438 \u0441 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c reCaptcha, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0442\u043e\u043d\u043d\u044b <s>\u043c\u0443\u0441\u043e\u0440\u043d\u043e\u0433\u043e<\/s> \u043a\u043e\u0434\u0430, \u044f \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u044b \u0443\u0441\u0442\u0440\u043e\u0438\u043b\u043e \u043c\u0435\u043d\u044f \u043d\u0430 \u0441\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432. \u041d\u0443 \u0447\u0442\u043e \u0436\u0435, \u0435\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0448\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u2014 \u0441\u0434\u0435\u043b\u0430\u0439 \u044d\u0442\u043e \u0441\u0430\u043c. <\/p>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0451\u0442 \u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e\u0433\u043e API \u042f\u043d\u0434\u0435\u043a\u0441 \u2014 \u0427\u0438\u0441\u0442\u044b\u0439 \u0412\u0435\u0431 \u0432 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e, \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u0430\u043f\u0447\u0443. \u0410 \u0440\u0430\u0437 \u0443\u0436 \u043c\u044b \u0437\u0430\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438 \u043e \u043c\u043e\u0434\u0443\u043b\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438, \u0442\u043e \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0443\u043c\u0435\u0441\u0442\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u2014 \u043a\u0430\u043a \u043d\u0430\u0448\u0430 \u043d\u043e\u0432\u0430\u044f \u043a\u0430\u043f\u0447\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0441\u0432\u044f\u0437\u043a\u0435 \u0441 \u043c\u043e\u0434\u0443\u043b\u0435\u043c.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-205456","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/205456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205456"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/205456\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}