Use Club Log CDN for cty.xml

Change the URL for collecting Club Log's cty.xml definitions to use https://cdn.clublog.org (Content Delivery Network, faster). Remove reference to secure.clublog.org and update string "Clublog" to be "Club Log".

Getting my hands dirty for the first time so very minor stuff!
这个提交包含在:
Michael G7VJR 2019-10-08 20:53:14 +01:00
父节点 5e2690cb97
当前提交 80145b4732
共有 3 个文件被更改,包括 7 次插入7 次删除

查看文件

@ -135,7 +135,7 @@ class Clublog extends CI_Controller {
function find_dxcc($callsign) { function find_dxcc($callsign) {
$clean_callsign = $this->security->xss_clean($callsign); $clean_callsign = $this->security->xss_clean($callsign);
// Live lookup against Clublogs API // Live lookup against Clublogs API
$url = "https://secure.clublog.org/dxcc?call=".$clean_callsign."&api=a11c3235cd74b88212ce726857056939d52372bd&full=1"; $url = "https://clublog.org/dxcc?call=".$clean_callsign."&api=a11c3235cd74b88212ce726857056939d52372bd&full=1";
$json = file_get_contents($url); $json = file_get_contents($url);
$data = json_decode($json, TRUE); $data = json_decode($json, TRUE);
@ -145,4 +145,4 @@ class Clublog extends CI_Controller {
} }
} }

查看文件

@ -148,7 +148,7 @@ class Update extends CI_Controller {
return $count; return $count;
} }
// Updates the DXCC & Exceptions from the Clublog Cty.xml file. // Updates the DXCC & Exceptions from the Club Log Cty.xml file.
public function dxcc() { public function dxcc() {
$this->update_status("Downloading file"); $this->update_status("Downloading file");
@ -161,7 +161,7 @@ class Update extends CI_Controller {
$this->migration->latest(); $this->migration->latest();
// Download latest file. // Download latest file.
$url = "https://secure.clublog.org/cty.php?api=a11c3235cd74b88212ce726857056939d52372bd"; $url = "https://cdn.clublog.org/cty.php?api=a11c3235cd74b88212ce726857056939d52372bd";
$gz = gzopen($url, 'r'); $gz = gzopen($url, 'r');
$data = ""; $data = "";

查看文件

@ -122,15 +122,15 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Clublog Email/Callsign</label> <label>Club Log Email/Callsign</label>
<input class="form-control" type="text" name="user_clublog_name" value="<?php if(isset($user_clublog_name)) { echo $user_clublog_name; } ?>" /> <input class="form-control" type="text" name="user_clublog_name" value="<?php if(isset($user_clublog_name)) { echo $user_clublog_name; } ?>" />
<div class="small">This is the Email or Callsign you use to login to Clublog</div></td> <div class="small">This is the Email or Callsign you use to login to Club Log</div></td>
<?php if(isset($userclublogname_error)) { echo "<div class=\"small error\">".$userclublogname_error."</div>"; } ?> <?php if(isset($userclublogname_error)) { echo "<div class=\"small error\">".$userclublogname_error."</div>"; } ?>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Clublog Password</label> <label>Club Log Password</label>
<input class="form-control" type="password" name="user_clublog_password" /> <input class="form-control" type="password" name="user_clublog_password" />
<?php if(isset($clublogpassword_error)) { echo "<div class=\"small error\">".$clublogpassword_error."</div>"; } else { ?> <?php if(isset($clublogpassword_error)) { echo "<div class=\"small error\">".$clublogpassword_error."</div>"; } else { ?>
<div class="small">Leave blank to keep existing password</div></td> <div class="small">Leave blank to keep existing password</div></td>