{"id":261856,"date":"2015-07-20T13:36:02","date_gmt":"2015-07-20T09:36:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=261856"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=261856","title":{"rendered":"\u0417\u0430\u0449\u0438\u0442\u0430 PHP \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043f\u0443\u0442\u044f\u043c \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 \u043a \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u043c\u0443 \u0438\u043c\u0435\u043d\u0438"},"content":{"rendered":"<p>             \u0414\u0443\u043c\u0430\u044e, \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0432\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 Ioncube, PHPLockit, \u043d\u043e \u043c\u043d\u043e\u0433\u0438\u043c \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0432 Ioncube \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u0448\u0442\u0443\u043a\u0430, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u0442.\u0434., \u043d\u043e \u043c\u043d\u043e\u0433\u0438\u043c \u043d\u0435\u0432\u044b\u0433\u043e\u0434\u043d\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u0438\u043b\u0438 \u0436\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0443\u0436\u0438\u043c\u0438 \u0443\u0441\u043b\u0443\u0433\u0430\u043c\u0438, \u0430 \u0442\u043e \u043c\u0430\u043b\u043e \u043b\u0438, \u0432\u0441\u0435 \u0431\u044b\u0432\u0430\u0435\u0442.<\/p>\n<p>  \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0432\u0435\u0441\u044c \u043a\u043e\u0434, \u0430 \u043b\u0438\u0448\u044c \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u044c, \u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0442\u0430\u043a\u043e\u0439 \u00ab\u043c\u0430\u0441\u0441\u0438\u0432\u00bb \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b:<\/p>\n<pre><code class=\"php\">$_SERVER['HTTP_HOST'] <\/code><\/pre>\n<p>  \u041d\u043e \u0435\u0433\u043e \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u043e\u0439\u0442\u0438:<\/p>\n<pre><code class=\"php\">$_SERVER['HTTP_HOST']='\u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d'; <\/code><\/pre>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0438 \u0435\u0451 \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u043d\u0438\u0435\u043c PHP, MySQL.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412 \u0438\u0442\u043e\u0433\u0435 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f:  <\/p>\n<ul>\n<li>\u0421\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u0443\u0442\u0435\u043c \u043e\u0431\u0444\u0443\u0441\u043a\u0430\u0442\u043e\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442 API \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u0441\u0430\u0439\u0442\u0443, \u0433\u0434\u0435 API \u0438\u0449\u0435\u0442 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0438 \u043a\u043b\u044e\u0447 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445; \u0435\u0441\u043b\u0438 \u043e\u043d \u0435\u0441\u0442\u044c, \u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u0441\u0430\u0439\u0442\u0443 (\u043f\u0440\u0438\u043c\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c: domain.com\/api.php?domain=mysite1.ru&#038;key=4024B-C0876-4FF0C-9A298-80EFA);<\/li>\n<li>\u0422\u0430\u043a\u0436\u0435 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 api.php, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0447\u0430\u0442\u044c \u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u0438 \u0442.\u0434.;<\/li>\n<li>\u0422\u0430\u043a\u0436\u0435 \u0445\u043e\u0447\u0443 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c. \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u043e\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u2014 \u044d\u0442\u043e md5 \u0445\u044d\u0448 \u0434\u043e\u043c\u0435\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 api, \u0430 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043b\u0438\u0448\u044c \u0441\u0430\u043c \u0434\u043e\u043c\u0435\u043d \u0438 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u0443\u0441.<\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<p>  <b>1. \u0412\u044b\u0434\u0430\u0447\u0430 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0439 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 api:<\/b><\/p>\n<pre><code class=\"php\">&lt;?php  $config = array(  \t'host' =&gt; 'localhost', \t'user' =&gt; 'root', \t'pass' =&gt; '', \t'base' =&gt; 'lic' \t );  $db = new mysqli($config['host'], $config['user'], $config['pass'], $config['base']); if($db-&gt;connect_errno) {     exit('\u041e\u0448\u0438\u0431\u043a\u0430: \u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445!'); } $db-&gt;set_charset(&quot;utf8&quot;);  class Main { \tpublic \tfunction keygen($domain){ \t\t$key[0] = strtoupper(md5($domain)); \t\t$key[1] = substr($key[0], 0, 5); \t\t$key[2] = substr($key[0], 5, 5); \t\t$key[3] = substr($key[0], 10, 5); \t\t$key[4] = substr($key[0], 15, 5); \t\t$key[5] = substr($key[0], 20, 5); \t\t \t\treturn $key[1].'-'.$key[2].'-'.$key[3].'-'.$key[4].'-'.$key[5]; \t}  \tpublic function getLicInfo($domain){ \t\tglobal $db, $config; \t\t \t\t$sql = &quot;SELECT * FROM `licenses` WHERE `domain` = '{$domain}' LIMIT 1&quot;; \t\t$result = $db-&gt;query($sql);  \t\tif($result-&gt;num_rows == 1){ \t\t\treturn $result-&gt;fetch_assoc(); \t\t} \t\treturn false; \t} }  $main = new Main;  $domain = &quot;&quot;.$_GET['domain'].&quot;&quot;; $key = strtoupper($_GET['key']);    if($lic = $main-&gt;getLicInfo($domain)){ \tif($lic['license_status']){ \t\t$twokey = $main-&gt;keygen($lic['license_domain']); \t\tif($twokey == $key){ \t\t\t$a = 'OK_'.$lic['license_domain']; \t\t} else { \t\t\t$a = 'ERROR_wrongkey'; \t\t} \t} else { \t\t$a = 'ERROR_nolicense'; \t} } else { \t$a = 'ERROR_nolicense'; }  echo $a; exit(); ?&gt; <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0441\u0430\u043c \u043a\u043e\u0434 api.php. \u0422\u0443\u0442 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"php\">class Main { \tpublic \tfunction keygen($domain){ \t\t$key[0] = strtoupper(md5($domain)); \t\t$key[1] = substr($key[0], 0, 5); \t\t$key[2] = substr($key[0], 5, 5); \t\t$key[3] = substr($key[0], 10, 5); \t\t$key[4] = substr($key[0], 15, 5); \t\t$key[5] = substr($key[0], 20, 5); \t\t \t\treturn $key[1].'-'.$key[2].'-'.$key[3].'-'.$key[4].'-'.$key[5]; \t} <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u043b\u044e\u0447 \u0434\u043e\u043c\u0435\u043d\u0430 \u043f\u0443\u0442\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f md5 \u0445\u044d\u0448.<\/p>\n<p>  <b>2.\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043c\u0435\u043d\u0430 \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445<\/b><br \/>  \u0412 1 \u043f\u0443\u043d\u043a\u0442\u0435 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u043e\u0431\u043e\u0437\u0440\u0435\u0432\u0430\u043b\u0438 \u043a\u043e\u0434 api.php, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0430. \u0425\u043e\u0447\u0443 \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0443\u0436\u0435 \u0432\u044b\u0434\u0435\u043b\u044f\u043b:<\/p>\n<pre><code class=\"php\">\tpublic function getLicInfo($domain){ \t\tglobal $db, $config; \t\t \t\t$sql = &quot;SELECT * FROM `licenses` WHERE `domain` = '{$domain}' LIMIT 1&quot;; \t\t$result = $db-&gt;query($sql);  \t\tif($result-&gt;num_rows == 1){ \t\t\treturn $result-&gt;fetch_assoc(); \t\t} \t\treturn false; \t} } <\/code><\/pre>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0443\u0434\u0430\u0447\u043d\u043e, \u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442; \u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u043e\u043d \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u0443\u0435\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0441\u0430\u0439\u0442.<\/p>\n<p>  \u0412\u043e\u0442 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438 \u043e\u0431\u043e\u0437\u0440\u0435\u0432\u0430\u0442\u044c \u043a\u043e\u0434 api.php, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438, \u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u043e\u0438\u0442 \u0432\u043e\u043f\u0440\u043e\u0441: \u00ab\u0410 \u043a\u0430\u043a \u0435\u0433\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0441\u0430\u043c\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435?\u00bb<\/p>\n<p>  \u0414\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043e\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043a\u043e\u0434\u0443:<\/p>\n<pre><code class=\"php\">\tpublic function __destruct() { \t\t$request = file_get_contents(&quot;http:\/\/domain.com\/api.php?domain=&quot;. $_SERVER['HTTP_HOST'] .&quot;&key=&quot;.$this-&gt;config-&gt;lic_key); \t\t$status = explode(&quot;_&quot;, $request); \t\t \t\tif($status[0] != &quot;OK&quot; && &quot;&quot;.$_SERVER['HTTP_HOST'].&quot;&quot; != $status[1]){ \t\t\theader(&quot;Location: http:\/\/domain.com\/&quot;); \t\t} \t} <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 API \u0438 \u0435\u0441\u043b\u0438 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0438 \u0435\u0441\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f \u0435\u0441\u0442\u044c \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0422\u0430\u043a\u0430\u044f \u0436\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u0435\u0441\u043b\u0438 \u043a\u043e\u0434 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 api.php \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u00ab\u043e\u0442\u0440\u0435\u0437\u043e\u043a\u00bb \u043a\u043e\u0434\u0430:<\/p>\n<pre><code class=\"php\">if($lic = $main-&gt;getLicInfo($domain)){ \tif($lic['license_status']){ \t\t$twokey = $main-&gt;keygen($lic['license_domain']); \t\tif($twokey == $key){ \t\t\t$a = 'OK_'.$lic['license_domain']; \t\t} else { \t\t\t$a = 'ERROR_wrongkey'; \t\t} \t} else { \t\t$a = 'ERROR_nolicense'; \t} } else { \t$a = 'ERROR_nolicense'; }  echo $a; exit(); <\/code><\/pre>\n<p>  \u0414\u0443\u043c\u0430\u044e, \u0442\u0443\u0442 \u043f\u043e\u043d\u044f\u0442\u043d\u043e: \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e \u00ab\u0432\u044b\u0445\u043e\u0434\u0438\u0442\u00bb \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 ok_myssite.com \u0438 \u044d\u0442\u043e \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0435\u0442, \u0442\u043e \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443, \u0430 \u0435\u0441\u043b\u0438 \u0432\u0432\u0435\u0434\u0435\u043d \u043d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0438\u043b\u0438 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f, \u0442\u043e \u00ab\u0432\u044b\u0445\u043e\u0434\u0438\u0442\u00bb \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f (\u0441\u043c\u043e\u0442\u0440\u044f \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430):<\/p>\n<p>  ERROR_nolicense<\/p>\n<p>  \u0438\u043b\u0438 \u0436\u0435<\/p>\n<p>  ERROR_wrongkey<\/p>\n<p>  \u0414\u0443\u043c\u0430\u044e, \u0432\u0441\u0435. \u0422\u0430\u043a\u0436\u0435 \u0436\u0434\u0443 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432, \u0438 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e  <a href=\"http:\/\/habrahabr.ru\/users\/pixxxel\/\" class=\"user_link\">pixxxel<\/a> \u0437\u0430 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u044c\u044e <a href=\"http:\/\/habrahabr.ru\/post\/29301\/\">\u00ab\u0417\u0430\u0449\u0438\u0442\u0430 PHP \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043e\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e?\u00bb<\/a>             <\/p>\n<div class=\"clear\"><\/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\/263075\/\"> http:\/\/habrahabr.ru\/post\/263075\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>             \u0414\u0443\u043c\u0430\u044e, \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0432\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0440\u0430\u0437\u043d\u044b\u0435 Ioncube, PHPLockit, \u043d\u043e \u043c\u043d\u043e\u0433\u0438\u043c \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0432 Ioncube \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u0448\u0442\u0443\u043a\u0430, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043e\u0436\u043d\u043e \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u0442.\u0434., \u043d\u043e \u043c\u043d\u043e\u0433\u0438\u043c \u043d\u0435\u0432\u044b\u0433\u043e\u0434\u043d\u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u0438\u043b\u0438 \u0436\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0443\u0436\u0438\u043c\u0438 \u0443\u0441\u043b\u0443\u0433\u0430\u043c\u0438, \u0430 \u0442\u043e \u043c\u0430\u043b\u043e \u043b\u0438, \u0432\u0441\u0435 \u0431\u044b\u0432\u0430\u0435\u0442.<\/p>\n<p>  \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0432\u0435\u0441\u044c \u043a\u043e\u0434, \u0430 \u043b\u0438\u0448\u044c \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u044c, \u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0442\u0430\u043a\u043e\u0439 \u00ab\u043c\u0430\u0441\u0441\u0438\u0432\u00bb \u0434\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b:<\/p>\n<pre><code class=\"php\">$_SERVER['HTTP_HOST'] <\/code><\/pre>\n<p>  \u041d\u043e \u0435\u0433\u043e \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u043e\u0439\u0442\u0438:<\/p>\n<pre><code class=\"php\">$_SERVER['HTTP_HOST']='\u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0439 \u0434\u043e\u043c\u0435\u043d'; <\/code><\/pre>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0441\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0438 \u0435\u0451 \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0448\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0439 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u043d\u0438\u0435\u043c PHP, MySQL.  <\/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-261856","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/261856","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=261856"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/261856\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=261856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=261856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=261856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}