{"action":"created","comment":{"url":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/comments/38271132","id":38271132,"diff_hunk":"@@ -83,6 +81,66 @@ public function get_jsAction() {\n         $this->response->setContentType('text/javascript');\n         $this->view->pick('rotator/js');\n     }\n+    \n+    \n+    public function get_mobileAction(){\n+        $zone_id = $this->request->getQuery('zone_id', 'int');\n+        $key = $this->request->getQuery(sha1($_SERVER['HTTP_HOST']), 'string');\n+        \n+        if(!$zone_id OR $key !== base64_encode(sha1(sha1($_SERVER['HTTP_HOST'])))){","path":"app/controllers/RotatorController.php","position":28,"original_position":28,"commit_id":"4d818f0e42a9cfbb05c9f5ed960fad21dd48a55f","original_commit_id":"4d818f0e42a9cfbb05c9f5ed960fad21dd48a55f","user":{"login":"atnartur","id":5189110,"avatar_url":"https://avatars.githubusercontent.com/u/5189110?v=3","gravatar_id":"","url":"https://api.github.com/users/atnartur","html_url":"https://github.com/atnartur","followers_url":"https://api.github.com/users/atnartur/followers","following_url":"https://api.github.com/users/atnartur/following{/other_user}","gists_url":"https://api.github.com/users/atnartur/gists{/gist_id}","starred_url":"https://api.github.com/users/atnartur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atnartur/subscriptions","organizations_url":"https://api.github.com/users/atnartur/orgs","repos_url":"https://api.github.com/users/atnartur/repos","events_url":"https://api.github.com/users/atnartur/events{/privacy}","received_events_url":"https://api.github.com/users/atnartur/received_events","type":"User","site_admin":false},"body":"Как отслеживать источник у мобильных приложений?","created_at":"2015-08-30T12:21:37Z","updated_at":"2015-08-30T12:21:37Z","html_url":"https://github.com/braska/SimpleBannerRotator/pull/3#discussion_r38271132","pull_request_url":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/comments/38271132"},"html":{"href":"https://github.com/braska/SimpleBannerRotator/pull/3#discussion_r38271132"},"pull_request":{"href":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/3","id":43668447,"html_url":"https://github.com/braska/SimpleBannerRotator/pull/3","diff_url":"https://github.com/braska/SimpleBannerRotator/pull/3.diff","patch_url":"https://github.com/braska/SimpleBannerRotator/pull/3.patch","issue_url":"https://api.github.com/repos/braska/SimpleBannerRotator/issues/3","number":3,"state":"open","locked":false,"title":"Ротатор баннеров для мобильных приложений","user":{"login":"atnartur","id":5189110,"avatar_url":"https://avatars.githubusercontent.com/u/5189110?v=3","gravatar_id":"","url":"https://api.github.com/users/atnartur","html_url":"https://github.com/atnartur","followers_url":"https://api.github.com/users/atnartur/followers","following_url":"https://api.github.com/users/atnartur/following{/other_user}","gists_url":"https://api.github.com/users/atnartur/gists{/gist_id}","starred_url":"https://api.github.com/users/atnartur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atnartur/subscriptions","organizations_url":"https://api.github.com/users/atnartur/orgs","repos_url":"https://api.github.com/users/atnartur/repos","events_url":"https://api.github.com/users/atnartur/events{/privacy}","received_events_url":"https://api.github.com/users/atnartur/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-28T20:25:52Z","updated_at":"2015-08-30T12:21:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5090c2d24c5428703b973f96d2a9bfcd1a04a11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/3/commits","review_comments_url":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/3/comments","review_comment_url":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/braska/SimpleBannerRotator/issues/3/comments","statuses_url":"https://api.github.com/repos/braska/SimpleBannerRotator/statuses/4d818f0e42a9cfbb05c9f5ed960fad21dd48a55f","head":{"label":"atnartur:feat_mobile_rotator","ref":"feat_mobile_rotator","sha":"4d818f0e42a9cfbb05c9f5ed960fad21dd48a55f","user":{"login":"atnartur","id":5189110,"avatar_url":"https://avatars.githubusercontent.com/u/5189110?v=3","gravatar_id":"","url":"https://api.github.com/users/atnartur","html_url":"https://github.com/atnartur","followers_url":"https://api.github.com/users/atnartur/followers","following_url":"https://api.github.com/users/atnartur/following{/other_user}","gists_url":"https://api.github.com/users/atnartur/gists{/gist_id}","starred_url":"https://api.github.com/users/atnartur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atnartur/subscriptions","organizations_url":"https://api.github.com/users/atnartur/orgs","repos_url":"https://api.github.com/users/atnartur/repos","events_url":"https://api.github.com/users/atnartur/events{/privacy}","received_events_url":"https://api.github.com/users/atnartur/received_events","type":"User","site_admin":false},"repo":{"id":41565707,"name":"SimpleBannerRotator","full_name":"atnartur/SimpleBannerRotator","owner":{"login":"atnartur","id":5189110,"avatar_url":"https://avatars.githubusercontent.com/u/5189110?v=3","gravatar_id":"","url":"https://api.github.com/users/atnartur","html_url":"https://github.com/atnartur","followers_url":"https://api.github.com/users/atnartur/followers","following_url":"https://api.github.com/users/atnartur/following{/other_user}","gists_url":"https://api.github.com/users/atnartur/gists{/gist_id}","starred_url":"https://api.github.com/users/atnartur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atnartur/subscriptions","organizations_url":"https://api.github.com/users/atnartur/orgs","repos_url":"https://api.github.com/users/atnartur/repos","events_url":"https://api.github.com/users/atnartur/events{/privacy}","received_events_url":"https://api.github.com/users/atnartur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atnartur/SimpleBannerRotator","description":"ротатор баннеров","fork":true,"url":"https://api.github.com/repos/atnartur/SimpleBannerRotator","forks_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/forks","keys_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/teams","hooks_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/hooks","issue_events_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/issues/events{/number}","events_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/events","assignees_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/assignees{/user}","branches_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/branches{/branch}","tags_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/tags","blobs_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/git/refs{/sha}","trees_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/statuses/{sha}","languages_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/languages","stargazers_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/stargazers","contributors_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/contributors","subscribers_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/subscribers","subscription_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/subscription","commits_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/commits{/sha}","git_commits_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/git/commits{/sha}","comments_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/comments{/number}","issue_comment_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/issues/comments{/number}","contents_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/contents/{+path}","compare_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/merges","archive_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/downloads","issues_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/issues{/number}","pulls_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/pulls{/number}","milestones_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/milestones{/number}","notifications_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/labels{/name}","releases_url":"https://api.github.com/repos/atnartur/SimpleBannerRotator/releases{/id}","created_at":"2015-08-28T19:39:33Z","updated_at":"2015-08-28T19:39:34Z","pushed_at":"2015-08-28T21:15:41Z","git_url":"git://github.com/atnartur/SimpleBannerRotator.git","ssh_url":"git@github.com:atnartur/SimpleBannerRotator.git","clone_url":"https://github.com/atnartur/SimpleBannerRotator.git","svn_url":"https://github.com/atnartur/SimpleBannerRotator","homepage":"","size":1096,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"braska:master","ref":"master","sha":"de63482cbc80a9efa631f7116d932576e15f02f0","user":{"login":"braska","id":3268276,"avatar_url":"https://avatars.githubusercontent.com/u/3268276?v=3","gravatar_id":"","url":"https://api.github.com/users/braska","html_url":"https://github.com/braska","followers_url":"https://api.github.com/users/braska/followers","following_url":"https://api.github.com/users/braska/following{/other_user}","gists_url":"https://api.github.com/users/braska/gists{/gist_id}","starred_url":"https://api.github.com/users/braska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braska/subscriptions","organizations_url":"https://api.github.com/users/braska/orgs","repos_url":"https://api.github.com/users/braska/repos","events_url":"https://api.github.com/users/braska/events{/privacy}","received_events_url":"https://api.github.com/users/braska/received_events","type":"User","site_admin":false},"repo":{"id":31031368,"name":"SimpleBannerRotator","full_name":"braska/SimpleBannerRotator","owner":{"login":"braska","id":3268276,"avatar_url":"https://avatars.githubusercontent.com/u/3268276?v=3","gravatar_id":"","url":"https://api.github.com/users/braska","html_url":"https://github.com/braska","followers_url":"https://api.github.com/users/braska/followers","following_url":"https://api.github.com/users/braska/following{/other_user}","gists_url":"https://api.github.com/users/braska/gists{/gist_id}","starred_url":"https://api.github.com/users/braska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braska/subscriptions","organizations_url":"https://api.github.com/users/braska/orgs","repos_url":"https://api.github.com/users/braska/repos","events_url":"https://api.github.com/users/braska/events{/privacy}","received_events_url":"https://api.github.com/users/braska/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/braska/SimpleBannerRotator","description":"ротатор баннеров","fork":false,"url":"https://api.github.com/repos/braska/SimpleBannerRotator","forks_url":"https://api.github.com/repos/braska/SimpleBannerRotator/forks","keys_url":"https://api.github.com/repos/braska/SimpleBannerRotator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/braska/SimpleBannerRotator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/braska/SimpleBannerRotator/teams","hooks_url":"https://api.github.com/repos/braska/SimpleBannerRotator/hooks","issue_events_url":"https://api.github.com/repos/braska/SimpleBannerRotator/issues/events{/number}","events_url":"https://api.github.com/repos/braska/SimpleBannerRotator/events","assignees_url":"https://api.github.com/repos/braska/SimpleBannerRotator/assignees{/user}","branches_url":"https://api.github.com/repos/braska/SimpleBannerRotator/branches{/branch}","tags_url":"https://api.github.com/repos/braska/SimpleBannerRotator/tags","blobs_url":"https://api.github.com/repos/braska/SimpleBannerRotator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/braska/SimpleBannerRotator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/braska/SimpleBannerRotator/git/refs{/sha}","trees_url":"https://api.github.com/repos/braska/SimpleBannerRotator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/braska/SimpleBannerRotator/statuses/{sha}","languages_url":"https://api.github.com/repos/braska/SimpleBannerRotator/languages","stargazers_url":"https://api.github.com/repos/braska/SimpleBannerRotator/stargazers","contributors_url":"https://api.github.com/repos/braska/SimpleBannerRotator/contributors","subscribers_url":"https://api.github.com/repos/braska/SimpleBannerRotator/subscribers","subscription_url":"https://api.github.com/repos/braska/SimpleBannerRotator/subscription","commits_url":"https://api.github.com/repos/braska/SimpleBannerRotator/commits{/sha}","git_commits_url":"https://api.github.com/repos/braska/SimpleBannerRotator/git/commits{/sha}","comments_url":"https://api.github.com/repos/braska/SimpleBannerRotator/comments{/number}","issue_comment_url":"https://api.github.com/repos/braska/SimpleBannerRotator/issues/comments{/number}","contents_url":"https://api.github.com/repos/braska/SimpleBannerRotator/contents/{+path}","compare_url":"https://api.github.com/repos/braska/SimpleBannerRotator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/braska/SimpleBannerRotator/merges","archive_url":"https://api.github.com/repos/braska/SimpleBannerRotator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/braska/SimpleBannerRotator/downloads","issues_url":"https://api.github.com/repos/braska/SimpleBannerRotator/issues{/number}","pulls_url":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls{/number}","milestones_url":"https://api.github.com/repos/braska/SimpleBannerRotator/milestones{/number}","notifications_url":"https://api.github.com/repos/braska/SimpleBannerRotator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/braska/SimpleBannerRotator/labels{/name}","releases_url":"https://api.github.com/repos/braska/SimpleBannerRotator/releases{/id}","created_at":"2015-02-19T19:01:41Z","updated_at":"2015-03-04T09:10:06Z","pushed_at":"2015-08-29T23:35:48Z","git_url":"git://github.com/braska/SimpleBannerRotator.git","ssh_url":"git@github.com:braska/SimpleBannerRotator.git","clone_url":"https://github.com/braska/SimpleBannerRotator.git","svn_url":"https://github.com/braska/SimpleBannerRotator","homepage":"","size":1096,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/3"},"html":{"href":"https://github.com/braska/SimpleBannerRotator/pull/3"},"issue":{"href":"https://api.github.com/repos/braska/SimpleBannerRotator/issues/3"},"comments":{"href":"https://api.github.com/repos/braska/SimpleBannerRotator/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/braska/SimpleBannerRotator/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/braska/SimpleBannerRotator/statuses/4d818f0e42a9cfbb05c9f5ed960fad21dd48a55f"}}}}