{"action":"created","comment":{"url":"https://api.github.com/repos/openemr/openemr/pulls/comments/118454470","pull_request_review_id":40247206,"id":118454470,"diff_hunk":"@@ -0,0 +1,101 @@\n+<?php\n+\n+/** Copyright (C) 2016 Sherwin Gaddis <sherwingaddis@gmail.com>\n+ *\n+ * LICENSE: This program is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation; either version 2\n+ * of the License, or (at your option) any later version.\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+ * GNU General Public License for more details.\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.\n+ *\n+ * @package OpenEMR\n+ * @author  Sherwin Gaddis <sherwingaddis@gmail.com>\n+ * @link    http://www.open-emr.org\n+ */\n+$fake_register_globals=false;\n+$sanitize_all_escapes=true;\t\n+ require_once(\"../globals.php\");\n+ \n+ echo xlt(\"trying\").\"<BR>\";\n+/* \n+$username = $GLOBALS['weno_account_id'];\n+$partner_password = $GLOBALS['weno_account_pass'];\n+$url = \"https://live.wenoexchange.com/wenox/GetListResponse.aspx?fr=1&fd=1\";\n+\n+$ch = curl_init();\n+curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 3);\n+curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n+curl_setopt($ch, CURLOPT_POST, FALSE);\n+\n+//set the URL to the protected file\n+curl_setopt($ch, CURLOPT_URL, $url);\n+curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);\n+curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n+//set Headers\n+$headers = array();\n+$headers[] = 'Authorization: Basic ' . base64_encode($username.\":\".$partner_password);\n+$headers[] = 'Content-type: application/x-www-form-urlencoded ';\n+\n+curl_setopt($ch, CURLOPT_HTTPHEADER,$headers);\n+\n+\n+//execute the request (the login)\n+$answer = curl_exec($ch);\n+\n+if(curl_error($ch)){\n+\techo curl_error($ch);\n+}\n+\n+curl_close($ch);\n+file_put_contents('FormularyFiles.zip', $answer);\n+\n+*/\n+$zip = new ZipArchive;\n+$zip->open('FormularyFiles.zip');\n+$zip->extractTo('./');\n+$zip->close();\n+\n+\n+\n+ $file = \"./Weno Exchange LLC/BSureFormulary.txt\";\n+ $lines = count(file($file));\n+ echo $lines. \"<br>\";\n+ \n+ \n+ $i = 2;\n+ do{\n+ $fileName = new SplFileObject($file);\n+ $fileName->seek($i);\n+ echo $fileName.\"<br>\";   //return the first line from file","path":"interface/weno/formularyUpdate.php","position":74,"original_position":74,"commit_id":"48a027e988ec50b00bd088de8f01f92812b97580","original_commit_id":"48a027e988ec50b00bd088de8f01f92812b97580","user":{"login":"bradymiller","id":278968,"avatar_url":"https://avatars2.githubusercontent.com/u/278968?v=3","gravatar_id":"","url":"https://api.github.com/users/bradymiller","html_url":"https://github.com/bradymiller","followers_url":"https://api.github.com/users/bradymiller/followers","following_url":"https://api.github.com/users/bradymiller/following{/other_user}","gists_url":"https://api.github.com/users/bradymiller/gists{/gist_id}","starred_url":"https://api.github.com/users/bradymiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradymiller/subscriptions","organizations_url":"https://api.github.com/users/bradymiller/orgs","repos_url":"https://api.github.com/users/bradymiller/repos","events_url":"https://api.github.com/users/bradymiller/events{/privacy}","received_events_url":"https://api.github.com/users/bradymiller/received_events","type":"User","site_admin":false},"body":"escape:\r\n``````\r\necho text($fileName) . \"<br>\";   //return the first line from file","created_at":"2017-05-25T09:56:12Z","updated_at":"2017-05-25T09:56:12Z","html_url":"https://github.com/openemr/openemr/pull/605#discussion_r118454470","pull_request_url":"https://api.github.com/repos/openemr/openemr/pulls/605","_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments/118454470"},"html":{"href":"https://github.com/openemr/openemr/pull/605#discussion_r118454470"},"pull_request":{"href":"https://api.github.com/repos/openemr/openemr/pulls/605"}}},"pull_request":{"url":"https://api.github.com/repos/openemr/openemr/pulls/605","id":113464347,"html_url":"https://github.com/openemr/openemr/pull/605","diff_url":"https://github.com/openemr/openemr/pull/605.diff","patch_url":"https://github.com/openemr/openemr/pull/605.patch","issue_url":"https://api.github.com/repos/openemr/openemr/issues/605","number":605,"state":"open","locked":false,"title":"New erx","user":{"login":"juggernautsei","id":834958,"avatar_url":"https://avatars2.githubusercontent.com/u/834958?v=3","gravatar_id":"","url":"https://api.github.com/users/juggernautsei","html_url":"https://github.com/juggernautsei","followers_url":"https://api.github.com/users/juggernautsei/followers","following_url":"https://api.github.com/users/juggernautsei/following{/other_user}","gists_url":"https://api.github.com/users/juggernautsei/gists{/gist_id}","starred_url":"https://api.github.com/users/juggernautsei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juggernautsei/subscriptions","organizations_url":"https://api.github.com/users/juggernautsei/orgs","repos_url":"https://api.github.com/users/juggernautsei/repos","events_url":"https://api.github.com/users/juggernautsei/events{/privacy}","received_events_url":"https://api.github.com/users/juggernautsei/received_events","type":"User","site_admin":false},"body":"Here are the new completions I believe will pass inspection...","created_at":"2017-03-30T15:58:48Z","updated_at":"2017-05-25T09:56:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a86555f365a1e66a59ce2b8b645f791c50d35bf3","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/openemr/openemr/pulls/605/commits","review_comments_url":"https://api.github.com/repos/openemr/openemr/pulls/605/comments","review_comment_url":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openemr/openemr/issues/605/comments","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/48a027e988ec50b00bd088de8f01f92812b97580","head":{"label":"juggernautsei:new_erx","ref":"new_erx","sha":"48a027e988ec50b00bd088de8f01f92812b97580","user":{"login":"juggernautsei","id":834958,"avatar_url":"https://avatars2.githubusercontent.com/u/834958?v=3","gravatar_id":"","url":"https://api.github.com/users/juggernautsei","html_url":"https://github.com/juggernautsei","followers_url":"https://api.github.com/users/juggernautsei/followers","following_url":"https://api.github.com/users/juggernautsei/following{/other_user}","gists_url":"https://api.github.com/users/juggernautsei/gists{/gist_id}","starred_url":"https://api.github.com/users/juggernautsei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juggernautsei/subscriptions","organizations_url":"https://api.github.com/users/juggernautsei/orgs","repos_url":"https://api.github.com/users/juggernautsei/repos","events_url":"https://api.github.com/users/juggernautsei/events{/privacy}","received_events_url":"https://api.github.com/users/juggernautsei/received_events","type":"User","site_admin":false},"repo":{"id":44408838,"name":"openemr","full_name":"juggernautsei/openemr","owner":{"login":"juggernautsei","id":834958,"avatar_url":"https://avatars2.githubusercontent.com/u/834958?v=3","gravatar_id":"","url":"https://api.github.com/users/juggernautsei","html_url":"https://github.com/juggernautsei","followers_url":"https://api.github.com/users/juggernautsei/followers","following_url":"https://api.github.com/users/juggernautsei/following{/other_user}","gists_url":"https://api.github.com/users/juggernautsei/gists{/gist_id}","starred_url":"https://api.github.com/users/juggernautsei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juggernautsei/subscriptions","organizations_url":"https://api.github.com/users/juggernautsei/orgs","repos_url":"https://api.github.com/users/juggernautsei/repos","events_url":"https://api.github.com/users/juggernautsei/events{/privacy}","received_events_url":"https://api.github.com/users/juggernautsei/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juggernautsei/openemr","description":"Mirror of official OpenEMR Sourceforge repository","fork":true,"url":"https://api.github.com/repos/juggernautsei/openemr","forks_url":"https://api.github.com/repos/juggernautsei/openemr/forks","keys_url":"https://api.github.com/repos/juggernautsei/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juggernautsei/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juggernautsei/openemr/teams","hooks_url":"https://api.github.com/repos/juggernautsei/openemr/hooks","issue_events_url":"https://api.github.com/repos/juggernautsei/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/juggernautsei/openemr/events","assignees_url":"https://api.github.com/repos/juggernautsei/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/juggernautsei/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/juggernautsei/openemr/tags","blobs_url":"https://api.github.com/repos/juggernautsei/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juggernautsei/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juggernautsei/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/juggernautsei/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juggernautsei/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/juggernautsei/openemr/languages","stargazers_url":"https://api.github.com/repos/juggernautsei/openemr/stargazers","contributors_url":"https://api.github.com/repos/juggernautsei/openemr/contributors","subscribers_url":"https://api.github.com/repos/juggernautsei/openemr/subscribers","subscription_url":"https://api.github.com/repos/juggernautsei/openemr/subscription","commits_url":"https://api.github.com/repos/juggernautsei/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/juggernautsei/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/juggernautsei/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/juggernautsei/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/juggernautsei/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/juggernautsei/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juggernautsei/openemr/merges","archive_url":"https://api.github.com/repos/juggernautsei/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juggernautsei/openemr/downloads","issues_url":"https://api.github.com/repos/juggernautsei/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/juggernautsei/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/juggernautsei/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/juggernautsei/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juggernautsei/openemr/labels{/name}","releases_url":"https://api.github.com/repos/juggernautsei/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/juggernautsei/openemr/deployments","created_at":"2015-10-16T20:26:07Z","updated_at":"2016-01-18T18:35:07Z","pushed_at":"2017-05-18T11:42:27Z","git_url":"git://github.com/juggernautsei/openemr.git","ssh_url":"git@github.com:juggernautsei/openemr.git","clone_url":"https://github.com/juggernautsei/openemr.git","svn_url":"https://github.com/juggernautsei/openemr","homepage":"http://open-emr.org/","size":340597,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"openemr:master","ref":"master","sha":"e207462d9f3d5209c269a49a17f860c5ebd6e1ae","user":{"login":"openemr","id":283089,"avatar_url":"https://avatars2.githubusercontent.com/u/283089?v=3","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"Organization","site_admin":false},"repo":{"id":679584,"name":"openemr","full_name":"openemr/openemr","owner":{"login":"openemr","id":283089,"avatar_url":"https://avatars2.githubusercontent.com/u/283089?v=3","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openemr/openemr","description":"OpenEMR is the most popular open source electronic health records and medical practice management solution. ONC certified with international usage, OpenEMR's goal is a superior alternative to its proprietary counterparts.","fork":false,"url":"https://api.github.com/repos/openemr/openemr","forks_url":"https://api.github.com/repos/openemr/openemr/forks","keys_url":"https://api.github.com/repos/openemr/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openemr/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openemr/openemr/teams","hooks_url":"https://api.github.com/repos/openemr/openemr/hooks","issue_events_url":"https://api.github.com/repos/openemr/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/openemr/openemr/events","assignees_url":"https://api.github.com/repos/openemr/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/openemr/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/openemr/openemr/tags","blobs_url":"https://api.github.com/repos/openemr/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openemr/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openemr/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/openemr/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/openemr/openemr/languages","stargazers_url":"https://api.github.com/repos/openemr/openemr/stargazers","contributors_url":"https://api.github.com/repos/openemr/openemr/contributors","subscribers_url":"https://api.github.com/repos/openemr/openemr/subscribers","subscription_url":"https://api.github.com/repos/openemr/openemr/subscription","commits_url":"https://api.github.com/repos/openemr/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/openemr/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/openemr/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/openemr/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/openemr/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/openemr/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openemr/openemr/merges","archive_url":"https://api.github.com/repos/openemr/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openemr/openemr/downloads","issues_url":"https://api.github.com/repos/openemr/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/openemr/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/openemr/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/openemr/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openemr/openemr/labels{/name}","releases_url":"https://api.github.com/repos/openemr/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/openemr/openemr/deployments","created_at":"2010-05-21T19:54:08Z","updated_at":"2017-05-22T07:12:59Z","pushed_at":"2017-05-25T07:48:43Z","git_url":"git://github.com/openemr/openemr.git","ssh_url":"git@github.com:openemr/openemr.git","clone_url":"https://github.com/openemr/openemr.git","svn_url":"https://github.com/openemr/openemr","homepage":"http://open-emr.org/","size":345029,"stargazers_count":504,"watchers_count":504,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":522,"mirror_url":null,"open_issues_count":132,"forks":522,"open_issues":132,"watchers":504,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/605"},"html":{"href":"https://github.com/openemr/openemr/pull/605"},"issue":{"href":"https://api.github.com/repos/openemr/openemr/issues/605"},"comments":{"href":"https://api.github.com/repos/openemr/openemr/issues/605/comments"},"review_comments":{"href":"https://api.github.com/repos/openemr/openemr/pulls/605/comments"},"review_comment":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openemr/openemr/pulls/605/commits"},"statuses":{"href":"https://api.github.com/repos/openemr/openemr/statuses/48a027e988ec50b00bd088de8f01f92812b97580"}}}}
{"actor":{"display_login":"bradymiller"}}