Second implementation with matrix_synapse_rest_auth #2

Merged
krombel merged 51 commits from second_implementation into master 2018-03-19 13:57:16 +01:00
Showing only changes of commit ff9969b04e - Show all commits

View File

@@ -36,7 +36,7 @@ class MatrixConnection
curl_setopt($handle, CURLOPT_POSTFIELDS, json_encode($send_message));
curl_setopt($handle, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
$response = exec_curl_request($handle);
$response = $this->exec_curl_request($handle);
return isset($response["event_id"]);
}
@@ -60,7 +60,7 @@ class MatrixConnection
curl_setopt($handle, CURLOPT_TIMEOUT, 60);
curl_setopt($handle, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
$res = exec_curl_request($handle);
$res = $this->exec_curl_request($handle);
return !(isset($res["errcode"]) && $res["errcode"] == "M_UNKNOWN");
}
@@ -87,7 +87,7 @@ class MatrixConnection
curl_setopt($handle, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
curl_setopt($handle, CURLOPT_POSTFIELDS, json_encode($data));
return exec_curl_request($handle);
return $this->exec_curl_request($handle);
}
function exec_curl_request($handle)