Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.10.0
- * @ Author : DeZender
- * @ Release on : 09.04.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function get_status($url, $app, $servername, $domain)
- {
- $cURL = curl_init();
- curl_setopt_array($cURL, [
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_SSL_VERIFYPEER => false,
- CURLOPT_SSL_VERIFYHOST => false,
- CURLOPT_USERAGENT => 'cURL Request',
- CURLOPT_URL => $url,
- CURLOPT_POST => 1,
- CURLOPT_POSTFIELDS => ['app' => $app, 'domain' => $domain, 'server' => $servername, 'ip' => $_SERVER['REMOTE_ADDR']]
- ]);
- $result = curl_exec($cURL);
- $erro = '';
- if ($result === false) {
- $erro = curl_error($cURL);
- }
- $response = curl_getinfo($cURL, CURLINFO_HTTP_CODE);
- $result = json_decode($result);
- curl_close($cURL);
- return (object) ['response' => $response, 'result' => $result, 'erro' => $erro];
- }
- function get_current_url()
- {
- $protocol = 'http';
- if (($_SERVER['SERVER_PORT'] == 443) || (!empty($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on'))) {
- $protocol .= 's';
- $protocol_port = $_SERVER['SERVER_PORT'];
- }
- else {
- $protocol_port = 80;
- }
- $host = $_SERVER['HTTP_HOST'];
- .................................................................
- .....................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement