Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing debug msging #16

Merged
merged 1 commit into from
Feb 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static $bmlt_username = "";
static $bmlt_password = "";
```

You will need to also ensure that PHP has writes to write to this folder, in order to store the authentication cookie from the BMLT root server.
You will need to also ensure that PHP has write access to write to this folder, in order to store the authentication cookie from the BMLT root server.

**NOTE: This will not work for a sandwich server, because there is currently no concept of authentication.**

Expand Down
2 changes: 0 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ function getHelplineSchedule($service_body_int) {
auth_bmlt();
$bmlt_search_endpoint = getHelplineBMLTRootServer() . '/client_interface/json/?switcher=GetSearchResults&services='.$service_body_int.'&formats='.getFormat('HV').'&advanced_published=0';
$volunteers = json_decode(get($bmlt_search_endpoint));
var_dump($volunteers);
for ($v = 0; $v < count($volunteers); $v++) {
$volunteerInfo = new VolunteerInfo();
$volunteerInfo->title = $volunteers[$v]->meeting_name;
Expand Down Expand Up @@ -230,7 +229,6 @@ function auth_bmlt() {
}

function get($url) {
error_log($url);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
Expand Down