{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/comments/223127611","pull_request_review_id":162189017,"id":223127611,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzEyNzYxMQ==","diff_hunk":"@@ -0,0 +1,56 @@\n+<?php\n+    require_once('functions.php');\n+    require_once('temp_user.php');\n+\n+    $db = require_once('config/database.php');\n+    $con = connect_db($db);\n+\n+    if($con == false) {\n+        finish_script_new(mysqli_connect_error(), 500);\n+    }\n+\n+    $categories = get_categories($con);\n+\n+    $search = trim($_GET['q']) ?? '';\n+    $search_real = mysqli_real_escape_string($con, $search);\n+    $title = \"Результаты поиска по запросу '$search'\";\n+\n+    if (strlen($search_real) === 0) {\n+        $page_content = include_template('search.php', [\n+            'categories' => $categories,\n+            'lots' => []\n+        ]);\n+    } else {\n+        $sql_lots = \"SELECT l.id, l.name, l.initial_price, l.img_path, l.date_end, c.name AS category_name\n+            FROM lots l","path":"search.php","position":25,"original_position":25,"commit_id":"a16cfbec716718255b45a2265e917e6d3b4ca44b","original_commit_id":"a16cfbec716718255b45a2265e917e6d3b4ca44b","user":{"login":"caseycs","id":76095,"node_id":"MDQ6VXNlcjc2MDk1","avatar_url":"https://avatars0.githubusercontent.com/u/76095?v=4","gravatar_id":"","url":"https://api.github.com/users/caseycs","html_url":"https://github.com/caseycs","followers_url":"https://api.github.com/users/caseycs/followers","following_url":"https://api.github.com/users/caseycs/following{/other_user}","gists_url":"https://api.github.com/users/caseycs/gists{/gist_id}","starred_url":"https://api.github.com/users/caseycs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseycs/subscriptions","organizations_url":"https://api.github.com/users/caseycs/orgs","repos_url":"https://api.github.com/users/caseycs/repos","events_url":"https://api.github.com/users/caseycs/events{/privacy}","received_events_url":"https://api.github.com/users/caseycs/received_events","type":"User","site_admin":false},"body":"Отсюда вытекает хорошая ремарка - а проверяем ли мы, что лот активен на странице самого лота, прежде чем его показывать? Не уверен, что это есть в ТЗ, но такие вещи точно бросятся в глаза хорошим тестировщикам.","created_at":"2018-10-05T20:16:06Z","updated_at":"2018-10-05T20:16:06Z","html_url":"https://github.com/htmlacademy-php/260551-yeticave/pull/13#discussion_r223127611","pull_request_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/13","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/comments/223127611"},"html":{"href":"https://github.com/htmlacademy-php/260551-yeticave/pull/13#discussion_r223127611"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/13"}},"in_reply_to_id":223126398},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/13","id":220651271,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNjUxMjcx","html_url":"https://github.com/htmlacademy-php/260551-yeticave/pull/13","diff_url":"https://github.com/htmlacademy-php/260551-yeticave/pull/13.diff","patch_url":"https://github.com/htmlacademy-php/260551-yeticave/pull/13.patch","issue_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/issues/13","number":13,"state":"open","locked":false,"title":"Category&serch pages","user":{"login":"oleynichenko","id":29056673,"node_id":"MDQ6VXNlcjI5MDU2Njcz","avatar_url":"https://avatars0.githubusercontent.com/u/29056673?v=4","gravatar_id":"","url":"https://api.github.com/users/oleynichenko","html_url":"https://github.com/oleynichenko","followers_url":"https://api.github.com/users/oleynichenko/followers","following_url":"https://api.github.com/users/oleynichenko/following{/other_user}","gists_url":"https://api.github.com/users/oleynichenko/gists{/gist_id}","starred_url":"https://api.github.com/users/oleynichenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleynichenko/subscriptions","organizations_url":"https://api.github.com/users/oleynichenko/orgs","repos_url":"https://api.github.com/users/oleynichenko/repos","events_url":"https://api.github.com/users/oleynichenko/events{/privacy}","received_events_url":"https://api.github.com/users/oleynichenko/received_events","type":"User","site_admin":false},"body":"Это из дополнительных заданий. \r\n\r\nфункцию finish_script_new если можно так писать то потом заменю везде.\r\n\r\n> $min_lot_time кажется уже не нужна\r\n\r\nЗабыл убрать. В следующем сделаю.\r\n","created_at":"2018-10-05T10:13:28Z","updated_at":"2018-10-05T20:16:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"07448528c07f925a76cd40a0e4714fbddfc699a4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/13/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/13/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/issues/13/comments","statuses_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/statuses/a16cfbec716718255b45a2265e917e6d3b4ca44b","head":{"label":"oleynichenko:category-page","ref":"category-page","sha":"a16cfbec716718255b45a2265e917e6d3b4ca44b","user":{"login":"oleynichenko","id":29056673,"node_id":"MDQ6VXNlcjI5MDU2Njcz","avatar_url":"https://avatars0.githubusercontent.com/u/29056673?v=4","gravatar_id":"","url":"https://api.github.com/users/oleynichenko","html_url":"https://github.com/oleynichenko","followers_url":"https://api.github.com/users/oleynichenko/followers","following_url":"https://api.github.com/users/oleynichenko/following{/other_user}","gists_url":"https://api.github.com/users/oleynichenko/gists{/gist_id}","starred_url":"https://api.github.com/users/oleynichenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleynichenko/subscriptions","organizations_url":"https://api.github.com/users/oleynichenko/orgs","repos_url":"https://api.github.com/users/oleynichenko/repos","events_url":"https://api.github.com/users/oleynichenko/events{/privacy}","received_events_url":"https://api.github.com/users/oleynichenko/received_events","type":"User","site_admin":false},"repo":{"id":148437377,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg0MzczNzc=","name":"260551-yeticave","full_name":"oleynichenko/260551-yeticave","private":false,"owner":{"login":"oleynichenko","id":29056673,"node_id":"MDQ6VXNlcjI5MDU2Njcz","avatar_url":"https://avatars0.githubusercontent.com/u/29056673?v=4","gravatar_id":"","url":"https://api.github.com/users/oleynichenko","html_url":"https://github.com/oleynichenko","followers_url":"https://api.github.com/users/oleynichenko/followers","following_url":"https://api.github.com/users/oleynichenko/following{/other_user}","gists_url":"https://api.github.com/users/oleynichenko/gists{/gist_id}","starred_url":"https://api.github.com/users/oleynichenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleynichenko/subscriptions","organizations_url":"https://api.github.com/users/oleynichenko/orgs","repos_url":"https://api.github.com/users/oleynichenko/repos","events_url":"https://api.github.com/users/oleynichenko/events{/privacy}","received_events_url":"https://api.github.com/users/oleynichenko/received_events","type":"User","site_admin":false},"html_url":"https://github.com/oleynichenko/260551-yeticave","description":"Александр Олейниченко","fork":true,"url":"https://api.github.com/repos/oleynichenko/260551-yeticave","forks_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/forks","keys_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/teams","hooks_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/hooks","issue_events_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/issues/events{/number}","events_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/events","assignees_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/assignees{/user}","branches_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/branches{/branch}","tags_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/tags","blobs_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/git/refs{/sha}","trees_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/statuses/{sha}","languages_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/languages","stargazers_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/stargazers","contributors_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/contributors","subscribers_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/subscribers","subscription_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/subscription","commits_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/commits{/sha}","git_commits_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/git/commits{/sha}","comments_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/comments{/number}","issue_comment_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/issues/comments{/number}","contents_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/contents/{+path}","compare_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/merges","archive_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/downloads","issues_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/issues{/number}","pulls_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/pulls{/number}","milestones_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/milestones{/number}","notifications_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/labels{/name}","releases_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/releases{/id}","deployments_url":"https://api.github.com/repos/oleynichenko/260551-yeticave/deployments","created_at":"2018-09-12T07:07:38Z","updated_at":"2018-10-05T09:44:25Z","pushed_at":"2018-10-05T10:09:59Z","git_url":"git://github.com/oleynichenko/260551-yeticave.git","ssh_url":"git@github.com:oleynichenko/260551-yeticave.git","clone_url":"https://github.com/oleynichenko/260551-yeticave.git","svn_url":"https://github.com/oleynichenko/260551-yeticave","homepage":null,"size":1211,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-php:master","ref":"master","sha":"d05b5cc7b5136fdd8e8392f5dcf767dcba16a7dd","user":{"login":"htmlacademy-php","id":27206120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3MjA2MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/27206120?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-php","html_url":"https://github.com/htmlacademy-php","followers_url":"https://api.github.com/users/htmlacademy-php/followers","following_url":"https://api.github.com/users/htmlacademy-php/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-php/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-php/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-php/orgs","repos_url":"https://api.github.com/users/htmlacademy-php/repos","events_url":"https://api.github.com/users/htmlacademy-php/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-php/received_events","type":"Organization","site_admin":false},"repo":{"id":148437112,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg0MzcxMTI=","name":"260551-yeticave","full_name":"htmlacademy-php/260551-yeticave","private":false,"owner":{"login":"htmlacademy-php","id":27206120,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI3MjA2MTIw","avatar_url":"https://avatars1.githubusercontent.com/u/27206120?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-php","html_url":"https://github.com/htmlacademy-php","followers_url":"https://api.github.com/users/htmlacademy-php/followers","following_url":"https://api.github.com/users/htmlacademy-php/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-php/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-php/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-php/orgs","repos_url":"https://api.github.com/users/htmlacademy-php/repos","events_url":"https://api.github.com/users/htmlacademy-php/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-php/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/htmlacademy-php/260551-yeticave","description":"Александр Олейниченко","fork":false,"url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave","forks_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/forks","keys_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/teams","hooks_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/events","assignees_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/tags","blobs_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/subscription","commits_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/merges","archive_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/downloads","issues_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/deployments","created_at":"2018-09-12T07:05:17Z","updated_at":"2018-10-05T09:03:39Z","pushed_at":"2018-10-05T10:13:29Z","git_url":"git://github.com/htmlacademy-php/260551-yeticave.git","ssh_url":"git@github.com:htmlacademy-php/260551-yeticave.git","clone_url":"https://github.com/htmlacademy-php/260551-yeticave.git","svn_url":"https://github.com/htmlacademy-php/260551-yeticave","homepage":"https://github.com/oleynichenko/260551-yeticave","size":1112,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/13"},"html":{"href":"https://github.com/htmlacademy-php/260551-yeticave/pull/13"},"issue":{"href":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/issues/13"},"comments":{"href":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-php/260551-yeticave/statuses/a16cfbec716718255b45a2265e917e6d3b4ca44b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"caseycs"}}