{"action":"opened","number":143,"pull_request":{"url":"https://api.github.com/repos/futuresight/futurebb/pulls/143","id":49507173,"html_url":"https://github.com/futuresight/futurebb/pull/143","diff_url":"https://github.com/futuresight/futurebb/pull/143.diff","patch_url":"https://github.com/futuresight/futurebb/pull/143.patch","issue_url":"https://api.github.com/repos/futuresight/futurebb/issues/143","number":143,"state":"open","locked":false,"title":"Improved Memory Usage","user":{"login":"Cythral","id":13668709,"avatar_url":"https://avatars.githubusercontent.com/u/13668709?v=3","gravatar_id":"","url":"https://api.github.com/users/Cythral","html_url":"https://github.com/Cythral","followers_url":"https://api.github.com/users/Cythral/followers","following_url":"https://api.github.com/users/Cythral/following{/other_user}","gists_url":"https://api.github.com/users/Cythral/gists{/gist_id}","starred_url":"https://api.github.com/users/Cythral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cythral/subscriptions","organizations_url":"https://api.github.com/users/Cythral/orgs","repos_url":"https://api.github.com/users/Cythral/repos","events_url":"https://api.github.com/users/Cythral/events{/privacy}","received_events_url":"https://api.github.com/users/Cythral/received_events","type":"User","site_admin":false},"body":"Don't load a file into memory using file_get_contents if you're just going to echo it.  Use readfile to directly output contents to the output buffer without touching the memory. also it looks better (less typing).  Also fixed a couple messy areas such as retrieving the page info and outputting the content type for png/svg files.  Avoid switch statements wherever possible.","created_at":"2015-11-03T00:43:58Z","updated_at":"2015-11-03T00:43:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/futuresight/futurebb/pulls/143/commits","review_comments_url":"https://api.github.com/repos/futuresight/futurebb/pulls/143/comments","review_comment_url":"https://api.github.com/repos/futuresight/futurebb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/futuresight/futurebb/issues/143/comments","statuses_url":"https://api.github.com/repos/futuresight/futurebb/statuses/58c4ba80bdfecd91db05a6afd68a7f0a69f0106d","head":{"label":"Cythral:patch-1","ref":"patch-1","sha":"58c4ba80bdfecd91db05a6afd68a7f0a69f0106d","user":{"login":"Cythral","id":13668709,"avatar_url":"https://avatars.githubusercontent.com/u/13668709?v=3","gravatar_id":"","url":"https://api.github.com/users/Cythral","html_url":"https://github.com/Cythral","followers_url":"https://api.github.com/users/Cythral/followers","following_url":"https://api.github.com/users/Cythral/following{/other_user}","gists_url":"https://api.github.com/users/Cythral/gists{/gist_id}","starred_url":"https://api.github.com/users/Cythral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cythral/subscriptions","organizations_url":"https://api.github.com/users/Cythral/orgs","repos_url":"https://api.github.com/users/Cythral/repos","events_url":"https://api.github.com/users/Cythral/events{/privacy}","received_events_url":"https://api.github.com/users/Cythral/received_events","type":"User","site_admin":false},"repo":{"id":45431062,"name":"futurebb","full_name":"Cythral/futurebb","owner":{"login":"Cythral","id":13668709,"avatar_url":"https://avatars.githubusercontent.com/u/13668709?v=3","gravatar_id":"","url":"https://api.github.com/users/Cythral","html_url":"https://github.com/Cythral","followers_url":"https://api.github.com/users/Cythral/followers","following_url":"https://api.github.com/users/Cythral/following{/other_user}","gists_url":"https://api.github.com/users/Cythral/gists{/gist_id}","starred_url":"https://api.github.com/users/Cythral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cythral/subscriptions","organizations_url":"https://api.github.com/users/Cythral/orgs","repos_url":"https://api.github.com/users/Cythral/repos","events_url":"https://api.github.com/users/Cythral/events{/privacy}","received_events_url":"https://api.github.com/users/Cythral/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cythral/futurebb","description":"The forum system by FutureSight Technologies. A live sample can be seen at http://futuresight.org/forums","fork":true,"url":"https://api.github.com/repos/Cythral/futurebb","forks_url":"https://api.github.com/repos/Cythral/futurebb/forks","keys_url":"https://api.github.com/repos/Cythral/futurebb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cythral/futurebb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cythral/futurebb/teams","hooks_url":"https://api.github.com/repos/Cythral/futurebb/hooks","issue_events_url":"https://api.github.com/repos/Cythral/futurebb/issues/events{/number}","events_url":"https://api.github.com/repos/Cythral/futurebb/events","assignees_url":"https://api.github.com/repos/Cythral/futurebb/assignees{/user}","branches_url":"https://api.github.com/repos/Cythral/futurebb/branches{/branch}","tags_url":"https://api.github.com/repos/Cythral/futurebb/tags","blobs_url":"https://api.github.com/repos/Cythral/futurebb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cythral/futurebb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cythral/futurebb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cythral/futurebb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cythral/futurebb/statuses/{sha}","languages_url":"https://api.github.com/repos/Cythral/futurebb/languages","stargazers_url":"https://api.github.com/repos/Cythral/futurebb/stargazers","contributors_url":"https://api.github.com/repos/Cythral/futurebb/contributors","subscribers_url":"https://api.github.com/repos/Cythral/futurebb/subscribers","subscription_url":"https://api.github.com/repos/Cythral/futurebb/subscription","commits_url":"https://api.github.com/repos/Cythral/futurebb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cythral/futurebb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cythral/futurebb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cythral/futurebb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cythral/futurebb/contents/{+path}","compare_url":"https://api.github.com/repos/Cythral/futurebb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cythral/futurebb/merges","archive_url":"https://api.github.com/repos/Cythral/futurebb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cythral/futurebb/downloads","issues_url":"https://api.github.com/repos/Cythral/futurebb/issues{/number}","pulls_url":"https://api.github.com/repos/Cythral/futurebb/pulls{/number}","milestones_url":"https://api.github.com/repos/Cythral/futurebb/milestones{/number}","notifications_url":"https://api.github.com/repos/Cythral/futurebb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cythral/futurebb/labels{/name}","releases_url":"https://api.github.com/repos/Cythral/futurebb/releases{/id}","created_at":"2015-11-03T00:27:10Z","updated_at":"2015-11-03T00:27:11Z","pushed_at":"2015-11-03T00:43:07Z","git_url":"git://github.com/Cythral/futurebb.git","ssh_url":"git@github.com:Cythral/futurebb.git","clone_url":"https://github.com/Cythral/futurebb.git","svn_url":"https://github.com/Cythral/futurebb","homepage":"http://futurebb.futuresight.org","size":2098,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"futuresight:master","ref":"master","sha":"81930c2f50a77b81c9edd15748b8d0253c78cd75","user":{"login":"futuresight","id":5313156,"avatar_url":"https://avatars.githubusercontent.com/u/5313156?v=3","gravatar_id":"","url":"https://api.github.com/users/futuresight","html_url":"https://github.com/futuresight","followers_url":"https://api.github.com/users/futuresight/followers","following_url":"https://api.github.com/users/futuresight/following{/other_user}","gists_url":"https://api.github.com/users/futuresight/gists{/gist_id}","starred_url":"https://api.github.com/users/futuresight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futuresight/subscriptions","organizations_url":"https://api.github.com/users/futuresight/orgs","repos_url":"https://api.github.com/users/futuresight/repos","events_url":"https://api.github.com/users/futuresight/events{/privacy}","received_events_url":"https://api.github.com/users/futuresight/received_events","type":"Organization","site_admin":false},"repo":{"id":26616935,"name":"futurebb","full_name":"futuresight/futurebb","owner":{"login":"futuresight","id":5313156,"avatar_url":"https://avatars.githubusercontent.com/u/5313156?v=3","gravatar_id":"","url":"https://api.github.com/users/futuresight","html_url":"https://github.com/futuresight","followers_url":"https://api.github.com/users/futuresight/followers","following_url":"https://api.github.com/users/futuresight/following{/other_user}","gists_url":"https://api.github.com/users/futuresight/gists{/gist_id}","starred_url":"https://api.github.com/users/futuresight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futuresight/subscriptions","organizations_url":"https://api.github.com/users/futuresight/orgs","repos_url":"https://api.github.com/users/futuresight/repos","events_url":"https://api.github.com/users/futuresight/events{/privacy}","received_events_url":"https://api.github.com/users/futuresight/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/futuresight/futurebb","description":"The forum system by FutureSight Technologies. A live sample can be seen at http://futuresight.org/forums","fork":false,"url":"https://api.github.com/repos/futuresight/futurebb","forks_url":"https://api.github.com/repos/futuresight/futurebb/forks","keys_url":"https://api.github.com/repos/futuresight/futurebb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/futuresight/futurebb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/futuresight/futurebb/teams","hooks_url":"https://api.github.com/repos/futuresight/futurebb/hooks","issue_events_url":"https://api.github.com/repos/futuresight/futurebb/issues/events{/number}","events_url":"https://api.github.com/repos/futuresight/futurebb/events","assignees_url":"https://api.github.com/repos/futuresight/futurebb/assignees{/user}","branches_url":"https://api.github.com/repos/futuresight/futurebb/branches{/branch}","tags_url":"https://api.github.com/repos/futuresight/futurebb/tags","blobs_url":"https://api.github.com/repos/futuresight/futurebb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/futuresight/futurebb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/futuresight/futurebb/git/refs{/sha}","trees_url":"https://api.github.com/repos/futuresight/futurebb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/futuresight/futurebb/statuses/{sha}","languages_url":"https://api.github.com/repos/futuresight/futurebb/languages","stargazers_url":"https://api.github.com/repos/futuresight/futurebb/stargazers","contributors_url":"https://api.github.com/repos/futuresight/futurebb/contributors","subscribers_url":"https://api.github.com/repos/futuresight/futurebb/subscribers","subscription_url":"https://api.github.com/repos/futuresight/futurebb/subscription","commits_url":"https://api.github.com/repos/futuresight/futurebb/commits{/sha}","git_commits_url":"https://api.github.com/repos/futuresight/futurebb/git/commits{/sha}","comments_url":"https://api.github.com/repos/futuresight/futurebb/comments{/number}","issue_comment_url":"https://api.github.com/repos/futuresight/futurebb/issues/comments{/number}","contents_url":"https://api.github.com/repos/futuresight/futurebb/contents/{+path}","compare_url":"https://api.github.com/repos/futuresight/futurebb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/futuresight/futurebb/merges","archive_url":"https://api.github.com/repos/futuresight/futurebb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/futuresight/futurebb/downloads","issues_url":"https://api.github.com/repos/futuresight/futurebb/issues{/number}","pulls_url":"https://api.github.com/repos/futuresight/futurebb/pulls{/number}","milestones_url":"https://api.github.com/repos/futuresight/futurebb/milestones{/number}","notifications_url":"https://api.github.com/repos/futuresight/futurebb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/futuresight/futurebb/labels{/name}","releases_url":"https://api.github.com/repos/futuresight/futurebb/releases{/id}","created_at":"2014-11-14T01:43:07Z","updated_at":"2015-04-25T15:39:31Z","pushed_at":"2015-11-03T00:43:59Z","git_url":"git://github.com/futuresight/futurebb.git","ssh_url":"git@github.com:futuresight/futurebb.git","clone_url":"https://github.com/futuresight/futurebb.git","svn_url":"https://github.com/futuresight/futurebb","homepage":"http://futurebb.futuresight.org","size":2098,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":19,"forks":1,"open_issues":19,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/futuresight/futurebb/pulls/143"},"html":{"href":"https://github.com/futuresight/futurebb/pull/143"},"issue":{"href":"https://api.github.com/repos/futuresight/futurebb/issues/143"},"comments":{"href":"https://api.github.com/repos/futuresight/futurebb/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/futuresight/futurebb/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/futuresight/futurebb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/futuresight/futurebb/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/futuresight/futurebb/statuses/58c4ba80bdfecd91db05a6afd68a7f0a69f0106d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":19,"changed_files":1}}