{"id":220069,"date":"2014-04-21T13:44:02","date_gmt":"2014-04-21T09:44:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=220069"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=220069","title":{"rendered":"<span class=\"post_title\">\u041c\u0438\u043a\u0440\u043e\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b: \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0449\u0438\u043a \u0438\u043a\u043e\u043d\u0441\u0435\u0442\u043e\u0432 Fontello<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0447\u0435\u0433\u043e-\u043b\u0438\u0431\u043e \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u0440\u044f\u0434\u043e\u043c \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447. \u0412 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0435\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u043c\u0438\u043a\u0440\u043e\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u0440\u0435\u0448\u0430\u044e\u0449\u0438\u043c\u0438 \u0434\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0440\u0443\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 Fontello \u0438\u043a\u043e\u043d\u043e\u0447\u043d\u044b\u0445 \u0448\u0440\u0438\u0444\u0442\u043e\u0432. \u0418\u0442\u0430\u043a, \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0441\u0435\u043c \u0437\u0434\u0440\u0430\u0432\u0438\u044f \u0438 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h5>\u0426\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432<\/h5>\n<p>  \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0440\u0430\u0437\u043c\u0435\u0449\u0451\u043d\u043d\u044b\u0445 \u043d\u0430 \u043c\u043e\u0435\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u0438\u0441\u0447\u0438\u0441\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u0435\u0441\u044f\u0442\u043a\u0430\u043c\u0438. \u041f\u0440\u043e\u0435\u043a\u0442\u044b \u0440\u0430\u0437\u043d\u044b\u0435 \u2014 \u043e\u0442 \u043c\u0430\u043b\u0430 \u0434\u043e \u0432\u0435\u043b\u0438\u043a\u0430. \u0418 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u044f \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043c\u0435\u043d\u044f\u044e, \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u044e \u0438 \u0442.\u0434\u2026 \u0414\u0435\u043b\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043d\u043e \u043b\u0438\u0447\u043d\u043e \u044f \u0441\u0447\u0438\u0442\u0430\u044e \u0432\u044b\u0432\u043e\u0434 \u043e\u0448\u0438\u0431\u043e\u043a \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u0432\u0435\u0442\u043e\u043d\u043e\u043c. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435 htaccess \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u0430 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043b\u043e\u0433 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0435\u0433\u043e \u0436\u0435 \u043f\u0430\u043f\u043a\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0443\u0434\u043e\u0431\u043d\u043e, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u043e\u0433\u0438 \u0441 \u043e\u0434\u043d\u043e\u0439 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0438 \u0432 \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435 \u043c\u0435\u0441\u0442\u043e. \u041d\u043e \u043c\u0430\u043b\u043e \u0438\u0445 \u0441\u043e\u0431\u0440\u0430\u0442\u044c. \u041d\u0443\u0436\u0435\u043d \u0435\u0449\u0451 \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0434\u0430\u0431\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043b\u043e\u0433\u0430\u043c\u0438 \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430, \u0438\u0431\u043e \u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0432\u0441\u0451 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435, \u043d\u0435 \u0438\u043c\u0435\u044f \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432:  <\/p>\n<pre><code class=\"php\">&lt;?php \/* OPTIONS *\/   define(&quot;PTPL_DATE&quot;,'\/^\\[(\\d+)-(\\w+)-(\\d+)(\\s+)(\\d+):(\\d+):(\\d+)\\]\/si');   define(&quot;PRPL_DATE&quot;,'&lt;b class=&quot;badge&quot;&gt;\\1-\\2-\\3 \\5:\\6:\\7&lt;\/b&gt;');    \/* DATA *\/   $_ = &lt;&lt;&lt;DATA &lt;!DOCTYPE html&gt; &lt;html&gt;&lt;head&gt;   &lt;meta http-equiv=&quot;content-type&quot; content=&quot;text\/html; charset=utf-8&quot;\/&gt;   &lt;title&gt;LOG viewer&lt;\/title&gt;   &lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;http:\/\/netdna.bootstrapcdn.com\/bootstrap\/2.3.2\/css\/bootstrap.min.css&quot; \/&gt;   &lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;http:\/\/fonts.googleapis.com\/css?family=Cuprum&subset=latin&quot; \/&gt;   &lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;http:\/\/netdna.bootstrapcdn.com\/font-awesome\/4.0.3\/css\/font-awesome.min.css&quot; \/&gt;   &lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;index.php?sect=css&quot; \/&gt;   &lt;link rel=&quot;icon&quot; type=&quot;image\/png&quot; href=&quot;index.php?sect=icon&quot; \/&gt;   &lt;script type=&quot;text\/javascript&quot; src=&quot;http:\/\/code.jquery.com\/jquery-1.11.0.min.js&quot;&gt;&lt;\/script&gt;   &lt;script type=&quot;text\/javascript&quot; src=&quot;index.php?sect=js&quot;&gt;&lt;\/script&gt; &lt;\/head&gt;&lt;body&gt;&lt;div class=&quot;container-fluid&quot;&gt; &lt;div class=&quot;row-fluid&quot;&gt;   &lt;div class=&quot;toolbox span3&quot;&gt;     &lt;a id=&quot;el-menu&quot; class=&quot;btn btn-info fa fa-refresh&quot; href=&quot;index.php?sect=menu&quot; data-target=&quot;side&quot;&gt;Refresh&lt;\/a&gt;   &lt;\/div&gt;   &lt;div class=&quot;toolbox span9&quot;&gt;     &lt;a id=&quot;el-content&quot; class=&quot;btn btn-info fa fa-refresh&quot; href=&quot;index.php?sect=log&quot; data-target=&quot;content&quot;&gt;Refresh&lt;\/a&gt;     &lt;a class=&quot;btn btn-danger fa fa-times-circle&quot; href=&quot;index.php?sect=log&act=clear&quot; data-target=&quot;content&quot;&gt;Clear&lt;\/a&gt;   &lt;\/div&gt; &lt;\/div&gt; &lt;div class=&quot;row-fluid&quot; id=&quot;el-root&quot;&gt;   &lt;div class=&quot;side span3&quot;&gt;&lt;div&gt;&lt;\/div&gt;&lt;\/div&gt;   &lt;div class=&quot;content span9&quot;&gt;&lt;div&gt;&lt;\/div&gt;&lt;\/div&gt; &lt;\/div&gt; &lt;\/div&gt;&lt;\/body&gt;&lt;\/html&gt; DATA;   define(&quot;APP_PAGE&quot;,$_);   define(&quot;APP_EMPTY&quot;,'&lt;div class=&quot;logitem info&quot;&gt;&lt;span class=&quot;fa fa-info-circle&quot;&gt;&lt;\/span&gt; Log is empty!'.&quot;&lt;\/div&gt;\\n\\n&quot;);      $_ = &lt;&lt;&lt;JS (function(\\$){   \\$.fn.HTTPError = function(E){     var I = parseInt(E.status);     \\$(this).html('').append(\\$('&lt;div&gt;').addClass('logitem error').append(       \\$('&lt;span&gt;').addClass('fa fa-'+((I == 401 || I == 403)?'lock':'times-circle'))     ).append(       \\$('&lt;span&gt;').text(' '+E.statusText)     ));   }      \\$.fn.logClick = function(T,E,F){     E = E || false;     if (E) E.removeClass('active error').addClass('loading').siblings().removeClass('active error loading');     \\$.get(\\$(this).attr('href')).success(function(D){       \\$('#el-root &gt; div.'+T+':first &gt; div:first').html(D);       if (E) E.removeClass('loading').addClass('active');       if (typeof F == 'function') F();     }).error(function(R){ \\$('#el-root &gt; div.'+T+':first &gt; div:first').HTTPError(R); if (E) E.removeClass('loading').addClass('error'); });     return false;   } })(jQuery);  \\$(function(){   \\$('#el-root &gt; div.side:first').on('click','li &gt; a.item',function(){ return \\$(this).logClick('content',\\$(this).parent()); });   \\$('div.toolbox').on('click','a.btn',function(){ return \\$(this).logClick(\\$(this).attr('data-target')); });   \\$('#el-root &gt; div.side:first').on('click','li &gt; a.fa-times',function(){     return \\$(this).logClick('content',\\$(this).parent(),function(){       \\$('#el-menu').click();       \\$('#el-content').click();     });   });   \\$('#el-menu').click();   \\$('#el-content').click(); }); JS;   define(&quot;APP_JS&quot;,$_);      $_ = &lt;&lt;&lt;CSS html,body,div.container-fluid { height: 100%; } #el-root { height: 75%; } div.span3 { width: 21.769%; padding: 1%; } div.span9 { width: 72.359%; padding: 1%; } a.btn.fa { padding: 4px 8px; font: 16px Cuprum,Arial,sans-serif; } a.btn.fa:before { margin-right: 4px; font: 16px FontAwesome; } #el-root &gt; div.side, #el-root &gt; div.content { height: 100%; border: 1px solid silver; border-radius: 5px; } #el-root &gt; div.side &gt; div, #el-root &gt; div.content &gt; div { height: 100%; overflow-x: hidden; overflow-y: auto; } #el-root &gt; div.side ul { list-style-type: none; margin: 0; padding: 0; } #el-root &gt; div.side ul li { display: block; padding: 4px; color: #358; font: 16px Cuprum,Arial,sans-serif; border-radius: 4px; position: relative; } #el-root &gt; div.side ul li.loading { background: #707788; color: #d0dddf; } #el-root &gt; div.side ul li.error { background: #510; color: #d0dddf; } #el-root &gt; div.side ul li.active { background: #358; color: white; } #el-root &gt; div.side ul li &gt; a.fa-times { display: none; position: absolute; right: 4px; text-decoration: none; color: red; } #el-root &gt; div.side ul li:hover &gt; a.fa-times { display: inline; } #el-root &gt; div.side ul li.active &gt; a.fa-times, #el-root &gt; div.side ul li.error &gt; a.fa-times, #el-root &gt; div.side ul li.active &gt; a.item, #el-root &gt; div.side ul li.error &gt; a.item { color: white; text-decoration: none; } #el-root &gt; div.side ul li.loading &gt; a.fa-times { display: none; } #el-root &gt; div.side ul li.loading &gt; a.item { color: #d0dddf; text-decoration: none; } #el-root &gt; div.side ul li:before { margin-right: 4px; font: 16px FontAwesome; } div.logitem { padding: 4px; border-radius: 4px; } div.logitem.info, div.logitem.error { font: 20px Cuprum,Arial,sans-serif; padding: 24px; } div.logitem.info { background: #e0eeff; } div.logitem.info span.fa { color: royalblue; } div.logitem.error { background: #ffe0cc; } div.logitem.error span.fa { color: red; } CSS;   define(&quot;APP_CSS&quot;,$_);      $_= 'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8\/9hAAAAGXRFWHRTb2Z0d2Fy'     . 'ZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAfJJREFUeNqMUj1rG0EQnbtboYhESFfY'     . 'Jp8ESYFgo8qNazltuvyI\/InYYFKkDoG4NqjLHwiGgCGFK3N9jCVIYYyRzrY+zljS'     . 'Ku+NtdIanJCFudnd2ffmzcwF77a2hCsIgrdwj+Xf64e19thOJjKdTvXCuA38k73t'     . '7d0bBEc0a2WCmIsnSSJ7+\/vvmQv2yzGGZJtZYAkajdRurq8lGwyk3+9Lr9dT\/21n'     . 'ZxfvNoF75QjMBODZCkgd4puLooXo8VjGIO52u\/Kl2ZTG6urXz83mB0Q+KoFdEIQE'     . '\/zw6UtnlclmGw6G8rtWUpNFo6H2xWJTvSZLOFYx9BSCoAcBS+DiOY3mQy91RoluU'     . 'uygBAb+EVqul2TudjpKczBpZKpUkyzKp1+sCzL0EWkK1Wp1nd0qc8RzhDTDhogSP'     . 'gLTtdnsOdEroeWZPnq6soJr7CbQHToHfB3+fC0MSeCVg5r4C1wOOjUA\/ez6fl5dQ'     . 'AMxfSoCCSqWiB2Yj8BmaRyJLVbBAB+KVcHl6Kg+Xlu5Mwcll1hdQgPaKzEbIRrsS'     . 'BufnYo4PDuT5xoYU4tjw8s36+m0P2Hmc6cPbGSkJkfjFTZam8vvwUGMFbJYv0zTv'     . 'dRPvQ80WwdMMfm9jjETwfEsMscxagC1fnZ1dPFpb+yT\/sWyWXRDDdvwRYAB4+UxU'     . 'y0hc0wAAAABJRU5ErkJggg==';   define(&quot;APP_ICON&quot;,$_);  \/* LIB *\/     function _is_log($name) { return !in_array($name,array('.','..','cgi-bin','.htaccess','.htpasswd','index.php')); }    \/* MAIN *\/   session_start();   $out = '';      if (isset($_GET['file'])) {     if (ctype_alnum(str_replace(array('.','_','-'),'',$_GET['file']))) {       if (is_file($_GET['file']) && _is_log($_GET['file'])) {         $_SESSION['currentlog'] = $_GET['file'];       } else { header('HTTP\/1.0 404 Not found'); }     } else { header('HTTP\/1.0 400 Bad request'); }   } else {     if (!isset($_SESSION['currentlog'])) {       $logs = scandir('.'); $fnd = '';       foreach ($logs as $f) if (_is_log($f) && ($fnd=='')) $fnd = $f;       if ($fnd != '') $_SESSION['currentlog'] = $fnd;     }   }      $act  = isset($_GET['act'])?(in_array($_GET['act'],array('clear','del'))?$_GET['act']:'view'):'view';   $sect = 'index';   if (isset($_GET['sect'])) $sect = in_array($_GET['sect'],array('menu','icon','js','css','derr'))?$_GET['sect']:'log';      if (isset($_SESSION['currentlog']) && isset($_SERVER['PHP_AUTH_USER'])) {     switch($sect){       case 'derr': header('HTTP\/1.0 '.intval($_GET['e']).' debug error'); exit(); break;       case 'icon':         header('Content-Type: image\/png');         $img = imagecreatefromstring(base64_decode(APP_ICON));         imagesavealpha($img,true);         imagepng($img); exit();       break;       case 'css' : header('Content-Type: text\/css; charset=utf-8'); echo APP_CSS; exit(); break;       case 'js'  : header('Content-Type: text\/javascript; charset=utf-8'); echo APP_JS; exit(); break;       case 'log' :         $out = '';         switch ($act) {           case 'clear': file_put_contents($_SESSION['currentlog'],''); $out = APP_EMPTY; break;           case 'del'  : unlink($_SESSION['currentlog']); unset($_SESSION['currentlog']); break;           default     :             $log = file($_SESSION['currentlog']);             foreach($log as $str) $out.= '&lt;div class=&quot;logitem&quot;&gt;'.preg_replace(PTPL_DATE,PRPL_DATE,$str).&quot;&lt;\/div&gt;\\n\\n&quot;;             if ($out == '') $out = APP_EMPTY;           break;         }       break;       case 'menu':         $logs = scandir('.');         $out .= '&lt;ul&gt;';         foreach ($logs as $number =&gt; $val) if (_is_log($val))           $out.= '&lt;li class=&quot;fa fa-file-text-o'.($val==$_SESSION['currentlog']?' active':'').'&quot;&gt;'               .  '&lt;a class=&quot;item&quot; href=&quot;index.php?file='.$val.'&sect=log&quot;&gt;'.&quot;$val&lt;\/a&gt;&quot;               .  '&lt;a class=&quot;fa fa-times&quot; href=&quot;index.php?file='.$val.'&sect=log&act=del&quot;&gt;&lt;\/a&gt;'               .  &quot;&lt;\/li&gt;\\n&quot;;         $out .= &quot;&lt;\/ul&gt;\\n&quot;;       break;       default: $out = APP_PAGE; break;     }         header(&quot;Content-Type: text\/html; charset=utf-8&quot;);     echo $out;   } ?&gt; <\/code><\/pre>\n<p>  \u0412 \u043f\u0430\u043f\u043a\u0435 \u0441 \u043b\u043e\u0433\u0430\u043c\u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u043a\u0440\u0438\u043f\u0442 index.php, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u0443\u0434\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u043a\u043e\u0434, \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 HTTP-\u0430\u0443\u0442\u0435\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 (\u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 htpasswd).<\/p>\n<p>  \u0412 .htaccess \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438:  <\/p>\n<pre><code class=\"apache\">php_value log_errors &quot;on&quot; php_value log_errors_max_len &quot;1024&quot; php_value error_log &quot;\/path\/to\/your\/log\/file&quot; <\/code><\/pre>\n<p>  \u0418, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0432\u0441\u0451. \u041f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u043d\u0430\u0448\u0443 \u043f\u0430\u043f\u043a\u0443 \u0441 \u043b\u043e\u0433\u0430\u043c\u0438, \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0443\u0435\u043c\u0441\u044f \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u043d\u0430\u043c \u043b\u043e\u0433. \u041b\u043e\u0433\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0447\u0438\u0449\u0430\u0442\u044c \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0432\u043e\u0432\u0441\u0435. \u0412\u0441\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (bootstrap, jQuery) \u0433\u0440\u0443\u0437\u044f\u0442\u0441\u044f \u0441\u043e \u0441\u0432\u043e\u0438\u0445 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 CDN. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c, \u0445\u043e\u0442\u044f \u0432\u0440\u044f\u0434 \u043b\u0438 \u044d\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/p>\n<h5>\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0449\u0438\u043a \u0438\u043a\u043e\u043d\u0441\u0435\u0442\u043e\u0432 Fontello<\/h5>\n<p>  \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0432\u043e\u0435\u0433\u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0438\u043a\u043e\u043d\u043e\u0447\u043d\u044b\u0439 \u0448\u0440\u0438\u0444\u0442, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0439 FontAwesome \u043d\u0435 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u043b \u0440\u044f\u0434\u0443 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043a\u043e\u043d\u043a\u0438, \u0430 \u0447\u0430\u0441\u0442\u044c \u0438\u043a\u043e\u043d\u043e\u043a \u0431\u044b\u043b\u0430, \u043c\u044f\u0433\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0430. \u0428\u0440\u0438\u0444\u0442 \u0431\u044b\u043b \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d, \u043e\u0434\u043d\u0430\u043a\u043e, \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0443\u0442\u0438\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435\u0439: \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u0441 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c, \u0438\u043b\u0438 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u0432\u0441\u0435 \u043a\u043e\u0434\u044b \u0438 \u0430\u043b\u0438\u0430\u0441\u044b, \u0438\u043b\u0438 \u0436\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043f\u043e\u0434\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0432 CSS-\u0444\u0430\u0439\u043b. \u0412\u0441\u0435 \u0442\u0440\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0431\u044b\u043b\u0438 \u0432\u0435\u0441\u044c\u043c\u0430 \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u044b. \u041f\u043e\u0441\u0435\u043c\u0443 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0441\u043e\u0437\u0434\u0430\u044e\u0449\u0438\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e CSS-\u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u0435\u0434\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0448\u0440\u0438\u0444\u0442\u0430.<\/p>\n<p>  \u041a\u043e\u0434 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442 \u0438 \u0441\u0430\u043c\u043e\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u0435\u043d:<\/p>\n<pre><code class=\"php\">&lt;?php \/* SETTINGS *\/   define('fontPrefix',''); \/\/ \u0417\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0448\u0440\u0438\u0444\u0442\u0430   define('fontFile',''); \/\/ \u0417\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u0448\u0440\u0438\u0444\u0442\u0430    \/* DATA *\/   define('fontRegExp','\/'.fontPrefix.'([\\w\\-]+):before(\\s*){(\\s*)content(\\s*):(\\s*)([\\&quot;'.&quot;\\'&quot;.'])(\\S)(\\w+)([\\&quot;'.&quot;\\'&quot;.'])(\\s*);(\\s*)}\/si');   define('fontFTitle','\/^(.*)\\@font-face(\\s*){(\\s*)font-family(\\s*):(\\s*)([\\&quot;'.&quot;\\'&quot;.'])(\\w+)([\\&quot;'.&quot;\\'&quot;.'])(.*)$\/si');    \/* MAIN SECTION *\/   $fontdata = array(); $a = array();   $fontfile = file_get_contents(fontFile);   if (preg_match_all(fontRegExp,$fontfile,$a,PREG_PATTERN_ORDER)) {     foreach ($a[1] as $k =&gt; $v) $fontdata[$v] = str_pad($a[8][$k],4,'0',STR_PAD_LEFT);   } ?&gt; &lt;!DOCTYPE html&gt; &lt;html&gt;&lt;head&gt;   &lt;title&gt;Font table for font &laquo;&lt;?php echo preg_replace(fontFTitle,'\\7',$fontfile); ?&gt;&raquo;&lt;\/title&gt;   &lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;http:\/\/fonts.googleapis.com\/css?family=Cuprum&subset=latin&quot; \/&gt;   &lt;link rel=&quot;stylesheet&quot; type=&quot;text\/css&quot; href=&quot;&lt;?php echo fontFile; ?&gt;&quot; \/&gt;   &lt;style type=&quot;text\/css&quot;&gt;     div.font-table-wrapper { padding: 4px 0; }     ul.font-table li {       display: block; float: left; position: relative; width: 200px; padding: 4px 40px;       cursor: pointer; *cursor: hand;       border-right: 1px dotted silver;     }     ul.font-table li.f { border-left: 1px dotted silver; }     ul.font-table li .icon {       position: absolute; left: 8px; top: 2px; display: block; width: 24px; height: 22px; padding-top: 2px;       font-size: 14px; color: #237; border-radius: 3px;       background: #cdf; text-align: center;     }     ul.font-table li .class { font: 15px Cuprum,Arial,sans-serif; color: #68a; }     ul.font-table li .code, ul.font-table li .letter { display: block; position: absolute; top: 7px; text-align: center; font: bold 14px monospace; }     ul.font-table li .code { right: 16px; color: #284; }     ul.font-table li .letter {       background: #c0ffc7; width: 24px; height: 20px; top: 2px; padding-top: 4px; border-radius: 3px;       right: 54px; color: #697;     }   &lt;\/style&gt; &lt;\/head&gt;&lt;body&gt;&lt;div class=&quot;container-fluid&quot;&gt;&lt;div class=&quot;row-fluid&quot;&gt;&lt;div class=&quot;span12 font-table-wrapper&quot;&gt;&lt;ul class=&quot;font-table&quot;&gt; &lt;?php   $c = 0;   foreach ($fontdata as $k =&gt; $v) {     $_ = '&lt;li'.($c==0?' class=&quot;f&quot;':'').'&gt;&lt;span class=&quot;icon '.fontPrefix.$k.'&quot;&gt;&lt;\/span&gt;&lt;span class=&quot;class&quot;&gt;'.fontPrefix.$k.'&lt;\/span&gt;'        . '&lt;span class=&quot;letter&quot;&gt;&#x'.$v.';&lt;\/span&gt;&lt;span class=&quot;code&quot;&gt;'.$v.'&lt;\/span&gt;'.&quot;&lt;\/li&gt;\\n&quot;;     echo $_;     $c = $c==3?0:($c+1);   } ?&gt; &lt;\/ul&gt;&lt;br style=&quot;clear: both&quot;\/&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/body&gt;&lt;\/html&gt; <\/code><\/pre>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f Cuprum. \u042d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c\u044e \u0434\u043b\u044f \u043f\u0443\u0449\u0435\u0439 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c condensed-\u0444\u0430\u043a\u0442\u0443\u0440\u0443. \u041d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0435 \u2014 \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0438 \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443. \u0423 \u043c\u0435\u043d\u044f \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0435 \u0448\u0440\u0438\u0444\u0442\u0430, \u0430 \u0444\u0430\u0439\u043b \u0441\u0442\u0438\u043b\u0435\u0439 \u043d\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f index.css. \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u044d\u0442\u043e \u0432\u0441\u0451, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043a\u0440\u0438\u043f\u0442\u0430.<\/p>\n<p>  \u041d\u0430 \u0441\u0438\u043c \u0432\u0441\u0451, \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043a \u043c\u043e\u0438\u043c \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u0430\u043c.    \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\/220069\/\"> http:\/\/habrahabr.ru\/post\/220069\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0447\u0435\u0433\u043e-\u043b\u0438\u0431\u043e \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 \u0440\u044f\u0434\u043e\u043c \u0440\u0443\u0442\u0438\u043d\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447. \u0412 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0435\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0441\u0432\u043e\u0438\u043c\u0438 \u043c\u0438\u043a\u0440\u043e\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438, \u0440\u0435\u0448\u0430\u044e\u0449\u0438\u043c\u0438 \u0434\u0432\u0435 \u0437\u0430\u0434\u0430\u0447\u0438: \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0440\u0443\u0447\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 Fontello \u0438\u043a\u043e\u043d\u043e\u0447\u043d\u044b\u0445 \u0448\u0440\u0438\u0444\u0442\u043e\u0432. \u0418\u0442\u0430\u043a, \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0441\u0435\u043c \u0437\u0434\u0440\u0430\u0432\u0438\u044f \u0438 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<\/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-220069","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/220069","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=220069"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/220069\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}