{"id":1444,"date":"2012-09-17T02:35:37","date_gmt":"2012-09-16T22:35:37","guid":{"rendered":"http:\/\/yousite.ru\/?p=1444"},"modified":"2012-09-17T02:35:37","modified_gmt":"2012-09-16T22:35:37","slug":"%d0%b4%d0%be%d0%b1%d0%b0%d0%b2%d0%bb%d1%8f%d0%b5%d0%bc-%d0%b2-sape-%d1%81%d0%b0%d0%b9%d1%82-%d0%bd%d0%b0-livestreet-0-5-1","status":"publish","type":"post","link":"https:\/\/yousite.ru\/?p=1444","title":{"rendered":"\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 sape \u0441\u0430\u0439\u0442 \u043d\u0430 Livestreet 0.5.1"},"content":{"rendered":"<p>\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u0441\u0430\u0439\u0442\u0430 \u043d\u0430 \u0441\u0432\u0435\u0436\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Livestreet \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0441\u0430\u043f\u044b \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0441\u0430\u0439\u0442.<!--more--> \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u0432\u0438\u0436\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u0438\u043b\u0441\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u0438\u0437\u0430\u0442\u043e\u0440 Smarty \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0432\u0438\u0434\u0430 {php} \u0438\u0431\u043e \u043b\u043e\u0433\u0438\u043a\u0443 \u043e\u0442 \u0432\u044b\u0432\u043e\u0434\u0430 \u0432\u0441\u0435 \u0436\u0435 \u043d\u0430\u0434\u043e \u043e\u0442\u0434\u0435\u043b\u044f\u0442\u044c.\u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u0430\u0439\u0442\u043e\u0432 \u043d\u0430 Livestreet \u0441\u0430\u043f\u0430 \u0431\u044b\u043b\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0432 tpl-\u0444\u0430\u0439\u043b\u0435 (\u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 sidebar.tpl):<\/p>\n<pre class=\"brush: php; gutter: true\">{php}\r\n if (!defined(&#039;_SAPE_USER&#039;)){\r\n define(&#039;_SAPE_USER&#039;, &#039;\u043a\u043e\u0434&#039;);\r\n }\r\n $o[&#039;charset&#039;] = &#039;UTF-8&#039;;\r\n require_once($_SERVER[&#039;DOCUMENT_ROOT&#039;].&#039;\/&#039;._SAPE_USER.&#039;\/sape.php&#039;);\r\n $sape = new SAPE_client($o);\r\n unset($o);\r\n echo $sape-&gt;return_links(n);\r\n {\/php}<\/pre>\n<p><strong>\u0422\u0430\u043a\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/strong><\/p>\n<p>\u041e\u0442\u0432\u0435\u0442 \u043a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u0431\u044b\u043b \u043d\u0430\u0439\u0434\u0435\u043d \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 sape.ru, \u0434\u0443\u043c\u0430\u044e \u0447\u0442\u043e \u043c\u0430\u0434\u0435\u043c\u0443\u0430\u0437\u0435\u043b\u044c Inga \u043d\u0435 \u043e\u0433\u043e\u0440\u0447\u0438\u0442\u0441\u044f \u0435\u0441\u043b\u0438 \u044f \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u0443\u044e \u0437\u0434\u0435\u0441\u044c \u0435\u0451 \u0440\u0435\u0448\u0435\u043d\u0438\u0435:<\/p>\n<p>1) \u0418\u0434\u0451\u043c \u0432 engine\/lib\/external\/Smarty\/libs\/plugins\/<br \/>\n2) \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0442\u0430\u043c \u0444\u0430\u0439\u043b function.sape.php \u0441 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u043a\u043e\u0434\u043e\u043c:<\/p>\n<pre class=\"brush: php; gutter: true\">&lt;?php\r\n function smarty_function_sape($params,&amp;$smarty)\r\n {\r\n define(&#039;_SAPE_USER&#039;, &#039;\u0432\u0430\u0448_\u0434\u043b\u0438\u043d\u043d\u044b\u0439_\u043a\u043e\u0434&#039;);\r\n require_once($_SERVER[&#039;DOCUMENT_ROOT&#039;].&#039;\/&#039;._SAPE_USER.&#039;\/sape.php&#039;);\r\n $o[&#039;charset&#039;] = &#039;UTF-8&#039;;\r\n $sape = new SAPE_client($o);\r\n unset($o);\r\n return $sape-&gt;return_links();\r\n }\r\n ?&gt;<\/pre>\n<p>3) \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u043a\u043e\u0434\u0430 \u0441\u0430\u043f\u044b \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e {sape} \u0432 \u043b\u044e\u0431\u043e\u043c \u0448\u0430\u0431\u043b\u043e\u043d\u0435.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 PHP \u0432\u0435\u0440\u0441\u0438\u0438 5.3 \u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0447\u0442\u043e \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0451\u0442\u0435\u0441\u044c \u0441 \u0442\u0430\u043a\u043e\u0439 \u043e\u0448\u0438\u0431\u043a\u043e\u0439:<\/p>\n<pre class=\"brush: bash; gutter: true\">Deprecated: Function set_magic_quotes_runtime() is deprecated ...<\/pre>\n<p>\u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0443\u0431\u0435\u0440\u0443\u0442 \u0438\u0437 php.<\/p>\n<p>\u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b sape.php \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0435 \u0441 \u0432\u0430\u0448\u0438\u043c sape-\u043a\u043e\u0434\u043e\u043c \u0432 \u043a\u043e\u0440\u043d\u0435 \u0441\u0430\u0439\u0442\u0430 \u0438 \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u043e\u0442 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443:<\/p>\n<pre class=\"brush: php; gutter: true\">set_magic_quotes_runtime(0);<\/pre>\n<p>\u043d\u0430<\/p>\n<pre class=\"brush: php; gutter: true\">ini_set(\u00abmagic_quotes_runtime\u00bb, 0);<\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u043d\u0430\u0434\u043e! =)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u0441\u0430\u0439\u0442\u0430 \u043d\u0430 \u0441\u0432\u0435\u0436\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Livestreet \u044f \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430 \u0441\u0430\u043f\u044b \u043d\u0430 \u043d\u043e\u0432\u044b\u0439 \u0441\u0430\u0439\u0442.<\/p>\n","protected":false},"author":1,"featured_media":1445,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[116],"tags":[117],"class_list":["post-1444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-livestreet","tag-livestreet-2"],"_links":{"self":[{"href":"https:\/\/yousite.ru\/index.php?rest_route=\/wp\/v2\/posts\/1444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yousite.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yousite.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yousite.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yousite.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1444"}],"version-history":[{"count":1,"href":"https:\/\/yousite.ru\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions"}],"predecessor-version":[{"id":1446,"href":"https:\/\/yousite.ru\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions\/1446"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yousite.ru\/index.php?rest_route=\/wp\/v2\/media\/1445"}],"wp:attachment":[{"href":"https:\/\/yousite.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yousite.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yousite.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}