{"id":270938,"date":"2015-12-23T10:05:04","date_gmt":"2015-12-23T07:05:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=270938"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=270938","title":{"rendered":"\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0442\u043e\u0440\u0440\u0435\u043d\u0442-\u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u043d\u0430 \u0431\u0430\u0437\u0435 RuTracker?"},"content":{"rendered":"<p>       \u042f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0435\u0437 \u00ab\u0432\u043e\u0434\u044b\u00bb. \u041c\u0438\u043d\u0438\u043c\u0443\u043c \u043b\u0438\u0448\u043d\u0435\u0439 \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u044e\u0449\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0440\u0430\u0437\u0433\u043b\u0430\u0433\u043e\u043b\u044c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0439. \u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043a\u043e\u0434\u0430. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441 \u0437\u0430\u0447\u0435\u043c \u043a\u043e\u043c\u0443-\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0442\u043e\u0440\u0440\u0435\u043d\u0442-\u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u043d\u0430 \u0431\u0430\u0437\u0435 RuTracker. \u0418 \u044f \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044e \u0441\u0435\u0431\u044f \u0433\u0443\u0440\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0441\u0430\u0439\u0442 \u0432\u043c\u0435\u0441\u0442\u0435. \u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Apache+PHP, MySQL \u0438 Sphinx. \u0421\u0440\u0430\u0437\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0443, \u0447\u0442\u043e \u043d\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 \u0441\u0430\u0439\u0442 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/u0FqvQe.png\" alt=\"image\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0411\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0432\u0437\u044f\u0442\u044c \u0441\u0430\u043c\u0443 \u0431\u0430\u0437\u0443. RuTracker \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u0435\u0441\u044f\u0446 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043c\u043f \u0441\u0432\u043e\u0438\u0445 \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u043e\u0432 <a href=\"http:\/\/rutracker.org\/forum\/viewtopic.php?t=4824458\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0438 \u0432\u0438\u0434\u0438\u043c \u0434\u0432\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 CSV. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/7DB32KP.png\" alt=\"image\"\/><\/p>\n<p>  \u041d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u0430\u0445 \u2013 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c. \u0412 \u0444\u0430\u0439\u043b\u0435 \u00abcategory_info.csv\u00bb \u2014 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u043e\u043c\u0443 \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u0444\u0430\u0439\u043b (\u0443\u0434\u0430\u043b\u0438\u0442\u044c: \u00abcategory_1.csv\u00bb, \u00abcategory_4.csv\u00bb, \u00abcategory_36.csv\u00bb). \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043b\u044e\u0431\u043e\u0439 \u0438\u0437 \u043e\u0441\u0442\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0432\u0438\u0434\u0438\u043c \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 (\u044f \u0441\u0440\u0430\u0437\u0443 \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0441\u0438\u043c\u0432\u043e\u043b \u00ab;\u00bb \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0447\u0442\u043e \u0431\u044b \u0431\u044b\u043b\u043e \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435):  <\/p>\n<table>\n<tr>\n<td>\u00ab1568\u00bb<\/td>\n<td>ID \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u043d\u0430 RuTracker<\/td>\n<\/tr>\n<tr>\n<td>\u00ab\u041a\u0443\u043b\u0438\u043d\u0430\u0440\u0438\u044f\u00bb<\/td>\n<td>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0430<\/td>\n<\/tr>\n<tr>\n<td>\u00ab63629\u00bb<\/td>\n<td>ID \u0442\u0435\u043c\u044b \u043d\u0430 RuTracker<\/td>\n<\/tr>\n<tr>\n<td>\u00abF7D7BE97A818CCDFA072C42348EB669F7883888D\u00bb<\/td>\n<td>Hash \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u0430<\/td>\n<\/tr>\n<tr>\n<td>&quot;(\u041a\u0443\u043b\u0438\u043d\u0430\u0440\u0438\u044f) \u0412\u043a\u0443\u0441\u043d\u044b\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 1&quot;<\/td>\n<td>\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u0430<\/td>\n<\/tr>\n<tr>\n<td>\u00ab729927066\u00bb<\/td>\n<td>\u0420\u0430\u0437\u043c\u0435\u0440 \u0440\u0430\u0437\u0434\u0430\u0447\u0438 \u0432 \u0431\u0430\u0439\u0442\u0430\u0445<\/td>\n<\/tr>\n<tr>\n<td>\u00ab2006-08-21 10:00:22\u00bb<\/td>\n<td>\u0414\u0430\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0440\u0430\u0437\u0434\u0430\u0447\u0438<\/td>\n<\/tr>\n<\/table>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432\u0441\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c MySQL, \u043a\u0430\u043a \u0441\u0430\u043c\u0443\u044e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u0443\u044e \u0411\u0414. \u0423 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 (\u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435: \u0441\u0442\u043e\u043b\u0431\u0435\u0446 \u00abhash\u00bb \u2014 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439, \u0432\u0441\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0435 utf8):<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0422\u0430\u0431\u043b\u0438\u0446\u0430 SQL<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"sql\">CREATE TABLE IF NOT EXISTS `torrents` (   `id` int(11) NOT NULL,   `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,   `hash` varchar(40) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,   `date` date NOT NULL,   `size` int(11) NOT NULL,   `topic_id` int(11) NOT NULL,   `cat_id` int(11) NOT NULL,   `cat_name` varchar(120) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf32 COLLATE=utf32_bin;  ALTER TABLE `torrents`   ADD PRIMARY KEY (`id`),   ADD UNIQUE KEY `hash` (`hash`);  ALTER TABLE `torrents`   MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0437\u0430\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b CSV \u0432 \u043e\u0434\u043d\u0443 \u043f\u0430\u043f\u043a\u0443 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0451 \u00abdb\u00bb) \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u0430\u0445 \u0432 \u0411\u0414 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0438\u0436\u0435. \u0415\u0433\u043e \u0442\u043e\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043a\u0430\u0447\u0430\u0442\u044c \u0432 \u0442\u0443 \u0436\u0435 \u043f\u0430\u043f\u043a\u0443 \u0433\u0434\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 CSV-\u0444\u0430\u0439\u043b\u044b.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0430\u0439\u043b insert_to_db.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;? \/\/\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0435\u043c \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430 3-\u043c\u044f \u043c\u0438\u043d\u0443\u0442\u0430\u043c\u0438 set_time_limit(180);   \/\/\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a MySQL, \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 mysql_connect(&quot;localhost&quot;, &quot;torrent&quot;, &quot;password&quot;) or die(&quot;Could not connect to MySQL&quot;);   \/\/\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0411\u0414, \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 mysql_select_db(&quot;torrent&quot;) or die(&quot;Could not select database&quot;);   \/\/\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432\u0441\u0435 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0411\u0414 \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443 utf8 mysql_query(&quot;SET NAMES utf8&quot;);   \/\/\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0432 url \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 &quot;f&quot; $fp = fopen($_GET[f], &quot;r&quot;);   \/\/\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0446\u0438\u043a\u043b \u0434\u043e \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 while (!feof($fp)) {         \/\/\u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 (\u0434\u0430, \u0444\u0443\u043d\u043a\u0446\u0438\u044e trim() \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u043e \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430 \u0441\u0432\u043e\u0438 &quot;\u0442\u0430\u0440\u0430\u043a\u0430\u043d\u044b&quot;)         $tmp = trim(fgets($fp));                           \/\/\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432. \u0417\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c &quot;;&quot;         $torrent = explode('&quot;;&quot;', $tmp);                           \/\/\u0412 \u043f\u0435\u0440\u0432\u043e\u043c \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b &quot;         $torrent[0] = substr($torrent[0], 1);         $torrent[6] = substr($torrent[6], 0, (strlen($torrent[6]) - 1));                           \/\/\u0415\u0441\u043b\u0438 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 \u0442\u043e\u0440\u0440\u0435\u043d\u0442 \u0432 \u0444\u0430\u0439\u043b\u0435         \/\/print '&lt;pre&gt;'; print_r($torrent); exit();                           \/\/\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443         mysql_query(&quot;INSERT INTO `torrents`              (`name`,             `hash`,             `date`,             `size`,             `topic_id`,             `cat_id`,             `cat_name`)            VALUES              ('&quot; . mysql_real_escape_string($torrent[4]) . &quot;',             '&quot; . $torrent[3] . &quot;',             '&quot; . $torrent[6] . &quot;',             '&quot; . $torrent[5] . &quot;',             '&quot; . $torrent[2] . &quot;',             '&quot; . $torrent[0] . &quot;',             '&quot; . mysql_real_escape_string($torrent[1]) . &quot;')         &quot;); } \/\/\u0417\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b fclose($fp);  \/\/\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b print 'complete: ' . $_GET[f]; ?&gt;  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c url \u00abhttp:\/\/site.ru\/db\/insert_to_db.php?f=category_10.csv\u00bb. \u041f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0435\u043c \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441 \u043a\u0430\u0436\u0434\u044b\u043c \u0444\u0430\u0439\u043b\u043e\u043c CSV. \u0414\u0430, \u0432\u0441\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u043e \u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0442\u0430\u043a, \u0447\u0442\u043e \u0431\u044b \u0431\u044b\u043b\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0432\u0441\u0451 \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 1,6 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u0435\u0439. \u041d\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u0442\u0430\u043a\u0430\u044f \u0431\u0430\u0437\u0430. \u041f\u043e\u0438\u0441\u043a MySQL \u0441 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u044a\u0435\u043c\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u043e\u0440\u0443\u0447\u0438\u043c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 Sphinx.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/kvEHbAg.png\" alt=\"image\"\/><\/p>\n<h4>Sphinx<\/h4>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Sphinx \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u0412\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u0436\u0435\u043b\u0435\u0437\u0430. \u042d\u0442\u043e \u0442\u0435\u043c\u0430 \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u041d\u043e \u0435\u0441\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0445 \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432 \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435. \u041d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435 \u0442\u043e\u0436\u0435. \u0421\u0435\u0439\u0447\u0430\u0441 \u0436\u0435 \u043c\u044b \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f Sphinx. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 \u0441\u0430\u0439\u0442\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c, cache. \u0417\u0434\u0435\u0441\u044c \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u0430 Sphinx \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430. \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 \u044d\u0442\u0443 \u043f\u0430\u043f\u043a\u0443 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 (\u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u043d\u0438\u0436\u0435).<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0430\u0439\u043b torrents.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code># \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435 source torrentz {         # \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0411\u0414         type = mysql         sql_host = localhost         sql_user = torrent         sql_pass = password         sql_db = torrent         sql_port = 3306          # \u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432\u0441\u0435 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0411\u0414 \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443 utf8         sql_query_pre = SET NAMES utf8         sql_query_pre = SET CHARACTER SET utf8          # \u0417\u0430\u043f\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u0438         sql_query = SELECT id, name FROM torrents          # \u0412\u0440\u0435\u043c\u044f (\u0432 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445) \u043f\u0430\u0443\u0437\u044b \u043f\u0435\u0440\u0435\u0434 \u043f\u043e\u0441\u044b\u043b\u043a\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0411\u0414. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0445 \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432         sql_ranged_throttle = 0 }   # \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0432\u0441\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Sphinx index torrentz {         # \u0412\u044b\u0431\u043e\u0440 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430         source = torrentz          # \u041f\u0443\u0442\u044c \u0434\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0430         path = \/home\/rutr\/rutracker.online\/www\/cache\/          # \u0421\u043f\u043e\u0441\u043e\u0431 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0430          docinfo = extern          # \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u0439 \u0438 \u0440\u0443\u0441\u0441\u043a\u043e\u0439 \u043c\u043e\u0440\u0444\u043e\u043b\u043e\u0433\u0438\u0438         morphology = stem_enru          # \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430         min_word_len = 2          # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0438         charset_type = utf-8          # \u0421\u0438\u043c\u0432\u043e\u043b\u044b         charset_table = 0..9, A..Z-&gt;a..z, _, a..z, U+410..U+42F-&gt;U+430..U+44F, U+430..U+44F          # \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u0438\u043d\u0444\u0438\u043a\u0441\u0430          min_infix_len = 2          # \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0443\u0441\u0435\u0447\u0435\u043d\u0438\u044f &quot;*&quot;         enable_star = 1 }   # \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0442\u043e\u0440\u0430 indexer {         # \u041b\u0438\u043c\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438         mem_limit = 32M }   # \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u0434\u0435\u043c\u043e\u043d\u0430 searchd { \t\t# \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0430\u0439\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0430 \u043f\u043e\u0438\u0441\u043a \t\tlisten = 127.0.0.1:3312          # \u041b\u043e\u0433         log = \/home\/rutr\/rutracker.online\/www\/cache\/searchd.log          # \u041b\u043e\u0433 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432         query_log = \/home\/rutr\/rutracker.online\/www\/cache\/query.log          # \u0422\u0430\u0439\u043c\u0430\u0443\u0442 \u043d\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c         read_timeout = 5          # \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432 \u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430         max_children = 30          # \u041f\u0443\u0442\u044c \u0434\u043e pid-\u0444\u0430\u0439\u043b\u0430         pid_file = \/home\/rutr\/rutracker.online\/www\/cache\/searchd.pid          # \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0432\u044b\u0434\u0430\u0447\u0438         max_matches = 1000 } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0447\u0435\u0440\u0435\u0437 ssh. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b Sphinx \u0441\u043c\u043e\u0433 \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e \u043d\u0430\u0448\u0435\u0439 \u0431\u0430\u0437\u0435, \u043d\u0430\u0434\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441. \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"bash\">indexer --config \/home\/rutr\/rutracker.online\/www\/cache\/torrents.conf \u2013all <\/code><\/pre>\n<p>  Sphinx \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0437\u0430\u043d\u044f\u043b\u043e \u043e\u043a\u043e\u043b\u043e 10 \u043c\u0438\u043d\u0443\u0442.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/SBgBKWx.png\" alt=\"image\"\/><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0432\u0441\u0435 \u043b\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0448\u043b\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043f\u043e\u0438\u0441\u043a \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b (\u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0430\u044f \u0444\u0440\u0430\u0437\u0430 \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0430):<\/p>\n<pre><code class=\"bash\">search --config \/home\/rutr\/rutracker.online\/www\/cache\/torrents.conf morrowind mod <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/y0Xv3An.png\" alt=\"image\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0432\u0438\u0434\u0435\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430 \u0432\u0435\u0440\u0445\u043d\u0438\u0439 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442, \u0437\u043d\u0430\u0447\u0438\u0442 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e. \u0415\u0441\u043b\u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e, \u0442\u043e \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443. \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u0435\u043c\u043e\u043d\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 Sphinx \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443:<\/p>\n<pre><code class=\"bash\">searchd --config \/home\/rutr\/rutracker.online\/www\/cache\/torrents.conf  <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/S0YJkgd.png\" alt=\"image\"\/><\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0434\u0435\u043c\u043e\u043d \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0414\u043b\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0435\u043c\u043e\u043d\u0430 (\u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e) \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u00ab&#8212;stop\u00bb \u0432 \u043a\u043e\u043d\u0446\u0435 \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<h4>Web<\/h4>\n<p>  \u042f \u043d\u0435 \u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u043b \u043a\u0430\u043a\u043e\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0435: \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438, \u0430\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u044b\u0439 \u0434\u0438\u0437\u0430\u0439\u043d \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0432\u0441\u0435\u0445 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432. \u041f\u043e\u0434 \u044d\u0442\u043e \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043f\u0443\u0441\u0442\u044c \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0430\u0434\u043e\u0435\u0432\u0448\u0438\u0439, Bootstrap. \u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0441\u0442\u0438\u043b\u0435\u0439 \u043e\u043d\u043b\u0430\u0439\u043d. \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c HTML, \u0431\u0435\u0437 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f PHP. \u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u043a\u043e\u0434\u0443, \u0434\u0443\u043c\u0430\u044e, \u0431\u0443\u0434\u0443\u0442 \u0438\u0437\u043b\u0438\u0448\u043d\u0438.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0430\u0439\u043b index.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html lang=&quot;ru&quot;&gt; \t&lt;head&gt; \t\t&lt;meta charset=&quot;utf-8&quot;&gt; \t\t&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt; \t\t&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt; \t\t&lt;link rel=&quot;icon&quot; href=&quot;\/favicon.ico&quot;&gt; \t\t&lt;title&gt;\u0417\u0435\u0440\u043a\u0430\u043b\u043e \u0440\u0430\u0437\u0434\u0430\u0447 RuTracker&lt;\/title&gt; \t\t&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.3.6\/css\/bootstrap.min.css&quot; integrity=&quot;sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7&quot; crossorigin=&quot;anonymous&quot;&gt; \t\t&lt;style type=&quot;text\/css&quot;&gt; \t\t\t.inCenter { \t\t\t    margin: auto; \t\t\t    position: absolute; \t\t\t    top: 0; \t\t\t    left: 0; \t\t\t    bottom: 0; \t\t\t    right: 0; \t\t\t} \t\t\t.inCenter.isResp { \t\t\t    width: 50%; \t\t\t    height: 50%; \t\t\t    min-width: 400px; \t\t\t    max-width: 800px; \t\t\t    padding: 40px; \t\t\t} \t\t&lt;\/style&gt; \t&lt;\/head&gt; \t&lt;body&gt; \t\t&lt;div class=&quot;container&quot;&gt; \t\t\t&lt;div class=&quot;row&quot;&gt; \t\t\t\t&lt;div class=&quot;inCenter isResp&quot;&gt; \t\t\t\t\t&lt;div class=&quot;col-sm-12 col-md-10 col-md-offset-1&quot;&gt; \t\t\t\t\t\t&lt;form action=&quot;search.php&quot; method=&quot;GET&quot;&gt; \t\t\t\t\t\t\t&lt;div class=&quot;form-group text-center&quot;&gt; \t\t\t\t\t\t\t\t&lt;h1&gt;\u0417\u0435\u0440\u043a\u0430\u043b\u043e \u0440\u0430\u0437\u0434\u0430\u0447 RuTracker&lt;\/h1&gt; \t\t\t\t\t\t\t&lt;\/div&gt; \t\t\t\t\t\t\t&lt;div class=&quot;form-group input-group&quot;&gt; \t\t\t\t\t\t\t\t&lt;input class=&quot;form-control input-lg&quot; type=&quot;text&quot; name=&quot;q&quot; placeholder=&quot;&quot;\/&gt;       \t\t\t\t\t\t\t\t&lt;span class=&quot;input-group-btn&quot;&gt; \t\t\t\t\t\t\t\t\t&lt;button class=&quot;btn btn-primary input-lg&quot; type=&quot;submit&quot;&gt;&lt;i class=&quot;glyphicon glyphicon-search&quot;&gt;&lt;\/i&gt;&lt;\/button&gt; \t\t\t\t\t\t\t\t&lt;\/span&gt;\t                 \t\t\t\t\t\t\t&lt;\/div&gt; \t\t\t\t\t\t&lt;\/form&gt; \t\t\t\t\t&lt;\/div&gt; \t\t\t\t&lt;\/div&gt; \t\t\t&lt;\/div&gt; \t\t&lt;\/div&gt; \t&lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u0438\u0437\u0430\u0439\u043d \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u043c \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/oXhGrXq.png\" alt=\"image\"\/><\/p>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0438\u0441\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d API Sphinx \u043d\u0430 PHP. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c <a href=\"https:\/\/code.google.com\/p\/sphinxsearch\/source\/browse\/trunk\/api\/sphinxapi.php\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u041a\u0440\u0430\u0442\u043a\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u0438\u0441\u043a\u0430, \u0430 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u0443\u0436\u0435 \u0432 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0435. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 API, \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0438\u0441\u043a, \u0438\u0449\u0435\u043c, \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u0438\u0441\u043a\u0430 \u0432 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0432\u0438\u0434\u0435. \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0442\u043e\u0440\u0440\u0435\u043d\u0442 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u043f\u043e\u0438\u0441\u043a\u0430, \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043b\u0438\u043a\u043e\u0432.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0430\u0439\u043b search.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;? \/\/\u0424\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u043c \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043f\u0440\u043e\u0441 $q=trim(urldecode($_GET[q]));   \/\/\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u043f\u043e\u0438\u0441\u043a, \u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 if (empty($q)) {header(&quot;Location: \/&quot;); exit();}   \/\/\u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u0435\u0441\u0442\u044c, \u0442\u043e... \/\/\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a MySQL, \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 mysql_connect(&quot;localhost&quot;, &quot;torrent&quot;, &quot;password&quot;) or die(&quot;Could not connect to MySQL&quot;);   \/\/\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0411\u0414, \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 mysql_select_db(&quot;torrent&quot;) or die(&quot;Could not select database&quot;);   \/\/\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432\u0441\u0435 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0411\u0414 \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443 utf8 mysql_query(&quot;SET NAMES utf8&quot;);  \/\/\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c API Sphinx include(&quot;sphinxapi.php&quot;);   \/\/\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 Sphinx  $sphinx=new SphinxClient();   \/\/\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a Sphinx-\u0441\u0435\u0440\u0432\u0435\u0440\u0443. \u041f\u043e\u0440\u0442 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0432 \u0444\u0430\u0439\u043b\u0435 &quot;torrents.conf&quot; $sphinx-&gt;SetServer('localhost', 3312);   \/\/\u0418\u0449\u0435\u043c \u0441\u043e\u0432\u0430\u0434\u0435\u043d\u0438\u0435 \u043f\u043e \u043b\u044e\u0431\u043e\u043c\u044b\u043c \u0441\u043b\u043e\u0432\u043e\u043c $sphinx-&gt;SetMatchMode(SPH_MATCH_ANY);   \/\/\u0421\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e \u0440\u0435\u043b\u0435\u0432\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u0438 $sphinx-&gt;SetSortMode(SPH_SORT_RELEVANCE);   \/\/\u0412\u044b\u0432\u043e\u0434\u0438\u043c 50 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e. $sphinx-&gt;SetLimits(0, 50);       \/\/\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043f\u043e\u0438\u0441\u043a (* - \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0432 \u0444\u0430\u0439\u043b\u0435 &quot;torrents.conf&quot;, \u043d\u043e \u043e\u043d \u0443 \u043d\u0430\u0441 \u043e\u0434\u0438\u043d: torrentz) $torrents=$sphinx-&gt;Query($q, '*');   \/\/\u0415\u0441\u043b\u0438 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u043a\u0430\u043a \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043f\u043e\u0438\u0441\u043a \/\/print $sphinx-&gt;getLastError(); \/\/print '&lt;br&gt;&lt;pre&gt;'; print_r($torrents); exit();    \/\/\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0431\u0430\u0439\u0442\u043e\u0432 \u0432 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442\u044b, \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u044b \u0438 \u0442\u0434. \u041f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u043c \u043d\u0438\u0436\u0435. \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0435\u0451 \u043f\u0440\u0438\u0446\u0438\u043f \u043d\u0435 \u0438\u043c\u0435\u0435\u043c \u0441\u043c\u044b\u0441\u043b\u0430 - \u0447\u0438\u0441\u0442\u0430\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430.  function bytesToSize($bytes, $precision = 0) {            $kilobyte = 1024;         $megabyte = $kilobyte * 1024;         $gigabyte = $megabyte * 1024;         $terabyte = $gigabyte * 1024;                   if (($bytes &gt;= 0) && ($bytes &lt; $kilobyte)) {return $bytes . ' B';}          elseif (($bytes &gt;= $kilobyte) && ($bytes &lt; $megabyte)) {return round($bytes \/ $kilobyte, $precision) . ' Kb';}         elseif (($bytes &gt;= $megabyte) && ($bytes &lt; $gigabyte)) {return round($bytes \/ $megabyte, $precision) . ' Mb';}         elseif (($bytes &gt;= $gigabyte) && ($bytes &lt; $terabyte)) {return round($bytes \/ $gigabyte, $precision) . ' Gb';}         elseif ($bytes &gt;= $terabyte) {return round($bytes \/ $terabyte, $precision) . ' Tb';}          else {return $bytes . ' B';}     }       ?&gt; &lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; \t&lt;head&gt; \t\t&lt;meta charset=&quot;utf-8&quot;&gt; \t\t&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt; \t\t&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt; \t\t&lt;link rel=&quot;icon&quot; href=&quot;\/favicon.ico&quot;&gt; \t\t&lt;title&gt;&lt;?=htmlspecialchars($q)?&gt;&lt;\/title&gt; \t\t&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.3.6\/css\/bootstrap.min.css&quot; integrity=&quot;sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7&quot; crossorigin=&quot;anonymous&quot;&gt; \t\t&lt;style type=&quot;text\/css&quot;&gt; \t\t\tbody \t\t\t{ \t\t\tpadding-top: 80px; \t\t\tpadding-bottom: 20px; \t\t\t} \t\t&lt;\/style&gt; \t&lt;\/head&gt; \t&lt;body&gt; \t\t&lt;nav class=&quot;navbar navbar-default navbar-fixed-top&quot;&gt; \t\t\t&lt;div class=&quot;container&quot;&gt; \t\t\t\t&lt;div class=&quot;navbar-header&quot;&gt; \t\t\t\t\t&lt;button type=&quot;button&quot; class=&quot;navbar-toggle collapsed&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#navbar&quot; aria-expanded=&quot;false&quot; aria-controls=&quot;navbar&quot;&gt; \t\t\t\t\t&lt;span class=&quot;sr-only&quot;&gt;\u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f&lt;\/span&gt; \t\t\t\t\t&lt;span class=&quot;icon-bar&quot;&gt;&lt;\/span&gt; \t\t\t\t\t&lt;span class=&quot;icon-bar&quot;&gt;&lt;\/span&gt; \t\t\t\t\t&lt;span class=&quot;icon-bar&quot;&gt;&lt;\/span&gt; \t\t\t\t\t&lt;\/button&gt; \t\t\t\t\t&lt;a class=&quot;navbar-brand&quot; href=&quot;\/&quot;&gt;\u0417\u0435\u0440\u043a\u0430\u043b\u043e \u0440\u0430\u0437\u0434\u0430\u0447 RuTracker&lt;\/a&gt; \t\t\t\t&lt;\/div&gt; \t\t\t\t&lt;div id=&quot;navbar&quot; class=&quot;navbar-collapse collapse&quot;&gt; \t\t\t\t\t&lt;form action=&quot;\/search.php&quot; method=&quot;GET&quot; class=&quot;navbar-form navbar-left&quot;&gt; \t\t\t\t\t\t&lt;div class=&quot;form-group input-group&quot;&gt; \t\t\t\t\t\t\t&lt;input type=&quot;text&quot; placeholder=&quot;&quot; value=&quot;&lt;?=htmlspecialchars($q)?&gt;&quot; class=&quot;form-control&quot; name=&quot;q&quot;&gt;  \t\t\t\t\t\t\t&lt;span class=&quot;input-group-btn&quot;&gt; \t\t\t\t\t\t\t&lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot;&gt;&lt;i class=&quot;glyphicon glyphicon-search&quot;&gt;&lt;\/i&gt;&lt;\/button&gt; \t\t\t\t\t\t\t&lt;\/span&gt;   \t\t\t\t\t\t&lt;\/div&gt; \t\t\t\t\t&lt;\/form&gt; \t\t\t\t&lt;\/div&gt; \t\t\t\t&lt;!--\/.navbar-collapse --&gt; \t\t\t&lt;\/div&gt; \t\t&lt;\/nav&gt; \t\t&lt;div class=&quot;container&quot;&gt; \t\t\t&lt;h1&gt;&lt;?=htmlspecialchars($q)?&gt;&lt;\/h1&gt; \t\t\t&lt;table class=&quot;table table-striped&quot;&gt; \t\t\t\t&lt;caption&gt;\u0412\u0441\u0435\u0433\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043e: &lt;?=$torrents[total_found]?&gt;&lt;\/caption&gt; \t\t\t\t&lt;tbody&gt; \t\t\t\t\t&lt;? \t\t\t\t\t\t\/\/\u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0435\u043c \u043a\u043b\u044e\u0447\u0438 \u0432 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043f\u043e\u0438\u0441\u043a\u0430 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \t\t\t\t\t    $ids = array_keys($torrents[matches]);   \t\t\t\t\t    \/\/\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 id-\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 \u0434\u043b\u044f SQL \u0444\u043e\u0440\u043c\u0430\u0442 \t\t\t\t\t    $ids = implode(',', $ids);   \t\t\t\t\t    \/\/\u041f\u0438\u0448\u0435\u043c SQL \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u043f\u043e\u0438\u0441\u043a\u0430 \t\t\t\t\t    $sql=&quot;SELECT  \t\t\t\t\t\t    \t`id`, \t\t\t\t\t\t    \t`name`, \t\t\t\t\t\t    \t`hash`, \t\t\t\t\t\t    \t`date`, \t\t\t\t\t\t    \t`size`  \t\t\t\t\t    \tFROM `torrents`  \t\t\t\t\t    \tWHERE `id` IN (&quot;.$ids.&quot;) ORDER BY FIELD(`id`, &quot;.$ids.&quot;)&quot;;   \t\t\t\t\t    \/\/\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c SQL \u0437\u0430\u043f\u0440\u043e\u0441 \t\t\t\t\t    $r=mysql_query($sql);   \t\t\t\t\t    \/\/\u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u0434\u0430\u0447\u0438 \t\t\t\t\t\tfor ($i=0; $i &lt; mysql_num_rows($r); $i++)  \t\t\t\t\t\t{  \t\t\t\t\t\t\t\/\/\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0440\u044f\u0434 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 \t\t\t\t\t\t\t$f=mysql_fetch_array($r);   \t\t\t\t\t\t\t\/\/\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0434\u0430\u0442\u0443 \u0432 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \t\t\t\t\t\t\t$torrent_date=explode('-', $f[date]); \t\t\t\t\t\t\t\/\/\u041c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432, \u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a \t\t\t\t\t\t\t$torrent_date=$torrent_date[2].'.'.$torrent_date[1].'.'.$torrent_date[0]; \t\t\t\t\t?&gt; \t\t\t\t\t&lt;tr&gt; \t\t\t\t\t\t&lt;td width=&quot;75%&quot;&gt;&lt;a href=&quot;\/torrent.php?id=&lt;?=$f[id]?&gt;&quot;&gt;&lt;?=$f[name]?&gt;&lt;\/a&gt;&lt;\/td&gt; \t\t\t\t\t\t&lt;td width=&quot;5%&quot;&gt;&lt;a href=&quot;magnet:?xt=urn:btih:&lt;?=$f[hash]?&gt;&quot;&gt;&lt;i class=&quot;glyphicon glyphicon-magnet&quot;&gt;&lt;\/i&gt;&lt;\/a&gt;&lt;\/td&gt; \t\t\t\t\t\t&lt;td width=&quot;10%&quot;&gt;&lt;?=bytesToSize($f[size])?&gt;&lt;\/td&gt; \t\t\t\t\t\t&lt;td width=&quot;10%&quot;&gt;&lt;?=$torrent_date?&gt;&lt;\/td&gt; \t\t\t\t\t&lt;\/tr&gt; \t\t\t\t\t&lt;? \t\t\t\t\t\t} \t\t\t\t\t?&gt; \t\t\t\t&lt;\/tbody&gt; \t\t\t&lt;\/table&gt; \t\t&lt;\/div&gt; \t\t&lt;!-- \/.container --&gt; \t\t&lt;script src=&quot;https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.3\/jquery.min.js&quot;&gt;&lt;\/script&gt; \t\t&lt;script src=&quot;http:\/\/getbootstrap.com\/dist\/js\/bootstrap.min.js&quot;&gt;&lt;\/script&gt; \t&lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u0430. \u0412\u0434\u0440\u0443\u0433 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0424\u0430\u0439\u043b torrent.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;? \/\/\u0424\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u043c \u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u043c id \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u0430 $id=trim(urldecode($_GET[id]));   \/\/\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 id, \u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 if (empty($id)) {header(&quot;Location: \/&quot;); exit();}   \/\/\u0415\u0441\u043b\u0438 id \u0435\u0441\u0442\u044c, \u0442\u043e... \/\/\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a MySQL, \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 mysql_connect(&quot;localhost&quot;, &quot;torrent&quot;, &quot;password&quot;) or die(&quot;Could not connect to MySQL&quot;);   \/\/\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0411\u0414, \u043f\u0440\u0438 \u043d\u0435\u0443\u0434\u0430\u0447\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 mysql_select_db(&quot;torrent&quot;) or die(&quot;Could not select database&quot;);   \/\/\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432\u0441\u0435 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u0411\u0414 \u0432 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443 utf8 mysql_query(&quot;SET NAMES utf8&quot;);   \/\/\u041f\u0438\u0448\u0435\u043c SQL \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0442\u043e\u0440\u0440\u0435\u043d\u0442\u0430 \u043f\u043e id $sql=&quot;SELECT * FROM `torrents` WHERE `id`='&quot;.mysql_real_escape_string($id).&quot;'&quot;;   \/\/\u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c SQL \u0437\u0430\u043f\u0440\u043e\u0441 $r=mysql_query($sql);   \/\/\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u0442\u0430\u043a\u043e\u0433\u043e id \u0432 \u0431\u0430\u0437\u0435, \u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 if (mysql_num_rows($r)==0) {header(&quot;Location: \/&quot;); exit();}   \/\/\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0440\u044f\u0434 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 $torrent=mysql_fetch_array($r);   \/\/\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0434\u0430\u0442\u0443 \u0432 \u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 $torrent_date=explode('-', $torrent[date]); $torrent_date=$torrent_date[2].'.'.$torrent_date[1].'.'.$torrent_date[0];    \/\/\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0431\u0430\u0439\u0442\u043e\u0432 \u0432 \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442\u044b, \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u044b \u0438 \u0442\u0434. \u041f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u043c \u043d\u0438\u0436\u0435. \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0435\u0451 \u043f\u0440\u0438\u0446\u0438\u043f \u043d\u0435 \u0438\u043c\u0435\u0435\u043c \u0441\u043c\u044b\u0441\u043b\u0430 - \u0447\u0438\u0441\u0442\u0430\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u043a\u0430.  function bytesToSize($bytes, $precision = 0) {            $kilobyte = 1024;         $megabyte = $kilobyte * 1024;         $gigabyte = $megabyte * 1024;         $terabyte = $gigabyte * 1024;                   if (($bytes &gt;= 0) && ($bytes &lt; $kilobyte)) {return $bytes . ' B';}          elseif (($bytes &gt;= $kilobyte) && ($bytes &lt; $megabyte)) {return round($bytes \/ $kilobyte, $precision) . ' Kb';}         elseif (($bytes &gt;= $megabyte) && ($bytes &lt; $gigabyte)) {return round($bytes \/ $megabyte, $precision) . ' Mb';}         elseif (($bytes &gt;= $gigabyte) && ($bytes &lt; $terabyte)) {return round($bytes \/ $gigabyte, $precision) . ' Gb';}         elseif ($bytes &gt;= $terabyte) {return round($bytes \/ $terabyte, $precision) . ' Tb';}          else {return $bytes . ' B';}     }       ?&gt; &lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; \t&lt;head&gt; \t\t&lt;meta charset=&quot;utf-8&quot;&gt; \t\t&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt; \t\t&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt; \t\t&lt;link rel=&quot;icon&quot; href=&quot;\/favicon.ico&quot;&gt; \t\t&lt;title&gt;&lt;?=htmlspecialchars($torrent[name])?&gt;&lt;\/title&gt; \t\t&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/maxcdn.bootstrapcdn.com\/bootstrap\/3.3.6\/css\/bootstrap.min.css&quot; integrity=&quot;sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7&quot; crossorigin=&quot;anonymous&quot;&gt; \t\t&lt;style type=&quot;text\/css&quot;&gt; \t\t\tbody \t\t\t{ \t\t\tpadding-top: 80px; \t\t\tpadding-bottom: 20px; \t\t\t} \t\t&lt;\/style&gt; \t&lt;\/head&gt; \t&lt;body&gt; \t\t&lt;nav class=&quot;navbar navbar-default navbar-fixed-top&quot;&gt; \t\t\t&lt;div class=&quot;container&quot;&gt; \t\t\t\t&lt;div class=&quot;navbar-header&quot;&gt; \t\t\t\t\t&lt;button type=&quot;button&quot; class=&quot;navbar-toggle collapsed&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#navbar&quot; aria-expanded=&quot;false&quot; aria-controls=&quot;navbar&quot;&gt; \t\t\t\t\t&lt;span class=&quot;sr-only&quot;&gt;\u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f&lt;\/span&gt; \t\t\t\t\t&lt;span class=&quot;icon-bar&quot;&gt;&lt;\/span&gt; \t\t\t\t\t&lt;span class=&quot;icon-bar&quot;&gt;&lt;\/span&gt; \t\t\t\t\t&lt;span class=&quot;icon-bar&quot;&gt;&lt;\/span&gt; \t\t\t\t\t&lt;\/button&gt; \t\t\t\t\t&lt;a class=&quot;navbar-brand&quot; href=&quot;\/&quot;&gt;\u0417\u0435\u0440\u043a\u0430\u043b\u043e \u0440\u0430\u0437\u0434\u0430\u0447 RuTracker&lt;\/a&gt; \t\t\t\t&lt;\/div&gt; \t\t\t\t&lt;div id=&quot;navbar&quot; class=&quot;navbar-collapse collapse&quot;&gt; \t\t\t\t\t&lt;form action=&quot;\/search.php&quot; method=&quot;GET&quot; class=&quot;navbar-form navbar-left&quot;&gt; \t\t\t\t\t\t&lt;div class=&quot;form-group input-group&quot;&gt; \t\t\t\t\t\t\t&lt;input type=&quot;text&quot; placeholder=&quot;&quot; value=&quot;&quot; class=&quot;form-control&quot; name=&quot;q&quot;&gt;  \t\t\t\t\t\t\t&lt;span class=&quot;input-group-btn&quot;&gt; \t\t\t\t\t\t\t&lt;button class=&quot;btn btn-primary&quot; type=&quot;submit&quot;&gt;&lt;i class=&quot;glyphicon glyphicon-search&quot;&gt;&lt;\/i&gt;&lt;\/button&gt; \t\t\t\t\t\t\t&lt;\/span&gt;   \t\t\t\t\t\t&lt;\/div&gt; \t\t\t\t\t&lt;\/form&gt; \t\t\t\t&lt;\/div&gt; \t\t\t\t&lt;!--\/.navbar-collapse --&gt; \t\t\t&lt;\/div&gt; \t\t&lt;\/nav&gt; \t\t&lt;div class=&quot;container&quot;&gt; \t\t\t&lt;h1&gt;&lt;?=htmlspecialchars($torrent[name])?&gt;&lt;\/h1&gt; \t\t\t&lt;table class=&quot;table table-striped&quot;&gt; \t\t\t\t&lt;tbody&gt; \t\t\t\t\t&lt;tr&gt; \t\t\t\t\t\t&lt;th width=&quot;20%&quot;&gt;\u0421\u043a\u0430\u0447\u0430\u0442\u044c:&lt;\/th&gt; \t\t\t\t\t\t&lt;td&gt;&lt;a href=&quot;magnet:?xt=urn:btih:&lt;?=$torrent[hash]?&gt;&quot;&gt;&lt;i class=&quot;glyphicon glyphicon-magnet&quot;&gt;&lt;\/i&gt; Magnet&lt;\/a&gt;&lt;\/td&gt; \t\t\t\t\t&lt;\/tr&gt;\t\t\t\t \t\t\t\t\t&lt;tr&gt; \t\t\t\t\t\t&lt;th width=&quot;20%&quot;&gt;\u0420\u0430\u0437\u043c\u0435\u0440:&lt;\/th&gt; \t\t\t\t\t\t&lt;td&gt;&lt;?=bytesToSize($torrent[size])?&gt;&lt;\/td&gt; \t\t\t\t\t&lt;\/tr&gt; \t\t\t\t\t&lt;tr&gt; \t\t\t\t\t\t&lt;th width=&quot;20%&quot;&gt;\u0414\u0430\u0442\u0430 \u0440\u0430\u0437\u0434\u0430\u0447\u0438:&lt;\/th&gt; \t\t\t\t\t\t&lt;td&gt;&lt;?=$torrent_date?&gt;&lt;\/td&gt; \t\t\t\t\t&lt;\/tr&gt; \t\t\t\t\t&lt;tr&gt; \t\t\t\t\t\t&lt;th width=&quot;20%&quot;&gt;\u0420\u0430\u0437\u0434\u0435\u043b:&lt;\/th&gt; \t\t\t\t\t\t&lt;td&gt;&lt;a target=_blank href=&quot;http:\/\/rutracker.org\/forum\/viewforum.php?f=&lt;?=$torrent[cat_id]?&gt;&quot;&gt;&lt;?=htmlspecialchars($torrent[cat_name])?&gt;&lt;\/a&gt;&lt;\/td&gt; \t\t\t\t\t&lt;\/tr&gt; \t\t\t\t\t&lt;tr&gt; \t\t\t\t\t\t&lt;th width=&quot;20%&quot;&gt;\u041e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435:&lt;\/th&gt; \t\t\t\t\t\t&lt;td&gt;&lt;a target=_blank href=&quot;http:\/\/rutracker.org\/forum\/viewtopic.php?t=&lt;?=$torrent[topic_id]?&gt;&quot;&gt;\u0422\u043e\u043f\u0438\u043a #&lt;?=$torrent[topic_id]?&gt;&lt;\/a&gt;&lt;\/td&gt; \t\t\t\t\t&lt;\/tr&gt;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t&lt;\/tbody&gt; \t\t\t&lt;\/table&gt; \t\t&lt;\/div&gt; \t\t&lt;!-- \/.container --&gt; \t\t&lt;script src=&quot;https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/1.11.3\/jquery.min.js&quot;&gt;&lt;\/script&gt; \t\t&lt;script src=&quot;http:\/\/getbootstrap.com\/dist\/js\/bootstrap.min.js&quot;&gt;&lt;\/script&gt; \t&lt;\/body&gt; &lt;\/html&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0451. \u041c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0430\u0439\u0442 \u0441 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 RuTracker, \u0441 \u0431\u044b\u0441\u0442\u0440\u044b\u043c \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u0438 \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c. \u042f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0441\u0442\u0430\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443, \u043f\u0430\u0433\u0438\u043d\u0430\u0446\u0438\u044e \u0438 \u0442.\u0434, \u0447\u0442\u043e \u0431\u044b \u0431\u044b\u043b \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0447\u0438\u0441\u0442\u044b\u0439 \u043a\u043e\u0434 \u0441 \u0441\u0430\u043c\u044b\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u043c. \u0415\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441, \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e\u0431 \u044d\u0442\u043e\u043c \u0432\u0441\u0435\u043c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0438\u043b\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435.<\/p>\n<p>  \u0412\u0441\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435. \u041f\u0438\u0448\u0438\u0442\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u0432\u0441\u0435\u043c \u043e\u0442\u0432\u0435\u0447\u0443.       <\/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\/273777\/\"> http:\/\/habrahabr.ru\/post\/273777\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u042f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u0435\u0437 \u00ab\u0432\u043e\u0434\u044b\u00bb. \u041c\u0438\u043d\u0438\u043c\u0443\u043c \u043b\u0438\u0448\u043d\u0435\u0439 \u043e\u0442\u0432\u043b\u0435\u043a\u0430\u044e\u0449\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0440\u0430\u0437\u0433\u043b\u0430\u0433\u043e\u043b\u044c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u0438\u0439. \u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043a\u043e\u0434\u0430. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441 \u0437\u0430\u0447\u0435\u043c \u043a\u043e\u043c\u0443-\u0442\u043e \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0442\u043e\u0440\u0440\u0435\u043d\u0442-\u043f\u043e\u0438\u0441\u043a\u043e\u0432\u0438\u043a \u043d\u0430 \u0431\u0430\u0437\u0435 RuTracker. \u0418 \u044f \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044e \u0441\u0435\u0431\u044f \u0433\u0443\u0440\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0441\u0430\u0439\u0442 \u0432\u043c\u0435\u0441\u0442\u0435. \u0411\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Apache+PHP, MySQL \u0438 Sphinx. \u0421\u0440\u0430\u0437\u0443 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0443, \u0447\u0442\u043e \u043d\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0435 \u0441\u0430\u0439\u0442 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/i.imgur.com\/u0FqvQe.png\" alt=\"image\"\/>  <\/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-270938","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/270938","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=270938"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/270938\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270938"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270938"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270938"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}