{"id":175009,"date":"2013-04-02T11:46:04","date_gmt":"2013-04-02T07:46:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=175009"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=175009","title":{"rendered":"<span class=\"post_title\">\u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439 \u0447\u0435\u0440\u0435\u0437 \u0447\u0435\u0440\u0435\u0434\u0443 ajax \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041a\u043e\u0433\u0434\u0430 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u0434\u043e\u043b\u0433\u043e\u0438\u0433\u0440\u0430\u044e\u0449\u0438\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 (\u0447\u0430\u0441\u0442\u043e \u2014 \u044d\u0442\u043e \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0439), \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0434\u0443\u043c\u0430\u0435\u0442 \u043d\u0430\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c. \u042d\u0442\u043e \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u0438\u0434\u0435\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u0435\u0449\u0435 \u0433\u0434\u0435-\u0442\u043e \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0435\u0442 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0437\u0430\u0434\u0430\u043d\u0438\u044e.<br \/>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u043e\u043f\u0430\u043b\u043e\u0441\u044c \u0441\u0440\u0430\u0437\u0443 2 \u0442\u0430\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438. \u041e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0438\u0445 \u2014 \u044d\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u0443\u044e \u0431\u0438\u0440\u0436\u0443 \u0447\u0435\u0440\u0435\u0437 api \u043a\u0443\u0447\u0443 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0441\u0441\u044b\u043b\u043e\u043a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0433\u0438\u043c, \u0430 \u0442\u043e \u0438 \u0432\u043e\u0432\u0441\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e.<br \/>  \u0418 \u0432\u0447\u0435\u0440\u0430 (\u0442\u043e\u0447\u043d\u0435\u0435 \u0443\u0436\u0435 \u043f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430 \u2013 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u0440\u0430-\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430) \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0447\u0442\u043e\u0431 \u0442\u0443\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e.<br \/>  \u0421\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u0435\u0435 \u0438 \u043f\u0440\u043e\u0449\u0435 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/p>\n<p>  <b>\u0418 \u0442\u0430\u043a, \u0432\u043a\u0440\u0430\u0442\u0446\u0435, \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b&#8230;<\/b><br \/>  <a name=\"habracut\"><\/a><br \/>  \u0411\u0435\u0440\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u0430\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0439, \u043a\u043b\u0430\u0434\u0435\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0443 SQLite (\u0435\u0441\u043b\u0438 \u043a\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0435\u0442 \u2013 \u044d\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432 php, \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u0430\u044f \u0411\u0414, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0442\u0443\u0442 \u0436\u0435 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u043c \u0444\u0430\u0439\u043b\u0435)<br \/>  \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u0442\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f \u0438\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 (\u0438\u0437 \u0431\u0430\u0437\u044b) \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043f\u043e\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e, \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d ajax \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u043e\u0442\u0432\u0435\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u044b\u0432\u0435\u0434\u0435\u0442\u0441\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d. \u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u0441 \u043e\u0448\u0438\u0431\u043a\u043e\u0439, \u044d\u0442\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c\u0441\u044f \u0432 \u0411\u0414 (\u0437\u0430\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435, \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0447\u0438\u0439).<\/p>\n<p>  \u0412 index.html \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0441\u044b\u043b\u043e\u043a \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u0447\u0435\u0442\u043e\u0432 #console.<br \/>  \u0412 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u0445 data-action \u0441\u0441\u044b\u043b\u043e\u043a (\u043a\u0440\u043e\u043c\u0435 ScreenClear) \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u043c\u044f \u043c\u0435\u0442\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u043a\u043b\u0430\u0441\u0441\u0430 stepWise (\u0444\u0430\u0439\u043b stepWise.class.php).<br \/>  \u0412\u0441\u0435\u0433\u043e 4 \u0444\u0430\u0439\u043b\u0430:<br \/>  <b>index.html<\/b> \u2014 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<br \/>  <b>script.js<\/b> \u2014 javascript\/jquery \u0441\u043a\u0440\u0438\u043f\u0442<br \/>  <b>ajax.php<\/b> \u2014 \u043f\u0440\u043e\u043a\u043b\u0430\u0434\u043a\u0430 \u0434\u043b\u044f ajax \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<br \/>  <b>stepWise.class.php<\/b> \u2014 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b<br \/>  \u041d\u0430 github: <a href=\"https:\/\/github.com\/adminoid\/ajaxStepwiseBlank\">github.com\/adminoid\/ajaxStepwiseBlank<\/a><br \/>  \u0418 \u0437\u0434\u0435\u0441\u044c:<br \/>  <b>index.html<\/b>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">index.html<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">&lt;!DOCTYPE HTML&gt; &lt;html lang=&quot;en-US&quot;&gt; &lt;head&gt; \t&lt;meta charset=&quot;UTF-8&quot;&gt; \t&lt;title&gt;&lt;\/title&gt;     &lt;script type=&quot;text\/javascript&quot; src=&quot;http:\/\/code.jquery.com\/jquery-1.9.1.min.js&quot;&gt;&lt;\/script&gt;     &lt;script type=&quot;text\/javascript&quot; src=&quot;script.js&quot;&gt;&lt;\/script&gt; &lt;\/head&gt; &lt;body&gt;  &lt;!-- \u041f\u0440\u0438\u043d\u0446\u0438\u043f \u044d\u0442\u043e\u0439 &quot;\u0441\u0438\u0441\u0442\u0435\u043c\u044b&quot;, \u0433\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439: script.js \u0431\u0435\u0440\u0435\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430 data-action \u0441\u0441\u044b\u043b\u043a\u0438 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \/class\/stepWise.class.php, \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u043a\u043b\u0430\u0434\u043a\u0443 \/ajax\/ajax.php --&gt;  &lt;!-- \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 --&gt; &lt;ul class=&quot;dbActions&quot;&gt;     &lt;li&gt;&lt;a class=&quot;db&quot; data-action=&quot;DbRecreateWithQueue&quot; href=&quot;#&quot;&gt;\u041f\u0435\u0440\u0435\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0430\u0437\u0443 c \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u044e \u0437\u0430\u0434\u0430\u0447&lt;\/a&gt;&lt;\/li&gt;     &lt;li&gt;&lt;a class=&quot;db&quot; data-action=&quot;DbShowData&quot; href=&quot;#&quot;&gt;\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043b\u0435\u0436\u0430\u0442 \u0432 \u0411\u0414&lt;\/a&gt;&lt;\/li&gt; &lt;\/ul&gt;  &lt;!-- \u0420\u0430\u0431\u043e\u0442\u0430 c \u044d\u043a\u0440\u0430\u043d\u043e\u043c \u0432\u044b\u0432\u043e\u0434\u0430 --&gt; &lt;ul class=&quot;screenActions&quot;&gt;     &lt;li&gt;&lt;a class=&quot;screen&quot; data-action=&quot;ScreenClear&quot; href=&quot;#&quot;&gt;\u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d&lt;\/a&gt;&lt;\/li&gt; &lt;\/ul&gt;  &lt;!-- \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043e\u0447\u0435\u0440\u0435\u0434\u044c\u044e \u0437\u0430\u0434\u0430\u0447 --&gt; &lt;ul class=&quot;processActions&quot;&gt;     &lt;li&gt;&lt;a class=&quot;process&quot; data-action=&quot;ProcessQueue&quot; href=&quot;#&quot;&gt;\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0437\u0430\u0434\u0430\u0447&lt;\/a&gt;&lt;\/li&gt; &lt;\/ul&gt;  &lt;!-- \u041e\u0431\u043b\u0430\u0441\u0442\u044c \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 --&gt; &lt;div id=&quot;console&quot;&gt;&lt;\/div&gt;  &lt;!-- \u0427\u0442\u043e\u0431\u044b \u043e\u0448\u0438\u0431\u043a\u0438 \u0431\u044b\u043b\u0438 &quot;\u043a\u0440\u0430\u0441\u043d\u044b\u043c\u0438&quot;, \u0430 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f - &quot;\u0437\u0435\u043b\u0435\u043d\u044b\u043c\u0438&quot; --&gt; &lt;style type=&quot;text\/css&quot;&gt;     .error{color: #730000;}     .success{color: #007300;} &lt;\/style&gt;  &lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <b>script.js<\/b>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">script.js<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">var globals = {     \/\/ \u041f\u0443\u0442\u044c \u043e\u0442 \u043a\u043e\u0440\u043d\u044f \u0441\u0430\u0439\u0442\u0430 \u043a ajax.php     ajaxPath: 'ajax.php',      \/\/ \u041c\u0435\u0442\u043e\u0434 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u0438     process: function(action){         $.post(this.ajaxPath,{             action: action         })             .success(function(xhr) {                 var response = $.parseJSON(xhr);                  $('#console')                     .append(&quot;&lt;span class='&quot;+response.status+&quot;'&gt;&quot;+response.message+&quot;&lt;\/span&gt;&quot;);                  \/\/ \u0415\u0441\u043b\u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u043d\u0435 complete, \u0442\u043e \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c                 if(response.status !== 'complete'){                     globals.process(action);                 }             });     } }  $(function(){     \/\/ \u041f\u0440\u0438 \u043a\u043b\u0438\u043a\u0435 \u043d\u0430 \u043b\u044e\u0431\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u0441 css \u043a\u043b\u0430\u0441\u0441\u043e\u043c &quot;db&quot;     $(&quot;.db&quot;).click(function(e){         e.preventDefault();         \/\/ \u0411\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 data-action, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 ajax \u0437\u0430\u043f\u0440\u043e\u0441         var action = $(e.target).data('action');         \/\/ \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c ajax \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0443\u0440\u043b         $.post(globals.ajaxPath,{             action: action         })             .success(function(xhr) {                 var response = $.parseJSON(xhr);                 if(response.type == 'message'){                     $('#console')                         .empty()                         .html(&quot;&lt;span class='&quot;+response.status+&quot;'&gt;&quot;+response.message+&quot;&lt;\/span&gt;&quot;);                 }             });      });      \/\/ \u0421\u0441\u044b\u043b\u043a\u0438 \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c .screen \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043d\u0435 \u0434\u043b\u044f ajax, \u0430 \u0434\u043b\u044f \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435     $(&quot;.screen&quot;).click(function(e){         e.preventDefault();         \/\/ \u0411\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0435\u0435 data-action, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c         var action = $(e.target).data('action');         switch(action){             case 'ScreenClear':                 $('#console').empty();                 break;         }     });      \/\/ \u0421\u0441\u044b\u043b\u043a\u0438 \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c .process \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 \u0437\u0430\u0434\u0430\u043d\u0438\u0439     $(&quot;.process&quot;).click(function(e){         e.preventDefault();         \/\/ \u0411\u0435\u0440\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 data-action, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u043e\u0438\u043c\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 ajax \u0437\u0430\u043f\u0440\u043e\u0441         var action = $(e.target).data('action');         $('#console').empty();         globals.process(action);     }); });<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <b>ajax.php<\/b>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">ajax.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;?php \/**  * User: Petja  * Date: 31.03.13  * Time: 14:15  *\/  header(&quot;Cache-Control: no-store, no-cache, must-revalidate&quot;);  \/\/ \u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e ajax \u0437\u0430\u043f\u0440\u043e\u0441 if(empty($_SERVER['HTTP_X_REQUESTED_WITH']) or ($_SERVER['HTTP_X_REQUESTED_WITH']) != 'XMLHttpRequest'){     die('\u042d\u0442\u043e \u043d\u0435 ajax \u0437\u0430\u043f\u0440\u043e\u0441!'); }  \/\/ \u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 action: $availableActions = array('DbRecreateWithQueue', 'DbShowData', 'DbDeleteAll', 'ProcessQueue'); if(!in_array($action = $_POST['action'], $availableActions)){     die('\u041d\u0435\u0442 \u0442\u0430\u043a\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f!'); }  \/\/ \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b include &quot;stepWise.class.php&quot;; $sw = new stepWise;  \/\/ \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 echo json_encode($sw-&gt;$action());<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <b>stepWise.class.php<\/b>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">stepWise.class.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;?php \/**  * User: Petja  * Date: 31.03.13  * Time: 12:50  *\/  class stepWise {      public function DbRecreateWithQueue(){          \/\/ \u0411\u0435\u0440\u0435\u0442 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0437\u0430\u0434\u0430\u0447. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a \u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0438\u043b\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0441\u044b\u043b\u043e\u043a, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u0445 \u0432 SAPE. \u0423 \u043c\u0435\u043d\u044f \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432.         $tasks = array(             '\u0417\u0430\u0434\u0430\u0447\u0430 1',             '\u0417\u0430\u0434\u0430\u0447\u0430 2',             '\u0417\u0430\u0434\u0430\u0447\u0430 3',             '\u0417\u0430\u0434\u0430\u0447\u0430 4',             '\u0417\u0430\u0434\u0430\u0447\u0430 5',             '\u0417\u0430\u0434\u0430\u0447\u0430 6',             '\u0417\u0430\u0434\u0430\u0447\u0430 7',             '\u0417\u0430\u0434\u0430\u0447\u0430 8',             '\u0417\u0430\u0434\u0430\u0447\u0430 9',             '\u0417\u0430\u0434\u0430\u0447\u0430 10'         );          try {             \/\/ \u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0411\u0414 SQLite \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0435\u0435 \u043d\u0435\u0442             $db = new PDO('sqlite:temp.db');             $db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);              \/\/ \u041e\u0447\u0438\u0449\u0430\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443             $db-&gt;exec(                 &quot;DROP TABLE IF EXISTS tempTableForTasks;&quot;             );              \/\/ \u0421\u043e\u0437\u0434\u0430\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u0438             $db-&gt;exec(                 &quot;CREATE TABLE IF NOT EXISTS tempTableForTasks(                     id INTEGER PRIMARY KEY,                     tasks TEXT,                     status TEXT,                     optional TEXT                 );&quot;             );              \/\/ \u041f\u043e\u043c\u0435\u0449\u0430\u0435\u0442 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0432 \u0411\u0414             foreach($tasks as $task){                 static $n = 1;                 $db-&gt;exec(&quot;INSERT INTO tempTableForTasks(tasks, status, optional) VALUES ('&quot;.$task.&quot;', '', '\u0417\u0430\u043f\u0438\u0441\u044c \u2116 &quot;.$n.&quot;');&quot;);                 $n++;             }              \/\/ \u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0411\u0414             $db = null;              \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430             return array(                 'status' =&gt; 'success',                 'type' =&gt; 'message',                 'method' =&gt; __METHOD__,                 'message' =&gt; '\u0411\u0414 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0430!'             );         }         catch(PDOException $e) {             \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438             return array(                 'status' =&gt; 'error',                 'type' =&gt; 'message',                 'method' =&gt; __METHOD__,                 'message' =&gt; $e-&gt;getMessage()             );         }     }      public function DbShowData(){         try {             \/\/ \u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0411\u0414 SQLite \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0435\u0435 \u043d\u0435\u0442             $db = new PDO('sqlite:temp.db');             $db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);              \/\/ \u0412\u0437\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b             $result = $db-&gt;query('SELECT * FROM tempTableForTasks');             $result_all = $result-&gt;fetchall(PDO::FETCH_ASSOC);              \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u0437 \u043a\u043b\u044e\u0447\u0435\u0439             $output = '&lt;table&gt;&lt;tr&gt;';             foreach(array_keys($result_all[0]) as $key){                 $output .= &quot;&lt;th&gt;&quot;.$key.&quot;&lt;\/th&gt;&quot;;             }             $output .= '&lt;\/tr&gt;';              \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430             foreach($result_all as $tr){                 $output .= '&lt;tr&gt;';                 foreach($tr as $td){                     $output .= '&lt;td&gt;'.$td.'&lt;\/td&gt;';                 }                 $output .= '&lt;\/tr&gt;';             }             $output .= '&lt;\/table&gt;';              \/\/ \u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0411\u0414             $db = null;              \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430             return array(                 'status' =&gt; 'success',                 'type' =&gt; 'message',                 'method' =&gt; __METHOD__,                 'message' =&gt; $output             );         }         catch(PDOException $e) {             \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438             return array(                 'status' =&gt; 'error',                 'type' =&gt; 'message',                 'method' =&gt; __METHOD__,                 'message' =&gt; $e-&gt;getMessage()             );         }     }      \/*      * \u0412\u0437\u044f\u0442\u044c \u0438\u0437 \u0411\u0414 \u043e\u0434\u0438\u043d \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442      * \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0435\u0433\u043e      * \u0412\u0435\u0440\u043d\u0443\u0442\u044c \u0443\u0441\u043f\u0435\u0445 \u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443      * \u041f\u043e\u043c\u0435\u0442\u0438\u0442\u044c \u0432 \u0411\u0414 \u044d\u0442\u043e\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439      * *\/     public function ProcessQueue(){          try {             \/\/ \u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0411\u0414 SQLite \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0435\u0435 \u043d\u0435\u0442             $db = new PDO('sqlite:temp.db');             $db-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);              \/\/ \u0412\u0437\u044f\u0442\u044c \u043e\u0434\u043d\u0443 \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b             $result = $db-&gt;query('SELECT * FROM tempTableForTasks WHERE status != &quot;processed&quot;');             $notProcessedColumn = $result-&gt;fetch(PDO::FETCH_ASSOC);             \/\/ \u0415\u0441\u043b\u0438 \u043d\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \u043d\u0435 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c status complete             if(!$notProcessedColumn){                 return array(                     'status' =&gt; 'complete',                     'type' =&gt; 'queue',                     'method' =&gt; __METHOD__,                     'message' =&gt; '\u041a\u043e\u043d\u0435\u0446'                 );             }              \/\/ \u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443             $status = $this-&gt;OneAction();             if($status == 'success'){                 $db-&gt;exec('UPDATE tempTableForTasks SET status=&quot;processed&quot;, optional=&quot;\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043e&quot; WHERE id = &quot;'.$notProcessedColumn['id'].'&quot;');             }elseif($status == 'error'){                 $db-&gt;exec('UPDATE tempTableForTasks SET status=&quot;processed&quot;, optional=&quot;\u043e\u0448\u0438\u0431\u043a\u0430&quot; WHERE id = &quot;'.$notProcessedColumn['id'].'&quot;');             }              \/\/ \u0424\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u043e\u0442\u0432\u0435\u0442\u0430 - \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0430\u044f\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 \u0411\u0414 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438             $result = $db-&gt;query('SELECT * FROM tempTableForTasks WHERE id = &quot;'.$notProcessedColumn['id'].'&quot;');             $processedColumn = $result-&gt;fetch(PDO::FETCH_ASSOC);              \/\/ \u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0411\u0414             $db = null;              \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0445\u0430             return array(                 'status' =&gt; $status,                 'type' =&gt; 'queue',                 'method' =&gt; __METHOD__,                 'message' =&gt; implode(&quot;, &quot;, $processedColumn).&quot;&lt;br&gt;\\n&quot;             );         }         catch(PDOException $e) {             \/\/ \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u0448\u0438\u0431\u043a\u0438             return array(                 'status' =&gt; 'error',                 'type' =&gt; 'message',                 'method' =&gt; __METHOD__,                 'message' =&gt; $e-&gt;getMessage()             );         }     }      \/*      * \u042d\u0442\u043e \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0432 1 \u0441\u0435\u043a\u0443\u043d\u0434\u0443      * \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c 30%      * *\/     private function OneAction(){         \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043d\u0430 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0434\u043b\u044f \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438         sleep(1);         \/\/ \u0421 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e 30% \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0430         if (rand(1, 100) &lt;= 30){             return 'error';         }         return 'success';     } } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\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\/175009\/\"> http:\/\/habrahabr.ru\/post\/175009\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041a\u043e\u0433\u0434\u0430 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0441\u044f \u0441 \u0434\u043e\u043b\u0433\u043e\u0438\u0433\u0440\u0430\u044e\u0449\u0438\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 (\u0447\u0430\u0441\u0442\u043e \u2014 \u044d\u0442\u043e \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0437\u0430\u0434\u0430\u043d\u0438\u0439), \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0436\u0434\u0430\u0442\u044c, \u043f\u043e\u043a\u0430 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0434\u0443\u043c\u0430\u0435\u0442 \u043d\u0430\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c. \u042d\u0442\u043e \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043c\u043d\u0435 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c, \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u0438\u0434\u0435\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u0435\u0449\u0435 \u0433\u0434\u0435-\u0442\u043e \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0435\u0442 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0437\u0430\u0434\u0430\u043d\u0438\u044e.<br \/>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u043e\u043f\u0430\u043b\u043e\u0441\u044c \u0441\u0440\u0430\u0437\u0443 2 \u0442\u0430\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438. \u041e\u0434\u043d\u0430 \u0438\u0437 \u043d\u0438\u0445 \u2014 \u044d\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u0443\u044e \u0431\u0438\u0440\u0436\u0443 \u0447\u0435\u0440\u0435\u0437 api \u043a\u0443\u0447\u0443 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u0441\u0441\u044b\u043b\u043e\u043a. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u043e\u043b\u0433\u0438\u043c, \u0430 \u0442\u043e \u0438 \u0432\u043e\u0432\u0441\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e.<br \/>  \u0418 \u0432\u0447\u0435\u0440\u0430 (\u0442\u043e\u0447\u043d\u0435\u0435 \u0443\u0436\u0435 \u043f\u043e\u0437\u0430\u0432\u0447\u0435\u0440\u0430 \u2013 \u043f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u0440\u0430-\u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430) \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043a\u0443 \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0441 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0447\u0442\u043e\u0431 \u0442\u0443\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e.<br \/>  \u0421\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u0435\u0435 \u0438 \u043f\u0440\u043e\u0449\u0435 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f.<\/p>\n<p>  <b>\u0418 \u0442\u0430\u043a, \u0432\u043a\u0440\u0430\u0442\u0446\u0435, \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b&#8230;<\/b>  <\/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-175009","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/175009","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=175009"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/175009\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=175009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=175009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=175009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}