From afd09460aa3da111433dc417f8475c9886be8e55 Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 4 Sep 2025 05:29:30 +0000 Subject: [PATCH] Final-URL (still not 100% working // todos at DARC) --- application/controllers/Dcl.php | 4 ++-- application/models/Dcl_model.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/Dcl.php b/application/controllers/Dcl.php index 6076d2264..88bc3fa55 100644 --- a/application/controllers/Dcl.php +++ b/application/controllers/Dcl.php @@ -42,7 +42,7 @@ class Dcl extends CI_Controller { $this->load->view('dcl_views/key_import',$data); $this->load->view('interface_assets/footer'); } else { - redirect('https://dings.dcl.darc.de/token?wohin='.site_url().'/dcl/key_import'); + redirect('https://api.dcl.darc.de/api/v1/get-token?wohin='.site_url().'/dcl/key_import'); } } @@ -150,7 +150,7 @@ class Dcl extends CI_Controller { $data['qsos']=''; //The URL that accepts the file upload. - $url = 'https://dings.dcl.darc.de/api/adiImport'; // todo: change to final URL b4 release + $url = 'https://api.dcl.darc.de/api/v1/adif-import'; // todo: change to final URL b4 release //Initiate cURL $ch = curl_init(); diff --git a/application/models/Dcl_model.php b/application/models/Dcl_model.php index 449d5c2f1..84d667a29 100644 --- a/application/models/Dcl_model.php +++ b/application/models/Dcl_model.php @@ -55,7 +55,7 @@ class Dcl_model extends CI_Model { function get_dcl_info($token) { if (($token ?? '') != '') { try { - $dclUrl = 'https://dings.dcl.darc.de/api/getuserinfo/'.$token; + $dclUrl = 'https://api.dcl.darc.de/api/v1/get-userinfo/'.$token; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $dclUrl);