Check for valid downloaded LotW status report and report errors
appropriately
这个提交包含在:
		
							父节点
							
								
									9d76681c05
								
							
						
					
					
						当前提交
						bf4ffe47cd
					
				
					共有  1 个文件被更改,包括 3 次插入 和 0 次删除
				
			
		| 
						 | 
				
			
			@ -650,6 +650,9 @@ class Lotw extends CI_Controller {
 | 
			
		|||
					return "Temporary download directory ".dirname($file)." is not writable. Aborting!";
 | 
			
		||||
				}
 | 
			
		||||
				file_put_contents($file, file_get_contents($lotw_url));
 | 
			
		||||
				if (file_get_contents($file, false, null, 0, 39) != "ARRL Logbook of the World Status Report") {
 | 
			
		||||
					return "LotW downloading failed either due to it being down or incorrect logins.";
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				ini_set('memory_limit', '-1');
 | 
			
		||||
				$results = $this->loadFromFile($file, false);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		正在加载…
	
		在新工单中引用