{"id":200472,"date":"2013-11-01T11:33:03","date_gmt":"2013-11-01T07:33:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=200472"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=200472","title":{"rendered":"<span class=\"post_title\">\u041f\u0438\u0448\u0435\u043c instagram-\u0440\u043e\u0431\u043e\u0442\u0430, \u0441\u0442\u0430\u0432\u0438\u043c \u043b\u0430\u0439\u043a\u0438 \u043f\u043e \u0442\u0435\u0433\u0430\u043c<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0418\u043d\u043e\u0433\u0434\u0430, \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0438\u043d\u043a\u0438 \u0440\u0430\u0434\u0438, \u0441\u0442\u0430\u0432\u043b\u044e \u0441\u0435\u0431\u0435 \u0437\u0430\u0434\u0430\u0447\u0438. \u041f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0434\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u043d\u0438 \u0437\u0430\u0431\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438 \u0431\u043e\u043b\u0435\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f. \u0422\u0430\u043a \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0438 \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437. \u041d\u0430\u0447\u0438\u0442\u0430\u043b\u0441\u044f \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430\u0445 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0432 Instagram, \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0438\u0441\u043a \u0444\u043e\u0442\u043e \u043f\u043e \u0442\u0435\u0433\u0430\u043c \u0438 \u00ab\u043b\u0430\u0439\u043a\u0430\u043d\u044c\u0435\u00bb \u043e\u043d\u044b\u0445. \u0415\u0441\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0435\u0433\u0438 (\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0442\u0435, \u0447\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430), \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0432\u0435\u0442\u043d\u044b\u0435 \u043b\u0430\u0439\u043a\u0438, \u043d\u043e \u0438 \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432 (\u0447\u0442\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u043b\u043e\u0441\u044c).<\/p>\n<h4>\u0417\u0430\u0434\u0430\u0447\u0430<\/h4>\n<p>  \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u043e\u0431\u043e\u0442\u0430 (MySQl+php+js), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u043b \u0431\u044b \u0444\u043e\u0442\u043e \u043f\u043e \u0442\u0435\u0433\u0430\u043c \u0438 \u0441\u0442\u0430\u0432\u0438\u043b \u0438\u043c \u043b\u0430\u0439\u043a\u0438. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448 \u0440\u043e\u0431\u043e\u0442 \u043d\u0435 \u043f\u043e\u043f\u0430\u043b \u0432 \u0431\u0430\u043d.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f<\/h4>\n<p>  \u0412 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0440\u043e\u0431\u043e\u0442\u0430 \u0438\u043c\u0435\u0435\u0442 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u0443 \u043a\u043d\u043e\u043f\u043a\u0443-\u0441\u0441\u044b\u043b\u043a\u0443.  <\/p>\n<pre><code class=\"html\">&lt;a href=&quot;https:\/\/api.instagram.com\/oauth\/authorize\/?client_id=\u0432\u0430\u0448_id&redirect_uri=\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430_\u043a\u0443\u0434\u0430_\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f_\u043f\u043e\u0441\u043b\u0435_\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438&response_type=code&scope=basic+comments+relationships+likes&quot;&gt;&lt;img src=&quot;img\/logo.png&quot;&gt;&lt;\/a&gt; <\/code><\/pre>\n<p>  \u0438 \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043d\u0435 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u043d \u043b\u0438 \u043d\u0430\u0441 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044c \u0440\u0430\u043d\u0435\u0435 (\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u0443\u043a\u0443), \u0438 \u0435\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442.  <\/p>\n<pre><code class=\"php\">if ($_COOKIE['sess_id']!=&quot;&quot;) header('location: \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442'); <\/code><\/pre>\n<p>  \u041d\u0438\u0436\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0441\u044e\u0434\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043f\u043e\u043f\u0430\u0434\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0434\u0430\u0441\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u043c \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0439 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0444\u0430\u0439\u043b config.php \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0411\u0414<\/p>\n<pre><code class=\"php\">\/\/\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0441 \u0411\u0414 include 'config.php'; \/\/\u0415\u0441\u043b\u0438 \u044e\u0437\u0435\u0440 \u043d\u0435 \u0434\u0430\u043b \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 if ($_GET['error']=='access_denied') header('location: \u0441\u0441\u044b\u043b\u043a\u0430_\u043d\u0430_\u0433\u043b\u0430\u0432\u043d\u0443\u044e_\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443'); else { \tif ($_GET['code']!=&quot;&quot;) { \t\t\/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u043e\u043a\u0435\u043d \t\t$ClientID = '\u0418\u0414_\u041d\u0410\u0428\u0415\u0413\u041e_\u041f\u0420\u0418\u041b\u041e\u0416\u0415\u041d\u0418\u042f';\t\t \t\t$ClientSecret = '\u041a\u043b\u0438\u0435\u043d\u0442\u0421\u0438\u043a\u0440\u0435\u0442_\u041d\u0410\u0428\u0415\u0413\u041e_\u041f\u0420\u0418\u041b\u041e\u0416\u0415\u041d\u0418\u042f'; \t\t$uri = '\u0441\u0441\u044b\u043b\u043a\u0430_\u043d\u0430_\u044d\u0442\u043e\u0442_\u0441\u043a\u0440\u0438\u043f\u0442'; \t\t$url = &quot;https:\/\/api.instagram.com\/oauth\/access_token&quot;; \t\t$access_token_parameters = array(         'client_id'                =&gt;     $ClientID,         'client_secret'                =&gt;    $ClientSecret,         'grant_type'                =&gt;     'authorization_code',         'redirect_uri'                =&gt;     $uri,         'code'                        =&gt;     $_GET['code'] \t\t); \t\t$curl = curl_init($url); \t\tcurl_setopt($curl,CURLOPT_POST,true); \t\tcurl_setopt($curl,CURLOPT_POSTFIELDS,$access_token_parameters); \t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); \t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); \t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); \t\t$data = curl_exec($curl); \t\tcurl_close($curl); \t\t \t\t$data = json_decode($data, true); \t\t$token = $data['access_token']; \t\t$full_name = $data['user']['full_name']; \t\t$username = $data['user']['username']; \t\t$profile_picture = $data['user']['profile_picture']; \t\t$id = $data['user']['id']; \t\t \t\tif ($id!=&quot;&quot;) {\t\t\t \t\t\t\/\/\u043c\u043e\u0436\u0435\u0442 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c? \t\t\t$nashelsy = 0; \t\t\t$sql = mysql_query(&quot;SELECT*FROM qf_users Where qf_id='&quot;.$id.&quot;' LIMIT 1&quot;); while($record = mysql_fetch_array($sql)) $nashelsy = 1; \t\t\t\/\/\u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c id \u0441\u0435\u0441\u0441\u0438\u0438 \t\t\t$sess_id = md5(md5($id).$_SERVER['REMOTE_ADDR']); \t\t\tif ($nashelsy==0) { \t\t\t\t\/\/\u043d\u0435\u0442 \u0442\u0430\u043a\u043e\u0433\u043e, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \t\t\t\t$sql = mysql_query(&quot;INSERT INTO `qf_users` (`qf_id`, `qf_token`, `qf_username`, `qf_full_name`, `qf_profile_picture`, `qf_sess_id`, `qf_ip`) VALUES ('&quot;.$id.&quot;', '&quot;.$token.&quot;', '&quot;.$username.&quot;', '&quot;.$full_name.&quot;', '&quot;.$profile_picture.&quot;', '&quot;.$sess_id.&quot;', '&quot;.$_SERVER['REMOTE_ADDR'].&quot;');&quot;);\t\t \t\t\t} else { \t\t\t\t\/\/\u0435\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439, \u043e\u0431\u043d\u043e\u0432\u0438\u043c \t\t\t\t$sql1 = mysql_query(&quot;UPDATE  `qf_users` SET  \t\t\t\t`qf_token` =  '&quot;.$token.&quot;', \t\t\t\t`qf_username` =  '&quot;.$username.&quot;', \t\t\t\t`qf_full_name` =  '&quot;.$full_name.&quot;', \t\t\t\t`qf_profile_picture` =  '&quot;.$profile_picture.&quot;', \t\t\t\t`qf_ip` =  '&quot;.$_SERVER['REMOTE_ADDR'].&quot;', \t\t\t\t`qf_sess_id` =  '&quot;.$sess_id.&quot;' WHERE  `qf_users`.`qf_id` =  '&quot;.$id.&quot;' LIMIT 1 ;&quot;); \t\t\t} \t\t\t\/\/\u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u0432\u0438\u043c \u043a\u0443\u043a\u0443 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e, \u0442\u0430\u043c \u0435\u0433\u043e \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442 \u043d\u0430\u0448 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442 \u0432 \u043b\u0438\u0447\u043d\u044b\u0439 \u043a\u0430\u0431\u0438\u043d\u0435\u0442 \t\t\tsetcookie('sess_id',$sess_id,time()+86400,'\/','\u0438\u043c\u044f_\u0434\u043e\u043c\u0435\u043d\u0430'); \t\t\theader('location: \u0441\u0441\u044b\u043b\u043a\u0430_\u043d\u0430_\u0433\u043b\u0430\u0432\u043d\u0443\u044e'); \t\t} \t} } <\/code><\/pre>\n<h4>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u043a\u0430\u0431\u0438\u043d\u0435\u0442\u0443<\/h4>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0441\u0442\u044c \u043b\u0438, \u0443 \u043d\u0430\u0441 \u0442\u0430\u043a\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438 \u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e.  <\/p>\n<pre><code class=\"php\">include 'config.php'; $sql = mysql_query(&quot;SELECT*FROM qf_users WHERE qf_sess_id='&quot;.$_COOKIE['sess_id'].&quot;'&quot;); while($record = mysql_fetch_array($sql))    { \t   $user_id = $record['qf_id']; \t   $user_token = $record['qf_token']; \t   $user_email = $record['qf_email']; \t   $user_username = $record['qf_username']; \t   $user_full_name = $record['qf_full_name']; \t   $user_profile_picture = $record['qf_profile_picture']; \t   $user_ip = $record['qf_ip'];\t       }     if (md5(md5($user_id).$_SERVER['REMOTE_ADDR'])!=$_COOKIE['sess_id']) { setcookie('sess_id',$_COOKIE['sess_id'],time()-3600,'\/','\u0434\u043e\u043c\u0435\u043d'); header('location: \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e'); } <\/code><\/pre>\n<p>  \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u0430\u044f \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f, \u043d\u043e \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c \u043a\u0440\u043e\u043c\u0435 \u043c\u0435\u043d\u044f \u043d\u0438\u043a\u0442\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e. <\/p>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u0439 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0435\u0439: \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u0442\u0435\u0433\u0430, \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u043b-\u0432\u0430 \u043b\u0430\u0439\u043a\u043e\u0432 \u0443 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 (\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b-\u043e\u043c \u043b\u0430\u0439\u043a\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0431\u0443\u0434\u0443\u0442, \u0442.\u043a. \u044d\u0442\u043e \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430, \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0430 \u00ab\u041f\u043e\u0435\u0445\u0430\u043b\u0438\u00bb \u0438 \u043a\u043d\u043e\u043f\u043a\u0430 \u00ab\u0412\u044b\u0445\u043e\u0434\u00bb). \u0422\u0430\u043a \u0436\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u043b\u0435, \u0433\u0434\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c id \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438.  <\/p>\n<pre><code class=\"html\">&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;   &lt;tr&gt;     &lt;td align=&quot;left&quot; valign=&quot;bottom&quot;&gt; \u0418\u0441\u043a\u0430\u0442\u044c \u0444\u043e\u0442\u043e \u0441 \u0442\u0435\u0433\u043e\u043c      &lt;input name=&quot;tag&quot; id=&quot;tag&quot; type=&quot;text&quot; placeholder='\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0442\u0435\u0433'&gt;  \u0433\u0434\u0435 \u043b\u0430\u0439\u043a\u043e\u0432 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435     &lt;input name=&quot;kollikes&quot; id=&quot;kollikes&quot; type=&quot;number&quot; value=&quot;40&quot;&gt;&nbsp;     &lt;span style=&quot;display:inline-block; border:1px solid black; padding:5px; cursor:pointer&quot; onClick=&quot;gogogo()&quot; id=&quot;bb&quot;&gt;\u041f\u043e\u0435\u0445\u0430\u043b\u0438!&lt;\/span&gt;     &lt;hr&gt;     &lt;input name=&quot;last_id&quot; id=&quot;last_id&quot; type=&quot;text&quot; placeholder='\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f'&gt;     &lt;\/td&gt;     &lt;td align=&quot;right&quot; valign=&quot;bottom&quot;&gt;       &lt;img src=&quot;&quot; height=&quot;30&quot;&gt;&nbsp;&lt;?=$user_full_name?&gt; \/ &lt;a href=&quot;logout.php&quot;&gt;\u0412\u044b\u0445\u043e\u0434&lt;\/a&gt;&lt;\/td&gt;   &lt;\/tr&gt; &lt;\/table&gt; <\/code><\/pre>\n<p>  \u0438 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u0435\u043c \u0434\u0438\u0432, \u0434\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0437\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u043c  <\/p>\n<pre><code class=\"html\">&lt;div id=&quot;res&quot; align=&quot;center&quot;&gt;&lt;\/div&gt; <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043b\u043e\u0433\u0438\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u0430, \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u0438\u043d\u0430\u0447\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u0440\u043e\u0431\u043e\u0442\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0437\u0430\u0431\u044f\u043d\u044f\u0442, \u0438 \u0432\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u043a\u043e\u0442\u0443 \u043f\u043e\u0434 \u0445\u0432\u043e\u0441\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434 (\u0432\u0441\u0435 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e):  <\/p>\n<pre><code class=\"javascript\">&lt;script&gt; var rep = 0;  setInterval(function() { \tif (rep==1) gogogo(); \t},3000);  function gogogo() { \trep = 0; \t$('#res').text('... \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0444\u043e\u0442\u043e ...'); \t$('#bb').text('...'); \t$.post('getphoto.php',{token:'&lt;?=$user_token?&gt;',tag:tag.value,kollikes:kollikes.value,last_id:last_id.value}, function (data) { \t\t\tarr = data.split('(@-a4h-@)'); \t\t\t$('#title').text(arr[0]); \t\t\t$('#mylink').attr('href',arr[1]); \t\t\t$('#myimg').attr('src',arr[2]); \t\t\tmyid.value = arr[3]; \t\t\tlast_id.value=arr[4];\t\t\t \t\t\t$('#bb').text('like'); \t\t\t$('#res').text('... \u0441\u0442\u0430\u0432\u0438\u043c \u043b\u0430\u0439\u043a ...'); \t\t\tsetTimeout(function() {\t\t\t\t \t\t\t\t$.post('like.php',{id:myid.value,token:'&lt;?=$user_token?&gt;'}, function (data) { \t\t\t\t\tarr = data.split('&lt;-=a4h=-&gt;'); \t\t\t\t\t$('#res').html(arr[0]+&quot;&lt;br&gt;&quot;+arr[1]); \t\t\t\t\tif (arr[0]==200) rep=1; \t\t\t\t\t});\t\t\t\t \t\t\t\t}, Math.floor(Math.random() * (6000 - 3000) + 3000));\t\t\t \t}); } &lt;\/script&gt; <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0442\u043e \u0436\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0449\u0443\u0442 \u0444\u043e\u0442\u043e \u0438 \u0441\u0442\u0430\u0432\u044f\u0442 \u043b\u0430\u0439\u043a\u0438.<\/p>\n<h4>\u041f\u043e\u0438\u0441\u043a \u0444\u043e\u0442\u043e \u043f\u043e \u0442\u0435\u0433\u0430\u043c<\/h4>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u0430 \u043d\u0430\u043c \u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043d\u0430.  <\/p>\n<pre><code class=\"php\">$user_token = $_POST['token']; $images = 0; $title = ''; $src = ''; $link = ''; $like = 0; $im_id = ''; $last_id = $_POST['last_id']; while ($images==0) { \tif ($last_id!=&quot;&quot;) $api = 'https:\/\/api.instagram.com\/v1\/tags\/'.$_POST['tag'].'\/media\/recent?max_tag_id='.$last_id.'&count=1&access_token='.$user_token; \telse $api = 'https:\/\/api.instagram.com\/v1\/tags\/'.$_POST['tag'].'\/media\/recent?count=1&access_token='.$user_token; \t$response = file_get_contents($api);\t\t\t \t$last_id = htmlspecialchars(json_decode($response)-&gt;pagination-&gt;next_max_tag_id); \tforeach(json_decode($response)-&gt;data as $item){ \t\t$title = $item-&gt;caption-&gt;text;\t\t\t\t\t\t\t \t\t$src = $item-&gt;images-&gt;low_resolution-&gt;url; \t\t$link = $item-&gt;link; \t\t$like = $item-&gt;likes-&gt;count; \t\t$im_id = $item-&gt;id; \t\tif ($like &lt; $_POST['kollikes']) { \t\t\t$images = 1; \t\t\techo htmlspecialchars($title).&quot;(@-a4h-@)&quot;.htmlspecialchars($link).&quot;(@-a4h-@)&quot;.htmlspecialchars($src).&quot;(@-a4h-@)&quot;.htmlspecialchars($im_id).&quot;(@-a4h-@)&quot;.$last_id;\t \t\t}\t \t} } <\/code><\/pre>\n<h4>\u0421\u0442\u0430\u0432\u0438\u043c \u043b\u0430\u0439\u043a\u0438<\/h4>\n<p>  \u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u0435\u0449\u0435 \u043f\u0440\u043e\u0449\u0435  <\/p>\n<pre><code class=\"php\">&lt;?php\t $id = $_POST['id']; $user_token = $_POST['token']; $url = &quot;https:\/\/api.instagram.com\/v1\/media\/&quot;.$id.&quot;\/likes&quot;; $access_token_parameters = array(         'access_token'                =&gt;     $user_token \t\t); \t\t$curl = curl_init($url); \t\tcurl_setopt($curl,CURLOPT_POST,true); \t\tcurl_setopt($curl,CURLOPT_POSTFIELDS,$access_token_parameters); \t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); \t\tcurl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); \t\tcurl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); \t\t$data = curl_exec($curl); \t\tcurl_close($curl); \t\t \t\t$data = json_decode($data, true); \t\t$result = $data['meta']['code']; \t\t$result2 = $data['meta']['error_message']; \t\techo $result.&quot;&lt;-=a4h=-&gt;&quot;.$result2; ?&gt; <\/code><\/pre>\n<h4>Profit<\/h4>\n<p>  \u041a\u043e\u0434 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u0435\u043d, \u0441\u043e\u0431\u0440\u0430\u043d \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0435, \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0436\u0438\u0432\u043e\u0433\u043e \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u0434\u0430\u0431\u044b \u043d\u0435 \u043f\u043e\u043f\u0430\u0441\u0442\u044c \u043f\u043e\u0434 \u0441\u0430\u043d\u043a\u0446\u0438\u0438. <br \/>  <a href=\"http:\/\/alexhit.com\/robot\/\">\u0414\u0435\u043c\u043e<\/a> \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/200472\/\"> http:\/\/habrahabr.ru\/post\/200472\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0418\u043d\u043e\u0433\u0434\u0430, \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0438\u043d\u043a\u0438 \u0440\u0430\u0434\u0438, \u0441\u0442\u0430\u0432\u043b\u044e \u0441\u0435\u0431\u0435 \u0437\u0430\u0434\u0430\u0447\u0438. \u041f\u0440\u043e\u0441\u0442\u043e \u0440\u0430\u0434\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430. \u0427\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u043d\u0438 \u0437\u0430\u0431\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0438 \u0431\u043e\u043b\u0435\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f. \u0422\u0430\u043a \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u0438 \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437. \u041d\u0430\u0447\u0438\u0442\u0430\u043b\u0441\u044f \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430\u0445 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044f \u0432 Instagram, \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0438\u0441\u043a \u0444\u043e\u0442\u043e \u043f\u043e \u0442\u0435\u0433\u0430\u043c \u0438 \u00ab\u043b\u0430\u0439\u043a\u0430\u043d\u044c\u0435\u00bb \u043e\u043d\u044b\u0445. \u0415\u0441\u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u0435\u0433\u0438 (\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0442\u0435, \u0447\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430), \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u0432\u0435\u0442\u043d\u044b\u0435 \u043b\u0430\u0439\u043a\u0438, \u043d\u043e \u0438 \u043d\u043e\u0432\u044b\u0445 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u043e\u0432 (\u0447\u0442\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u043b\u043e\u0441\u044c).<\/p>\n<h4>\u0417\u0430\u0434\u0430\u0447\u0430<\/h4>\n<p>  \u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u043e\u0431\u043e\u0442\u0430 (MySQl+php+js), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u0445\u043e\u0434\u0438\u043b \u0431\u044b \u0444\u043e\u0442\u043e \u043f\u043e \u0442\u0435\u0433\u0430\u043c \u0438 \u0441\u0442\u0430\u0432\u0438\u043b \u0438\u043c \u043b\u0430\u0439\u043a\u0438. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448 \u0440\u043e\u0431\u043e\u0442 \u043d\u0435 \u043f\u043e\u043f\u0430\u043b \u0432 \u0431\u0430\u043d.  <\/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-200472","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/200472","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=200472"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/200472\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=200472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=200472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=200472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}