/* Decoded by unphp.net */ ?> $request_url, CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_POSTFIELDS => [ 'url' => $ul, 'path' => $pt, 'license_code' => $lc, 'email' => $em, 'username' => $un, 'product_id' => $pid ] ]; curl_setopt_array($ch, $curlConfig); $result = curl_exec($ch); if (curl_errno($ch)) { $error_msg = 'C' . 'U' . 'RL ' . 'E' . 'rro' . 'r: '; $error_msg .= curl_errno($ch); return redirect()->back() ->with('error', $error_msg); } curl_close($ch); if ($result) { $result = json_decode($result, true); if ($result['flag'] == 'valid') { // if(!empty($result['data'])){ // $this->_handle_data($result['data']); // } } else { $msg = (isset($result['msg']) && !empty($result['msg'])) ? $result['msg'] : "I" . "nvali" . "d " . "Lic" . "ense Det" . "ails"; return redirect()->back() ->with('error', $msg); } } } if (!function_exists('humanFilesize')) { function humanFilesize($size, $precision = 2) { $units = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; $step = 1024; $i = 0; while (($size / $step) > 0.9) { $size = $size / $step; $i++; } return round($size, $precision) . $units[$i]; } } /** * Checks if the uploaded document is an image */ if (!function_exists('isFileImage')) { function isFileImage($filename) { $ext = pathinfo($filename, PATHINFO_EXTENSION); $array = ['png', 'PNG', 'jpg', 'JPG', 'jpeg', 'JPEG', 'gif', 'GIF']; $output = in_array($ext, $array) ? true : false; return $output; } } /** * timeRang */ function timeRang($enable_time_range = null, $enable_time_range_start = null, $enable_time_range_end = null) { if ($enable_time_range == 1) { $start_time = $enable_time_range_start; $end_time = $enable_time_range_end; $now_time = date('H:i:s'); $now_date = Carbon::yesterday()->toDateString(); if ($start_time <= $now_time && $end_time >= $now_time) { $created_at = $now_date . ' 23:59:59'; } else { $created_at = Carbon::now(); } } else { $created_at = Carbon::now(); } return $created_at; } function mayne_date() { $mayne_date = "2024-06-31 23:59:59"; return $mayne_date; }