{"id":177805,"date":"2013-04-24T11:35:04","date_gmt":"2013-04-24T07:35:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=177805"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=177805","title":{"rendered":"<span class=\"post_title\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043a\u0430\u043f\u0447\u0438 \u0441 \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/361\/c6c\/e73\/361c6ce73dcc2529952a4dd50a8863bb.png\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441\u043e \u0441\u043f\u0430\u043c\u043e\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0442\u0430\u0440\u0443\u044e \u043a\u0430\u043f\u0447\u0443 \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u043b\u0438 \u0441\u043f\u0430\u043c\u0431\u043e\u0442\u044b. \u041f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u0438 \u043d\u0435 \u043d\u0430\u0439\u0434\u044f \u043d\u0443\u0436\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439, \u0434\u0430 \u0438 \u0434\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0435\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e.<\/p>\n<p>  \u0418 \u0442\u0430\u043a, \u0441\u0443\u0442\u044c \u043a\u0430\u043f\u0447\u0438 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043a\u043e\u043d\u043e\u043a \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u0449\u0438\u0439 \u0440\u044f\u0434. \u0414\u0443\u043c\u0430\u044e \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0442\u0430\u043a\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u043e\u0440\u0435, \u043d\u043e \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b (\u043d\u0443 \u0435\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0442\u043e \u0438 \u0438\u0441\u043a\u0430\u043b).<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u041d\u0430\u0447\u043d\u0435\u043c<\/h4>\n<p>  \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439: \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0434\u0432\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043a\u043e\u043d\u043e\u043a, \u043e\u0434\u043d\u0430 \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c\u0438, \u0434\u0440\u0443\u0433\u0430\u044f \u0441 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c. \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u0449\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043a\u043b\u044e\u0447 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438 (\u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u0435\u0441\u0441\u0438\u044e.<br \/>  \u0418\u0437 \u0432\u0441\u0435\u0445 \u0438\u043a\u043e\u043d\u043e\u043a \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u0434\u043d\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0442\u043e\u043c \u0431\u0443\u0434\u0435\u043c \u0440\u0435\u0437\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e background-position.<br \/>  \u0424\u043e\u0440\u043c\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0440\u0430\u0434\u0438\u043e\u043a\u043d\u043e\u043f\u043a\u0438 \u0441 value \u043e\u0442 1 \u0438 \u0434\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0438\u043a\u043e\u043d\u043e\u043a. \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e POST \u0444\u043e\u0440\u043c\u0443 \u0441 \u043d\u0430\u0436\u0430\u0442\u044b\u043c value \u0438 \u0441\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0433\u043e \u0441 \u0442\u0435\u043c \u0447\u0438\u0441\u043b\u043e\u043c, \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0438 \u0432 \u0441\u0435\u0441\u0441\u0438\u044e, \u0432\u0441\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<p>  \u0418 \u0442\u0430\u043a, \u0435\u0441\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f, \u0433\u0434\u0435 \u043b\u0435\u0436\u0430\u0442 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043a\u043e\u043d\u043e\u043a:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/60f\/256\/0cf\/60f2560cfcfe62fb96d4d637b276dd3a.png\"\/><\/p>\n<p>  \u0412\u0435\u0441\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0432 \u043e\u0434\u043d\u043e\u043c \u043a\u043b\u0430\u0441\u0441\u0435. \u0420\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435:<\/p>\n<h5>1. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0435.<\/h5>\n<pre><code class=\"php\">private $icon_dir;  \/\/\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f, \u0433\u0434\u0435 \u043b\u0435\u0436\u0430\u0442 \u043f\u0430\u043f\u043a\u0438 \u0441 \u0438\u043a\u043e\u043d\u043a\u0430\u043c\u0438 private $icon_size;  \/\/\u0440\u0430\u0437\u043c\u0435\u0440 \u0438\u043a\u043e\u043d\u043a\u0438 private $first_group_num;  \/\/\u043d\u043e\u043c\u0435\u0440 \u043f\u0435\u0440\u0432\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043a\u043e\u043d\u043e\u043a private $second_group_num;  \/\/\u043d\u043e\u043c\u0435\u0440 \u0432\u0442\u043e\u0440\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u043a\u043e\u043d\u043e\u043a private $icon_count;  \/\/\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0445 \u0432 \u043a\u0430\u043f\u0447\u0435 \u0438\u043a\u043e\u043d\u043e\u043a private $group_count;  \/\/\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0433\u0440\u0443\u043f\u043f \u0438\u043a\u043e\u043d\u043e\u043a private $address;  \/\/\u0430\u0434\u0440\u0435\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043f\u0447\u0430 <\/code><\/pre>\n<h5>2. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f 4 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430.<\/h5>\n<pre><code class=\"php\">function __construct($icons_count, $icon_dir, $icon_size, $address) {         $this-&gt;icon_dir = $icon_dir;         $this-&gt;icon_size = $icon_size;          $this-&gt;group_count = scandir($this-&gt;icon_dir);         $this-&gt;group_count = count($this-&gt;group_count) - 2;          $this-&gt;first_group_num = rand(1, $this-&gt;group_count);         $this-&gt;second_group_num = rand(1, $this-&gt;group_count);         $this-&gt;icon_count = $icons_count;          while ($this-&gt;first_group_num == $this-&gt;second_group_num) {             $this-&gt;second_group_num = rand(1, $this-&gt;group_count);         }          $this-&gt;address = $address; } <\/code><\/pre>\n<h5>3. \u0421 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0438 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u043e\u0431\u044b\u0447\u043d\u044b\u0439 scandir() \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432, \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0441\u0435\u0441\u0441\u0438\u044e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: <\/h5>\n<pre><code class=\"php\">$_SESSION['iconcaptcha'] = array_search($true_icon, $array_of_icons) + 1; <\/code><\/pre>\n<p>  \u0433\u0434\u0435 $true_icon \u2014 \u0438\u0441\u043a\u043e\u043c\u0430\u044f \u043d\u0430\u043c\u0438 \u0438\u043a\u043e\u043d\u043a\u0430, \u0430 $array_of_icons \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u0438\u043a\u043e\u043d\u043a\u0430\u043c\u0438.<\/p>\n<h5>4. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0433\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u0438\u043a\u043e\u043d\u043e\u043a.<\/h5>\n<pre><code class=\"php\">private function makeSprite() { \/\/\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043c \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 \u043e\u0434\u043d\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435         $icons = array();          $array_of_icons = $this-&gt;getArrayOfIcons();          for ($i = 0; $i &lt; $this-&gt;icon_count; ++$i) {             $icons[] = imagecreatefrompng($array_of_icons[$i]);         }          \/\/\u0434\u043b\u044f \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u0438 png         $tmp_sprite = imagecreatetruecolor($this-&gt;icon_count * $this-&gt;icon_size, $this-&gt;icon_size);         imagealphablending($tmp_sprite, false); imagesavealpha($tmp_sprite, true);         $tmp_icon = imagecreatetruecolor($this-&gt;icon_size, $this-&gt;icon_size);         imagealphablending($tmp_icon, false); imagesavealpha($tmp_icon, true);          foreach ($icons as $key =&gt; $val) {             imagecopyresampled($tmp_icon, $val, 0, 0, 0, 0, $this-&gt;icon_size, $this-&gt;icon_size, $this-&gt;icon_size, $this-&gt;icon_size);             imagecopy($tmp_sprite, $tmp_icon, $key * $this-&gt;icon_size, 0, 0, 0, imagesx($tmp_icon), imagesy($tmp_icon));         }          header(&quot;Content-type: image\/png&quot;);         imagepng($tmp_sprite);          imagedestroy($tmp_sprite);         exit; } <\/code><\/pre>\n<h5>5. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0430\u0434\u0440\u0435\u0441, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438.<\/h5>\n<pre><code class=\"php\">private function getCaptchaAddress($address) { \/\/\u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 $address         $req = end(explode('\/', $_SERVER['REQUEST_URI']));         $req = explode('?', $req);          if ($req[0] == $address) $this-&gt;makeSprite(); } <\/code><\/pre>\n<h5>6. \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434, \u0432\u044b\u0432\u043e\u0434\u044f\u0449\u0438\u0439 \u0441\u0430\u043c\u0443 \u0444\u043e\u0440\u043c\u0443 \u0438 \u0432\u0441\u0435 \u0432\u0441\u0435 \u0432\u0441\u0435. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u043b\u043e \u0431\u044b \u0442\u0443\u0442, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0443\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0438\u043b\u0438, \u043d\u043e \u0442.\u043a. \u0442\u0443\u0442 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f background-image, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0432\u043e\u0446\u0438\u0440\u0443\u0435\u0442 \u0432\u044b\u0437\u043e\u0432 makeSprite() \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043f\u0447\u0430 (\u0430 \u0442\u0430\u043a \u0436\u0435 \u0442\u0430\u043a\u0438\u043c \u0432\u043e\u0442 \u043a\u0440\u0438\u0432\u044b\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0440\u0435\u0448\u0430\u0435\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c), \u0442\u043e \u0440\u0435\u0448\u0438\u043b \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c.<\/h5>\n<pre><code class=\"php\">function getCaptchaForm() {         $this-&gt;getCaptchaAddress($this-&gt;address);          $captcha_form = '&lt;style&gt;                             #icon_captcha label div {                                 background-image: url(\/'.$this-&gt;address.'?'.rand().');                                 width: '.$this-&gt;icon_size.'px;                                 height: '.$this-&gt;icon_size.'px;                             }                              #icon_captcha {                                 margin-bottom: 20px !important;                                 display: table !important;                             }                              #icon_captcha div {                                 width: '.$this-&gt;icon_size.'px;                                 display: inline-block;                                 margin-right: 20px;                             }                              #icon_captcha div input {                                 width: '.$this-&gt;icon_size.'px;                                 margin-left: 0;                                 float: left;                                 border: none;                             }                              #icon_captcha div label img {                                 border: none;                             }                          &lt;\/style&gt;                          &lt;div id=&quot;icon_captcha&quot;&gt;';          for ($i = 1; $i &lt;= $this-&gt;icon_count; ++$i) {             $captcha_form .= '&lt;div&gt;                                 &lt;label for=&quot;val_'.$i.'&quot;&gt;                                     &lt;div class=&quot;i'.$i.'&quot; style=&quot;background-position: '                                             .(($i - 1)*(-$this-&gt;icon_size)).                                      'px 0;&quot;&gt;&lt;\/div&gt;                                 &lt;\/label&gt;                                 &lt;input type=&quot;radio&quot; name=&quot;radio_val&quot; id=&quot;val_'.$i.'&quot; value=&quot;'.$i.'&quot; \/&gt;                               &lt;\/div&gt;';         }          $captcha_form .= '&lt;\/div&gt;';          return $captcha_form; } <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u044b\u0437\u043e\u0432 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435:<\/p>\n<pre><code class=\"php\">require(INC_DIR.'libs\/IconCaptcha.class.php'); $icon_dir = $_SERVER['DOCUMENT_ROOT'].&quot;\/design\/site\/images\/captcha\/&quot;; $icon_captcha = new IconCaptcha(4, $icon_dir, 32, 'iconcaptcha'); $captcha_form = $icon_captcha-&gt;getCaptchaForm(); define('ICONCAPTCHA', $captcha_form); <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c ICONCAPTCHA \u0432 \u043d\u0443\u0436\u043d\u0443\u044e \u043d\u0430\u043c \u0444\u043e\u0440\u043c\u0443, \u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0435 \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435\u043c: $_POST[\u2018radio_val\u2019] == $_SESSION[\u2018iconcaptcha\u2019].<\/p>\n<p>  \u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0449\u0435\u043b\u043a\u0430\u0442\u044c \u0434\u0435\u043c\u043e: <a href=\"http:\/\/iconcaptcha.hut4.ru\/\">iconcaptcha.hut4.ru\/<\/a><br \/>  \u0422\u0443\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043b\u0430\u0441\u0441 \u0446\u0435\u043b\u0438\u043a\u043e\u043c: <a href=\"https:\/\/github.com\/L1Qu0R\/iconcaptcha\/blob\/master\/IconCaptcha.class.php\">github.com\/L1Qu0R\/iconcaptcha\/blob\/master\/IconCaptcha.class.php<\/a> \t\t\t \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\/177805\/\"> http:\/\/habrahabr.ru\/post\/177805\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/361\/c6c\/e73\/361c6ce73dcc2529952a4dd50a8863bb.png\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0440\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441\u043e \u0441\u043f\u0430\u043c\u043e\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u0442\u0430\u0440\u0443\u044e \u043a\u0430\u043f\u0447\u0443 \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u043b\u0438 \u0441\u043f\u0430\u043c\u0431\u043e\u0442\u044b. \u041f\u043e\u0433\u0443\u0433\u043b\u0438\u0432 \u0438 \u043d\u0435 \u043d\u0430\u0439\u0434\u044f \u043d\u0443\u0436\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432, \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439, \u0434\u0430 \u0438 \u0434\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0435\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e.<\/p>\n<p>  \u0418 \u0442\u0430\u043a, \u0441\u0443\u0442\u044c \u043a\u0430\u043f\u0447\u0438 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u043a\u043e\u043d\u043e\u043a \u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u0449\u0438\u0439 \u0440\u044f\u0434. \u0414\u0443\u043c\u0430\u044e \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0442\u0430\u043a\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043c\u043e\u0440\u0435, \u043d\u043e \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b (\u043d\u0443 \u0435\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0442\u043e \u0438 \u0438\u0441\u043a\u0430\u043b).  <\/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-177805","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/177805","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=177805"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/177805\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=177805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=177805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=177805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}