Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP8 Decoder for ionCube Encoder)
- *
- * @ Version : 8.1.0.9
- * @ Author : DeZender
- * @ Release on : 27.10.2023
- * @ Official site : http://DeZender.Net
- *
- */
- function metunic_diff_day($start = '', $end = '')
- {
- $dStart = new DateTime($start);
- $dEnd = new DateTime($end);
- $dDiff = $dStart->diff($dEnd);
- return $dDiff->days;
- }
- function metunic_crypt_chip($action, $string, $salt = '')
- {
- if ($salt != 'Wlk1TE5kQW1iSXh5WXI3RkU4aFpkZkRncWRMK1lhNkhrQWJ5UWd0VW0vekZSVERvOFljYldIc0lYSFVzWWg3Tw==') {
- return false;
- }
- $key = '0|.%J.MF4AMT$(.VU1J' . $salt . 'O1SbFd$|N83JG' . str_replace('www.', '', $_SERVER['SERVER_NAME']) . '.~&/-_f?fge&';
- $output = false;
- $encrypt_method = 'AES-256-CBC';
- if (is_null($key)) {
- $secret_key = 'NULL';
- }
- else {
- $secret_key = $key;
- }
- $secret_iv = '1iSXh5WXI3RkU4aF';
- $key = hash('sha256', $secret_key);
- $iv = substr(hash('sha256', $secret_iv), 0, 16);
- if ($action === 'encrypt') {
- $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);
- $output = base64_encode($output);
- }
- else if ($action === 'decrypt') {
- $output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);
- }
- return $output;
- }
- function metunic_get_license_file_data($reload = false)
- {
- global $temp_lfile;
- if ($reload || !$temp_lfile) {
- if (!file_exists(__DIR__ . DIRECTORY_SEPARATOR . 'LICENSE')) {
- return false;
- }
- $checkingFileData = file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'LICENSE');
- if ($checkingFileData) {
- $checkingFileData = metunic_crypt_chip('decrypt', $checkingFileData, 'Wlk1TE5kQW1iSXh5WXI3RkU4aFpkZkRncWRMK1lhNkhrQWJ5UWd0VW0vekZSVERvOFljYldIc0lYSFVzWWg3Tw==');
- if ($checkingFileData) {
- $temp_lfile = json_decode($checkingFileData, true);
- return $temp_lfile;
- }
- }
- }
- else {
- return $temp_lfile;
- }
- return false;
- }
- function metunic_license_run_check($licenseData = [])
- {
- if ($licenseData) {
- if (isset($licenseData['next-check-time'])) {
- $now_time = date('Y-m-d H:i:s');
- $next_time = date('Y-m-d H:i:s', strtotime($licenseData['next-check-time']));
- $difference = metunic_diff_day($next_time, $now_time);
- if ($difference < 2) {
- $now_time = strtotime(date('Y-m-d H:i:s'));
- $next_time = strtotime($next_time);
- if ($now_time < $next_time) {
- return false;
- }
- }
- }
- }
- return true;
- }
- function metunic_use_license_curl($address, &$error_msg)
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $address);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_TIMEOUT, 30);
- $result = @curl_exec($ch);
- if (curl_errno($ch)) {
- $error_msg = curl_error($ch);
- return false;
- }
- curl_close($ch);
- return $result;
- }
- function metunic_checkLicence($func = true)
- {
- global $licenceError;
- $license_data = metunic_get_license_file_data();
- $run_check = metunic_license_run_check($license_data);
- if ($run_check) {
- $domain = str_replace('www.', '', $_SERVER['SERVER_NAME']);
- $directory = __DIR__;
- if (isset($_SERVER['HTTP_CLIENT_IP'])) {
- $ip = $_SERVER['HTTP_CLIENT_IP'];
- }
- else if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
- $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
- ..............................................................................
- ............................................
- .......................
Add Comment
Please, Sign In to add comment