Rev 1293 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1293 | Rev 1439 | ||
---|---|---|---|
Line 213... | Line 213... | ||
213 | $compressed = "0"; |
213 | $compressed = "0"; |
214 | $data2 = json_encode($data); |
214 | $data2 = json_encode($data); |
215 | } |
215 | } |
216 | 216 | ||
217 | $res = url_post_contents( |
217 | $res = url_post_contents( |
218 | 'https://oidplus.viathinksoft.com/reg2/query.php', |
218 | 'https://www.oidplus.com/reg2/query.php', |
219 | array( |
219 | array( |
220 | "query" => $query, |
220 | "query" => $query, |
221 | "compressed" => $compressed, |
221 | "compressed" => $compressed, |
222 | "data" => base64_encode($data2) |
222 | "data" => base64_encode($data2) |
223 | ) |
223 | ) |
Line 250... | Line 250... | ||
250 | * @return bool |
250 | * @return bool |
251 | * @throws OIDplusException |
251 | * @throws OIDplusException |
252 | */ |
252 | */ |
253 | protected function areWeRegistered(): bool { |
253 | protected function areWeRegistered(): bool { |
254 | // To check if we are registered. Check it "anonymously" (i.e. without revealing our system ID) |
254 | // To check if we are registered. Check it "anonymously" (i.e. without revealing our system ID) |
255 | $res = url_get_contents('https://oidplus.viathinksoft.com/reg2/query.php?query='.self::QUERY_LISTALLSYSTEMIDS_V1); |
255 | $res = url_get_contents('https://www.oidplus.com/reg2/query.php?query='.self::QUERY_LISTALLSYSTEMIDS_V1); |
256 | if ($res === false) return false; |
256 | if ($res === false) return false; |
257 | 257 | ||
258 | $json = @json_decode($res, true); |
258 | $json = @json_decode($res, true); |
259 | 259 | ||
260 | if (!$json) { |
260 | if (!$json) { |
Line 322... | Line 322... | ||
322 | $compressed = "0"; |
322 | $compressed = "0"; |
323 | $data2 = json_encode($data); |
323 | $data2 = json_encode($data); |
324 | } |
324 | } |
325 | 325 | ||
326 | $res = url_post_contents( |
326 | $res = url_post_contents( |
327 | 'https://oidplus.viathinksoft.com/reg2/query.php', |
327 | 'https://www.oidplus.com/reg2/query.php', |
328 | array( |
328 | array( |
329 | "query" => $query, |
329 | "query" => $query, |
330 | "compressed" => $compressed, |
330 | "compressed" => $compressed, |
331 | "data" => base64_encode($data2) |
331 | "data" => base64_encode($data2) |
332 | ) |
332 | ) |
Line 408... | Line 408... | ||
408 | $compressed = "0"; |
408 | $compressed = "0"; |
409 | $data2 = json_encode($data); |
409 | $data2 = json_encode($data); |
410 | } |
410 | } |
411 | 411 | ||
412 | $res = url_post_contents( |
412 | $res = url_post_contents( |
413 | 'https://oidplus.viathinksoft.com/reg2/query.php', |
413 | 'https://www.oidplus.com/reg2/query.php', |
414 | array( |
414 | array( |
415 | "query" => $query, |
415 | "query" => $query, |
416 | "compressed" => $compressed, |
416 | "compressed" => $compressed, |
417 | "data" => base64_encode($data2) |
417 | "data" => base64_encode($data2) |
418 | ) |
418 | ) |