From c394f5ac4d2f7911c4ac073a87016f13e5fc6023 Mon Sep 17 00:00:00 2001 From: Paul Adams Date: Sat, 23 Feb 2019 00:05:37 +0000 Subject: [PATCH] Removed additional directory created by mistake --- src/Endpoints/TLS.php.orig | 127 +++++++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 src/Endpoints/TLS.php.orig diff --git a/src/Endpoints/TLS.php.orig b/src/Endpoints/TLS.php.orig new file mode 100644 index 0000000..cb67298 --- /dev/null +++ b/src/Endpoints/TLS.php.orig @@ -0,0 +1,127 @@ +adapter = $adapter; + } + + public function enableTLS13($zoneID) + { + $return = $this->adapter->patch( + 'zones/' . $zoneID . '/settings/tls_1_3', + ['value' => 'on'] + ); + $body = json_decode($return->getBody()); + + if ($body->success) { + return true; + } + + return false; + } + + public function disableTLS13($zoneID) + { + $return = $this->adapter->patch( + 'zones/' . $zoneID . '/settings/tls_1_3', + ['value' => 'off'] + ); + $body = json_decode($return->getBody()); + + if ($body->success) { + return true; + } + + return false; + } + + + + public function changeMinimumTLSVersion($zoneID, $minimumVersion) + { + $return = $this->adapter->patch( + 'zones/' . $zoneID . '/settings/min_tls_version', + [ + 'value' => $minimumVersion + ] + ); + $body = json_decode($return->getBody()); + + if ($body->success) { + return true; + } + + return false; + } +<<<<<<< HEAD + public function getHTTPSRedirectStatus($zoneID) { + $return = $this->adapter->get( + 'zones/' . $zoneID . '/settings/always_use_https' + ); + $body = json_decode($return->getBody()); + + if ($body->success) { + return $body->result; + } + + return false; + } + public function getHTTPSRewritesStatus($zoneID) { + $return = $this->adapter->get( + 'zones/' . $zoneID . '/settings/automatic_https_rewrites' + ); + $body = json_decode($return->getBody()); + + if ($body->success) { + return $body->result; + } + + return false; + } + public function updateHTTPSRedirects($zoneID, $value) { + $return = $this->adapter->patch( + 'zones/' . $zoneID . '/settings/always_use_https', + [ + 'value' => $value + ] + ); + $body = json_decode($return->getBody()); + + if ($body->success) { + return true; + } + + return false; + } + public function updateHTTPSRewrites($zoneID, $value) { + $return = $this->adapter->patch( + 'zones/' . $zoneID . '/settings/automatic_https_rewrites', + [ + 'value' => $value + ] + ); + $body = json_decode($return->getBody()); + + if ($body->success) { + return true; + } + + return false; + } +======= +>>>>>>> 4694904b38fdf5f251559a473cecf77a63cf9202 +}