From de91e5dd055591ff86abd91ee42e9367198a0e33 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 4 Oct 2024 09:54:19 +0200 Subject: [PATCH] Use slash for separating version and correct indent --- application/controllers/Qrz.php | 4 ++-- application/libraries/Qrz.php | 10 +++++----- application/models/Logbook_model.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/application/controllers/Qrz.php b/application/controllers/Qrz.php index e9f82dc05..5cc904f51 100644 --- a/application/controllers/Qrz.php +++ b/application/controllers/Qrz.php @@ -39,7 +39,7 @@ class Qrz extends CI_Controller { curl_setopt( $ch, CURLOPT_HEADER, 0); curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 20); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt( $ch, CURLOPT_USERAGENT, 'Wavelog '.$this->optionslib->get_option('version')); + curl_setopt( $ch, CURLOPT_USERAGENT, 'Wavelog/'.$this->optionslib->get_option('version')); $content = curl_exec($ch); curl_close($ch); @@ -359,7 +359,7 @@ class Qrz extends CI_Controller { curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt( $ch, CURLOPT_HEADER, 0); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt( $ch, CURLOPT_USERAGENT, 'Wavelog '.$this->optionslib->get_option('version')); + curl_setopt( $ch, CURLOPT_USERAGENT, 'Wavelog/'.$this->optionslib->get_option('version')); $content = htmlspecialchars_decode(curl_exec($ch)); file_put_contents($file, $content); diff --git a/application/libraries/Qrz.php b/application/libraries/Qrz.php index db3be07d1..cde947c0e 100644 --- a/application/libraries/Qrz.php +++ b/application/libraries/Qrz.php @@ -19,8 +19,8 @@ class Qrz { curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); - curl_setopt($ch, CURLOPT_TIMEOUT, 10); - curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog '.$ci->optionslib->get_option('version')); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); + curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog/'.$ci->optionslib->get_option('version')); $xml = curl_exec($ch); curl_close($ch); @@ -45,8 +45,8 @@ class Qrz { curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); - curl_setopt($ch, CURLOPT_TIMEOUT, 10); - curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog '.$ci->optionslib->get_option('version')); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); + curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog/'.$ci->optionslib->get_option('version')); $xml = curl_exec($ch); curl_close($ch); @@ -75,7 +75,7 @@ class Qrz { curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 10); - curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog '.$ci->optionslib->get_option('version')); + curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog/'.$ci->optionslib->get_option('version')); $xml = curl_exec($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index ea9d06bf9..93c5e295c 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -994,7 +994,7 @@ class Logbook_model extends CI_Model { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog '.$this->optionslib->get_option('version')); + curl_setopt($ch, CURLOPT_USERAGENT, 'Wavelog/'.$this->optionslib->get_option('version')); $content = curl_exec($ch); if ($content) { if (stristr($content, 'RESULT=OK') || stristr($content, 'RESULT=REPLACE')) {