{"action":"created","comment":{"url":"https://api.github.com/repos/stfc/mimic/pulls/comments/49070397","id":49070397,"diff_hunk":"@@ -1,15 +1,15 @@\n <?php\n-\n-$DB_GEN_HOST      = $CONFIG['DB_GEN']['HOST'];\n-$DB_GEN_USER      = $CONFIG['DB_GEN']['USER'];\n-$DB_GEN_PASS      = $CONFIG['DB_GEN']['PASS'];\n-\n-$DB_BATCH_NAME    = $CONFIG['DB_GEN']['BATCH_NAME'];\n-\n-$DB_GEN_HANDLE = mysql_pconnect($DB_GEN_HOST, $DB_GEN_USER, $DB_GEN_PASS)\n-or trigger_error(\"Unable to open general database connection\", E_USER_ERROR);\n-\n-$DB_BATCH_HANDLE  = $DB_GEN_HANDLE;\n-\n-mysql_select_db($DB_BATCH_NAME, $DB_BATCH_HANDLE)\n-or trigger_error(\"Cannot use $DB_BATCH_NAME\", E_USER_ERROR);\n+\r\n+$DB_GEN_HOST      = $CONFIG['DB_GEN']['HOST'];\r\n+$DB_GEN_USER      = $CONFIG['DB_GEN']['USER'];\r\n+$DB_GEN_PASS      = $CONFIG['DB_GEN']['PASS'];\r\n+\r\n+$DB_BATCH_NAME    = $CONFIG['DB_GEN']['BATCH_NAME'];\r\n+\r\n+$DB_GEN_HANDLE = mysql_pconnect($DB_GEN_HOST, $DB_GEN_USER, $DB_GEN_PASS)\r\n+or error(\"Unable to connect to:\", $DB_GEN_HOST);\r\n+\r\n+$DB_BATCH_HANDLE  = $DB_GEN_HANDLE;\r\n+\r\n+mysql_select_db($DB_BATCH_NAME, $DB_BATCH_HANDLE)\r\n+or error(\"Cannot use:\", $DB_BATCH_NAME);\r","path":"inc/db-open.inc.php","position":29,"original_position":29,"commit_id":"57de8fe0260f53b44c6960393b60d0b390553594","original_commit_id":"57de8fe0260f53b44c6960393b60d0b390553594","user":{"login":"jrha","id":323309,"avatar_url":"https://avatars.githubusercontent.com/u/323309?v=3","gravatar_id":"","url":"https://api.github.com/users/jrha","html_url":"https://github.com/jrha","followers_url":"https://api.github.com/users/jrha/followers","following_url":"https://api.github.com/users/jrha/following{/other_user}","gists_url":"https://api.github.com/users/jrha/gists{/gist_id}","starred_url":"https://api.github.com/users/jrha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrha/subscriptions","organizations_url":"https://api.github.com/users/jrha/orgs","repos_url":"https://api.github.com/users/jrha/repos","events_url":"https://api.github.com/users/jrha/events{/privacy}","received_events_url":"https://api.github.com/users/jrha/received_events","type":"User","site_admin":false},"body":"Does the error this generates make sense?","created_at":"2016-01-07T13:04:03Z","updated_at":"2016-01-07T13:04:03Z","html_url":"https://github.com/stfc/mimic/pull/102#discussion_r49070397","pull_request_url":"https://api.github.com/repos/stfc/mimic/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/stfc/mimic/pulls/comments/49070397"},"html":{"href":"https://github.com/stfc/mimic/pull/102#discussion_r49070397"},"pull_request":{"href":"https://api.github.com/repos/stfc/mimic/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/stfc/mimic/pulls/102","id":55329520,"html_url":"https://github.com/stfc/mimic/pull/102","diff_url":"https://github.com/stfc/mimic/pull/102.diff","patch_url":"https://github.com/stfc/mimic/pull/102.patch","issue_url":"https://api.github.com/repos/stfc/mimic/issues/102","number":102,"state":"open","locked":false,"title":"Error handling","user":{"login":"GooBall","id":5050301,"avatar_url":"https://avatars.githubusercontent.com/u/5050301?v=3","gravatar_id":"","url":"https://api.github.com/users/GooBall","html_url":"https://github.com/GooBall","followers_url":"https://api.github.com/users/GooBall/followers","following_url":"https://api.github.com/users/GooBall/following{/other_user}","gists_url":"https://api.github.com/users/GooBall/gists{/gist_id}","starred_url":"https://api.github.com/users/GooBall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GooBall/subscriptions","organizations_url":"https://api.github.com/users/GooBall/orgs","repos_url":"https://api.github.com/users/GooBall/repos","events_url":"https://api.github.com/users/GooBall/events{/privacy}","received_events_url":"https://api.github.com/users/GooBall/received_events","type":"User","site_admin":false},"body":"* Every view will now display a neat warning in the bottom right of the screen if that particular view can't connect or retrieve data from it's source.\r\n* Fixes #97 ","created_at":"2016-01-07T11:51:46Z","updated_at":"2016-01-07T13:04:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0575d0aa04229155ff0b7753c6b8bb84686e326","assignee":{"login":"jrha","id":323309,"avatar_url":"https://avatars.githubusercontent.com/u/323309?v=3","gravatar_id":"","url":"https://api.github.com/users/jrha","html_url":"https://github.com/jrha","followers_url":"https://api.github.com/users/jrha/followers","following_url":"https://api.github.com/users/jrha/following{/other_user}","gists_url":"https://api.github.com/users/jrha/gists{/gist_id}","starred_url":"https://api.github.com/users/jrha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrha/subscriptions","organizations_url":"https://api.github.com/users/jrha/orgs","repos_url":"https://api.github.com/users/jrha/repos","events_url":"https://api.github.com/users/jrha/events{/privacy}","received_events_url":"https://api.github.com/users/jrha/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/stfc/mimic/milestones/7","html_url":"https://github.com/stfc/mimic/milestones/1.3.0%20(release)","labels_url":"https://api.github.com/repos/stfc/mimic/milestones/7/labels","id":1294053,"number":7,"title":"1.3.0 (release)","description":"Have a version minified, compressed and ready to go! ","creator":{"login":"GooBall","id":5050301,"avatar_url":"https://avatars.githubusercontent.com/u/5050301?v=3","gravatar_id":"","url":"https://api.github.com/users/GooBall","html_url":"https://github.com/GooBall","followers_url":"https://api.github.com/users/GooBall/followers","following_url":"https://api.github.com/users/GooBall/following{/other_user}","gists_url":"https://api.github.com/users/GooBall/gists{/gist_id}","starred_url":"https://api.github.com/users/GooBall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GooBall/subscriptions","organizations_url":"https://api.github.com/users/GooBall/orgs","repos_url":"https://api.github.com/users/GooBall/repos","events_url":"https://api.github.com/users/GooBall/events{/privacy}","received_events_url":"https://api.github.com/users/GooBall/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":17,"state":"open","created_at":"2015-09-07T15:37:54Z","updated_at":"2016-01-07T11:51:46Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/stfc/mimic/pulls/102/commits","review_comments_url":"https://api.github.com/repos/stfc/mimic/pulls/102/comments","review_comment_url":"https://api.github.com/repos/stfc/mimic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stfc/mimic/issues/102/comments","statuses_url":"https://api.github.com/repos/stfc/mimic/statuses/57de8fe0260f53b44c6960393b60d0b390553594","head":{"label":"GooBall:errors","ref":"errors","sha":"57de8fe0260f53b44c6960393b60d0b390553594","user":{"login":"GooBall","id":5050301,"avatar_url":"https://avatars.githubusercontent.com/u/5050301?v=3","gravatar_id":"","url":"https://api.github.com/users/GooBall","html_url":"https://github.com/GooBall","followers_url":"https://api.github.com/users/GooBall/followers","following_url":"https://api.github.com/users/GooBall/following{/other_user}","gists_url":"https://api.github.com/users/GooBall/gists{/gist_id}","starred_url":"https://api.github.com/users/GooBall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GooBall/subscriptions","organizations_url":"https://api.github.com/users/GooBall/orgs","repos_url":"https://api.github.com/users/GooBall/repos","events_url":"https://api.github.com/users/GooBall/events{/privacy}","received_events_url":"https://api.github.com/users/GooBall/received_events","type":"User","site_admin":false},"repo":{"id":36376239,"name":"mimic","full_name":"GooBall/mimic","owner":{"login":"GooBall","id":5050301,"avatar_url":"https://avatars.githubusercontent.com/u/5050301?v=3","gravatar_id":"","url":"https://api.github.com/users/GooBall","html_url":"https://github.com/GooBall","followers_url":"https://api.github.com/users/GooBall/followers","following_url":"https://api.github.com/users/GooBall/following{/other_user}","gists_url":"https://api.github.com/users/GooBall/gists{/gist_id}","starred_url":"https://api.github.com/users/GooBall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GooBall/subscriptions","organizations_url":"https://api.github.com/users/GooBall/orgs","repos_url":"https://api.github.com/users/GooBall/repos","events_url":"https://api.github.com/users/GooBall/events{/privacy}","received_events_url":"https://api.github.com/users/GooBall/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GooBall/mimic","description":"Mimic Is Monitoring Information Concisely","fork":true,"url":"https://api.github.com/repos/GooBall/mimic","forks_url":"https://api.github.com/repos/GooBall/mimic/forks","keys_url":"https://api.github.com/repos/GooBall/mimic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GooBall/mimic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GooBall/mimic/teams","hooks_url":"https://api.github.com/repos/GooBall/mimic/hooks","issue_events_url":"https://api.github.com/repos/GooBall/mimic/issues/events{/number}","events_url":"https://api.github.com/repos/GooBall/mimic/events","assignees_url":"https://api.github.com/repos/GooBall/mimic/assignees{/user}","branches_url":"https://api.github.com/repos/GooBall/mimic/branches{/branch}","tags_url":"https://api.github.com/repos/GooBall/mimic/tags","blobs_url":"https://api.github.com/repos/GooBall/mimic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GooBall/mimic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GooBall/mimic/git/refs{/sha}","trees_url":"https://api.github.com/repos/GooBall/mimic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GooBall/mimic/statuses/{sha}","languages_url":"https://api.github.com/repos/GooBall/mimic/languages","stargazers_url":"https://api.github.com/repos/GooBall/mimic/stargazers","contributors_url":"https://api.github.com/repos/GooBall/mimic/contributors","subscribers_url":"https://api.github.com/repos/GooBall/mimic/subscribers","subscription_url":"https://api.github.com/repos/GooBall/mimic/subscription","commits_url":"https://api.github.com/repos/GooBall/mimic/commits{/sha}","git_commits_url":"https://api.github.com/repos/GooBall/mimic/git/commits{/sha}","comments_url":"https://api.github.com/repos/GooBall/mimic/comments{/number}","issue_comment_url":"https://api.github.com/repos/GooBall/mimic/issues/comments{/number}","contents_url":"https://api.github.com/repos/GooBall/mimic/contents/{+path}","compare_url":"https://api.github.com/repos/GooBall/mimic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GooBall/mimic/merges","archive_url":"https://api.github.com/repos/GooBall/mimic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GooBall/mimic/downloads","issues_url":"https://api.github.com/repos/GooBall/mimic/issues{/number}","pulls_url":"https://api.github.com/repos/GooBall/mimic/pulls{/number}","milestones_url":"https://api.github.com/repos/GooBall/mimic/milestones{/number}","notifications_url":"https://api.github.com/repos/GooBall/mimic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GooBall/mimic/labels{/name}","releases_url":"https://api.github.com/repos/GooBall/mimic/releases{/id}","created_at":"2015-05-27T15:24:22Z","updated_at":"2015-09-11T15:17:39Z","pushed_at":"2016-01-07T11:50:17Z","git_url":"git://github.com/GooBall/mimic.git","ssh_url":"git@github.com:GooBall/mimic.git","clone_url":"https://github.com/GooBall/mimic.git","svn_url":"https://github.com/GooBall/mimic","homepage":null,"size":860,"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":"stfc:master","ref":"master","sha":"733fff733cac0d5fd0b18ff6de8a9b1a8b2764e7","user":{"login":"stfc","id":3727936,"avatar_url":"https://avatars.githubusercontent.com/u/3727936?v=3","gravatar_id":"","url":"https://api.github.com/users/stfc","html_url":"https://github.com/stfc","followers_url":"https://api.github.com/users/stfc/followers","following_url":"https://api.github.com/users/stfc/following{/other_user}","gists_url":"https://api.github.com/users/stfc/gists{/gist_id}","starred_url":"https://api.github.com/users/stfc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stfc/subscriptions","organizations_url":"https://api.github.com/users/stfc/orgs","repos_url":"https://api.github.com/users/stfc/repos","events_url":"https://api.github.com/users/stfc/events{/privacy}","received_events_url":"https://api.github.com/users/stfc/received_events","type":"Organization","site_admin":false},"repo":{"id":7206262,"name":"mimic","full_name":"stfc/mimic","owner":{"login":"stfc","id":3727936,"avatar_url":"https://avatars.githubusercontent.com/u/3727936?v=3","gravatar_id":"","url":"https://api.github.com/users/stfc","html_url":"https://github.com/stfc","followers_url":"https://api.github.com/users/stfc/followers","following_url":"https://api.github.com/users/stfc/following{/other_user}","gists_url":"https://api.github.com/users/stfc/gists{/gist_id}","starred_url":"https://api.github.com/users/stfc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stfc/subscriptions","organizations_url":"https://api.github.com/users/stfc/orgs","repos_url":"https://api.github.com/users/stfc/repos","events_url":"https://api.github.com/users/stfc/events{/privacy}","received_events_url":"https://api.github.com/users/stfc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stfc/mimic","description":"Mimic Is Monitoring Information Concisely","fork":false,"url":"https://api.github.com/repos/stfc/mimic","forks_url":"https://api.github.com/repos/stfc/mimic/forks","keys_url":"https://api.github.com/repos/stfc/mimic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stfc/mimic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stfc/mimic/teams","hooks_url":"https://api.github.com/repos/stfc/mimic/hooks","issue_events_url":"https://api.github.com/repos/stfc/mimic/issues/events{/number}","events_url":"https://api.github.com/repos/stfc/mimic/events","assignees_url":"https://api.github.com/repos/stfc/mimic/assignees{/user}","branches_url":"https://api.github.com/repos/stfc/mimic/branches{/branch}","tags_url":"https://api.github.com/repos/stfc/mimic/tags","blobs_url":"https://api.github.com/repos/stfc/mimic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stfc/mimic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stfc/mimic/git/refs{/sha}","trees_url":"https://api.github.com/repos/stfc/mimic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stfc/mimic/statuses/{sha}","languages_url":"https://api.github.com/repos/stfc/mimic/languages","stargazers_url":"https://api.github.com/repos/stfc/mimic/stargazers","contributors_url":"https://api.github.com/repos/stfc/mimic/contributors","subscribers_url":"https://api.github.com/repos/stfc/mimic/subscribers","subscription_url":"https://api.github.com/repos/stfc/mimic/subscription","commits_url":"https://api.github.com/repos/stfc/mimic/commits{/sha}","git_commits_url":"https://api.github.com/repos/stfc/mimic/git/commits{/sha}","comments_url":"https://api.github.com/repos/stfc/mimic/comments{/number}","issue_comment_url":"https://api.github.com/repos/stfc/mimic/issues/comments{/number}","contents_url":"https://api.github.com/repos/stfc/mimic/contents/{+path}","compare_url":"https://api.github.com/repos/stfc/mimic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stfc/mimic/merges","archive_url":"https://api.github.com/repos/stfc/mimic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stfc/mimic/downloads","issues_url":"https://api.github.com/repos/stfc/mimic/issues{/number}","pulls_url":"https://api.github.com/repos/stfc/mimic/pulls{/number}","milestones_url":"https://api.github.com/repos/stfc/mimic/milestones{/number}","notifications_url":"https://api.github.com/repos/stfc/mimic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stfc/mimic/labels{/name}","releases_url":"https://api.github.com/repos/stfc/mimic/releases{/id}","created_at":"2012-12-17T14:42:53Z","updated_at":"2015-09-29T13:19:30Z","pushed_at":"2016-01-07T11:51:47Z","git_url":"git://github.com/stfc/mimic.git","ssh_url":"git@github.com:stfc/mimic.git","clone_url":"https://github.com/stfc/mimic.git","svn_url":"https://github.com/stfc/mimic","homepage":null,"size":1222,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stfc/mimic/pulls/102"},"html":{"href":"https://github.com/stfc/mimic/pull/102"},"issue":{"href":"https://api.github.com/repos/stfc/mimic/issues/102"},"comments":{"href":"https://api.github.com/repos/stfc/mimic/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/stfc/mimic/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/stfc/mimic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stfc/mimic/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/stfc/mimic/statuses/57de8fe0260f53b44c6960393b60d0b390553594"}}}}