added hamqth to name/city/iota
这个提交包含在:
		
							父节点
							
								
									c9741fa126
								
							
						
					
					
						当前提交
						256a29e25a
					
				
					共有  1 个文件被更改,包括 30 次插入 和 8 次删除
				
			
		|  | @ -164,13 +164,18 @@ class Logbook extends CI_Controller { | ||||||
|         $callbook = $this->qrz->search($callsign, $this->session->userdata('qrz_session_key')); |         $callbook = $this->qrz->search($callsign, $this->session->userdata('qrz_session_key')); | ||||||
|         echo $callbook['city']; |         echo $callbook['city']; | ||||||
| 
 | 
 | ||||||
|       } else { |       } elseif ($this->config->item('callbook') == "hamqth" && $this->config->item('hamqth_username') != null && $this->config->item('hamqth_password') != null) { | ||||||
|         // Lookup using hamli
 |         // Load the HamQTH library
 | ||||||
|         $this->load->library('hamli'); |         $this->load->library('hamqth'); | ||||||
| 
 | 
 | ||||||
|         $callbook = $this->hamli->callsign($callsign); |         if(!$this->session->userdata('hamqth_session_key')) { | ||||||
|  |           $hamqth_session_key = $this->hamqth->session($this->config->item('hamqth_username'), $this->config->item('hamqth_password')); | ||||||
|  |           $this->session->set_userdata('hamqth_session_key', $hamqth_session_key); | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|  |         $callbook = $this->hamqth->search($qra, $this->session->userdata('hamqth_session_key')); | ||||||
|         echo $callbook['city']; |         echo $callbook['city']; | ||||||
|  | 
 | ||||||
|       } |       } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | @ -188,6 +193,18 @@ class Logbook extends CI_Controller { | ||||||
|         $callbook = $this->qrz->search($callsign, $this->session->userdata('qrz_session_key')); |         $callbook = $this->qrz->search($callsign, $this->session->userdata('qrz_session_key')); | ||||||
|         echo $callbook['iota']; |         echo $callbook['iota']; | ||||||
| 
 | 
 | ||||||
|  |       } elseif ($this->config->item('callbook') == "hamqth" && $this->config->item('hamqth_username') != null && $this->config->item('hamqth_password') != null) { | ||||||
|  |         // Load the HamQTH library
 | ||||||
|  |         $this->load->library('hamqth'); | ||||||
|  | 
 | ||||||
|  |         if(!$this->session->userdata('hamqth_session_key')) { | ||||||
|  |           $hamqth_session_key = $this->hamqth->session($this->config->item('hamqth_username'), $this->config->item('hamqth_password')); | ||||||
|  |           $this->session->set_userdata('hamqth_session_key', $hamqth_session_key); | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         $callbook = $this->hamqth->search($qra, $this->session->userdata('hamqth_session_key')); | ||||||
|  |         echo $callbook['iota']; | ||||||
|  | 
 | ||||||
|       } |       } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | @ -212,13 +229,18 @@ class Logbook extends CI_Controller { | ||||||
| 
 | 
 | ||||||
|         $callbook = $this->qrz->search($callsign, $this->session->userdata('qrz_session_key')); |         $callbook = $this->qrz->search($callsign, $this->session->userdata('qrz_session_key')); | ||||||
|         echo $callbook['name']; |         echo $callbook['name']; | ||||||
|       } else { |       }  elseif ($this->config->item('callbook') == "hamqth" && $this->config->item('hamqth_username') != null && $this->config->item('hamqth_password') != null) { | ||||||
|         // Lookup using hamli
 |         // Load the HamQTH library
 | ||||||
|         $this->load->library('hamli'); |         $this->load->library('hamqth'); | ||||||
| 
 | 
 | ||||||
|         $callbook = $this->hamli->callsign($callsign); |         if(!$this->session->userdata('hamqth_session_key')) { | ||||||
|  |           $hamqth_session_key = $this->hamqth->session($this->config->item('hamqth_username'), $this->config->item('hamqth_password')); | ||||||
|  |           $this->session->set_userdata('hamqth_session_key', $hamqth_session_key); | ||||||
|  |         } | ||||||
| 
 | 
 | ||||||
|  |         $callbook = $this->hamqth->search($qra, $this->session->userdata('hamqth_session_key')); | ||||||
|         echo $callbook['name']; |         echo $callbook['name']; | ||||||
|  | 
 | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用