{"id":301,"date":"2017-12-12T12:43:13","date_gmt":"2017-12-12T09:43:13","guid":{"rendered":"http:\/\/huskynet.ru\/0902-16\/?p=301"},"modified":"2020-09-09T12:13:11","modified_gmt":"2020-09-09T09:13:11","slug":"%d0%bf%d1%80%d0%be%d0%b2%d0%b5%d1%80%d0%ba%d0%b0-%d1%84%d0%b0%d0%b9%d0%bb%d0%be%d0%b2","status":"publish","type":"post","link":"https:\/\/huskynet.ru\/lms\/%d0%bf%d1%80%d0%be%d0%b2%d0%b5%d1%80%d0%ba%d0%b0-%d1%84%d0%b0%d0%b9%d0%bb%d0%be%d0%b2\/","title":{"rendered":"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432"},"content":{"rendered":"<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">&lt;?php\r\n$file = \"&lt;font color='#FFFFFF'&gt;=&lt;\/font&gt;\"; \r\n\/\/ \u043f\u0430\u043f\u043a\u0430 \"html\"\r\n$orig[2][1] = \"html\"; $info [2][1] = \"+\";\r\n$orig[2][2] = \"1.jpg\"; $info [2][2] = $file;\r\n$orig[2][3] = \"2.jpg\"; $info [2][3] = $file; \r\n$orig[2][4] = \"3.jpg\"; $info [2][4] = $file;\r\n$orig[2][5] = \"4.jpg\"; $info [2][5] = $file;\r\n$orig[2][6] = \"5.jpg\"; $info [2][6] = $file;\r\n$orig[2][7] = \"6.jpg\"; $info [2][7] = $file;\r\n$orig[2][8] = \"7.jpg\"; $info [2][8] = $file;\r\n$orig[2][9] = \"8.jpg\"; $info [2][9] = $file;\r\n$orig[2][10] = \"dop\"; $info [2][10] = $file.\"+\";\r\n$orig[2][11] = \"index_frame.html\"; $info [2][11] = $file;\r\n$orig[2][12] = \"index_frame1.html\"; $info [2][12] = $file;\r\n$orig[2][13] = \"index_frame2.html\"; $info [2][13] = $file;\r\n$orig[2][14] = \"index_frame3.html\"; $info [2][14] = $file;\r\n$orig[2][15] = \"page_1.html\"; $info [2][15] = $file;\r\n$orig[2][16] = \"page_2.html\"; $info [2][16] = $file;\r\n$orig[2][17] = \"page_3.html\"; $info [2][17] = $file;\r\n$orig[2][18] = \"page_4.html\"; $info [2][18] = $file;\r\n\/\/ \u043f\u0430\u043f\u043a\u0430 \"my_func\"\r\n$orig[4][1] = \"my_func\"; $info [4][1] = \"+\";\r\n$orig[4][2] = \"filelist.php\"; $info [4][2] = $file;\r\n$orig[4][3] =\"filesize.php\"; $info [4][3] = $file;\r\n$orig[4][4] = \"func.php\"; $info [4][4] = $file;\r\n$orig[4][5] = \"index.php\"; $info [4][5] = $file;\r\n$orig[4][6] = \"ip.php\"; $info [4][6] = $file;\r\n$orig[4][7] = \"ipuser.php\"; $info [4][7] = $file;\r\n$orig[4][8] = \"komment.php\"; $info [4][8] = $file;\r\n$orig[4][9] = \"par.php\"; $info [4][9] = $file;\r\n$orig[4][10] = \"perem.php\"; $info [4][10] = $file;\r\n$orig[4][11] = \"perem1.php\"; $info [4][11] = $file;\r\n$orig[4][12] = \"perem2.php\"; $info [4][12] = $file;\r\n$orig[4][13] = \"perem3.php\"; $info [4][13] = $file;\r\n$orig[4][14] = \"phpinfo.php\"; $info [4][14] = $file;\r\n$orig[4][15] = \"rand.php\"; $info [4][15] = $file;\r\n$orig[4][16] = \"scripttime.php\"; $info [4][16] = $file;\r\n$orig[4][17] = \"servertime.php\"; $info [4][17] = $file;\r\n\/\/ \u043f\u0430\u043f\u043a\u0430 \"php\"\r\n$orig[5][1] = \"php\"; $info [5][1] = \"+\"; \r\n$orig[5][2] = \"case.php\"; $info [5][2] = $file; \r\n$orig[5][3] = \"ifelse_1.php\"; $info [5][3] = $file; \r\n$orig[5][4] = \"ifelse_2.php\"; $info [5][4] = $file; \r\n$orig[5][5] = \"ifelse_3.php\"; $info [5][5] = $file; \r\n$orig[5][6] = \"kpp.php\"; $info [5][6] = $file; \r\n$orig[5][7] = \"reg.php\"; $info [5][7] = $file; \r\n$orig[5][8] = \"script_calc_1.php\"; $info [5][8] = $file; \r\n$orig[5][9] = \"script_calc_2.php\"; $info [5][9] = $file; \r\n$orig[5][10] = \"script_calc_3.php\"; $info [5][10] = $file; \r\n$orig[5][11] = \"switch.php\"; $info [5][11] = $file; \r\n$orig[5][12] = \"test.cals.php\"; $info [5][12] = $file;\r\n$orig[5][13] = \"zadacha_1.php\"; $info [5][13] = $file;\r\n$orig[5][14] = \"zadacha_2.php\"; $info [5][14] = $file;\r\n$orig[5][15] = \"zadacha_3.php\"; $info [5][15] = $file;\r\n$orig[5][16] = \"zapros.php\"; $info [5][16] = $file;\r\n\r\n$maindir = scandir('.');\r\nforeach ($maindir as $k =&gt; $v) \r\n{\t\r\nif ($v == \".\" or $v == \"..\" or $v == \"index.php\") \r\n{echo \"\";} \r\nelseif (is_dir ($v)) \r\n {\t   \r\n   $subdir = scandir($v);\r\n   echo \"+ \".$v.\"&lt;br \/&gt;\";\r\n   $real[$k][1] = $v; \r\n   foreach ($subdir as $subk =&gt; $subv)  \r\n     {\r\n\tif ($subv == \".\" or $subv == \"..\") {echo \"\";}\r\n\telse {\r\n\techo \"&lt;font color='#FFFFFF'&gt;==&lt;\/font&gt;&lt;font color='#BBB'&gt;\".$subv.\"&lt;\/font&gt;&lt;br \/&gt;\";\r\n\t$real[$k][$subk] = $subv;\r\n\t    }\r\n      }\r\n   }\r\nelse { \r\n        echo $v.\"&lt;br \/&gt;\"; \r\n        $real[$k][1] = $v; \r\n\t  }\r\n}\r\necho \"&lt;p&gt;\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432&lt;\/p&gt;\";\r\nforeach($orig as $kk =&gt; $vv){\r\n   if (is_array($vv)){\r\n      \r\n      foreach($vv as $kkk =&gt; $vvv) \r\n\t{\r\n\t  if ($real[$kk][$kkk] == $orig [$kk][$kkk]) \r\n\t     {\r\n\t       echo \"&lt;font color='green'&gt;[\u041e\u041a]&lt;\/font&gt; \".$info[$kk][$kkk].\" \".$orig[$kk][$kkk].\"&lt;br \/&gt;\";\r\n\t     }\r\n\telse   {echo \"&lt;font color='red'&gt;[\u043d\u0435\u0442]&lt;\/font&gt; \".$info[$kk][$kkk].\" \".$orig[$kk][$kkk].\"&lt;br \/&gt;\";}\r\n\t       }\r\n\t\t \t  \r\n    }\r\n  }\r\n  \r\necho \"&lt;pre&gt;\";\r\nprint_r ($real);\r\necho \"&lt;pre&gt;\";\r\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<div class=\"rcl-rating-box rating-type-post box-like\"><div class=\"rating-wrapper\"><span class=\"vote-heart\"><i class=\"rcli fa-heartbeat\" aria-hidden=\"true\"><\/i><\/span><span class=\"rating-value\"><span class=\"rating-null\">0<\/span><\/span><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>&lt;?php $file = &#171;&lt;font color=&#8217;#FFFFFF&#8217;&gt;=&lt;\/font&gt;&#187;; \/\/ \u043f\u0430\u043f\u043a\u0430 &#171;html&#187; $orig[2][1] = &#171;html&#187;; $info [2][1] = &#171;+&#187;; $orig[2][2] = &#171;1.jpg&#187;; $info [2][2] = $file; $orig[2][3] = &#171;2.jpg&#187;; $info [2][3] = $file; $orig[2][4] = &#171;3.jpg&#187;; $info [2][4] = $file; $orig[2][5] = &#171;4.jpg&#187;; $info [2][5] = $file; $orig[2][6] = &#171;5.jpg&#187;; $info [2][6] = $file; $orig[2][7] = &#171;6.jpg&#187;; $info [2][7] = $file; $orig[2][8] = &#171;7.jpg&#187;; $info [2][8] = $file; $orig[2][9] = &#171;8.jpg&#187;; $info [2][9] = $file; $orig[2][10] = &#171;dop&#187;; $info [2][10] = $file.&#187;+&#187;; $orig[2][11] = &#171;index_frame.html&#187;; $info [2][11] = $file; $orig[2][12] = &#171;index_frame1.html&#187;; $info [2][12] = $file; $orig[2][13] = &#171;index_frame2.html&#187;; $info [2][13] = $file; $orig[2][14] = &#171;index_frame3.html&#187;; $info [2][14] = $file; $orig[2][15] = &#171;page_1.html&#187;; $info [2][15] = $file; $orig[2][16] = &#171;page_2.html&#187;; $info [2][16] = $file; $orig[2][17] = &#171;page_3.html&#187;; $info [2][17] = $file; $orig[2][18] = &#171;page_4.html&#187;; $info [2][18] = $file; \/\/ \u043f\u0430\u043f\u043a\u0430 &#171;my_func&#187; $orig[4][1] = &#171;my_func&#187;; $info [4][1] = &#171;+&#187;; $orig[4][2] = &#171;filelist.php&#187;; $info [4][2] =&#8230;<\/p>\n<div class=\"rcl-rating-box rating-type-post box-like\"><div class=\"rating-wrapper\"><span class=\"vote-heart\"><i class=\"rcli fa-heartbeat\" aria-hidden=\"true\"><\/i><\/span><span class=\"rating-value\"><span class=\"rating-null\">0<\/span><\/span><\/div><\/div>","protected":false},"author":1,"featured_media":22,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[1],"tags":[23],"class_list":["post-301","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-","tag-0902-17"],"featured_image_urls_v2":{"full":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222.jpg",1024,832,false],"thumbnail":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222-250x150.jpg",250,150,true],"medium":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222-300x244.jpg",300,244,true],"medium_large":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222-768x624.jpg",768,624,true],"large":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222-1024x832.jpg",1024,832,true],"1536x1536":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222.jpg",1024,832,false],"2048x2048":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222.jpg",1024,832,false],"post-thumbnail":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222.jpg",369,300,false],"course-thumbnail":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222.jpg",492,400,false],"lesson-thumbnail":["https:\/\/huskynet.ru\/lms\/wp-content\/uploads\/2017\/10\/i2222.jpg",492,400,false]},"post_excerpt_stackable_v2":"<p>&lt;?php $file = &#171;&lt;font color=&#8217;#FFFFFF&#8217;&gt;=&lt;\/font&gt;&#187;; \/\/ \u043f\u0430\u043f\u043a\u0430 &#171;html&#187; $orig[2][1] = &#171;html&#187;; $info [2][1] = &#171;+&#187;; $orig[2][2] = &#171;1.jpg&#187;; $info [2][2] = $file; $orig[2][3] = &#171;2.jpg&#187;; $info [2][3] = $file; $orig[2][4] = &#171;3.jpg&#187;; $info [2][4] = $file; $orig[2][5] = &#171;4.jpg&#187;; $info [2][5] = $file; $orig[2][6] = &#171;5.jpg&#187;; $info [2][6] = $file; $orig[2][7] = &#171;6.jpg&#187;; $info [2][7] = $file; $orig[2][8] = &#171;7.jpg&#187;; $info [2][8] = $file; $orig[2][9] = &#171;8.jpg&#187;; $info [2][9] = $file; $orig[2][10] = &#171;dop&#187;; $info [2][10] = $file.&#187;+&#187;; $orig[2][11] = &#171;index_frame.html&#187;; $info [2][11] = $file; $orig[2][12] = &#171;index_frame1.html&#187;; $info [2][12] = $file; $orig[2][13] = &#171;index_frame2.html&#187;; $info [2][13] = $file; $orig[2][14]&hellip;<\/p>\n<div class=\"rcl-rating-box rating-type-post box-like\"><div class=\"rating-wrapper\"><span class=\"vote-heart\"><i class=\"rcli fa-heartbeat\" aria-hidden=\"true\"><\/i><\/span><span class=\"rating-value\"><span class=\"rating-null\">0<\/span><\/span><\/div><\/div>","category_list_v2":"<a href=\"https:\/\/huskynet.ru\/lms\/category\/web-%d1%80%d0%b0%d0%b7%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%ba%d0%b0\/\" rel=\"category tag\">WEB \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/a>","author_info_v2":{"name":"\u0413\u043e\u043b\u043e\u0432\u0430\u043d\u043e\u0432 \u041c\u0438\u0445\u0430\u0438\u043b","url":"https:\/\/huskynet.ru\/lms\/account\/?user=1"},"comments_num_v2":"0 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432","_links":{"self":[{"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/posts\/301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/comments?post=301"}],"version-history":[{"count":10,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/posts\/301\/revisions"}],"predecessor-version":[{"id":341,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/posts\/301\/revisions\/341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/media\/22"}],"wp:attachment":[{"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/media?parent=301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/categories?post=301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huskynet.ru\/lms\/wp-json\/wp\/v2\/tags?post=301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}