If no API key is supplied we should check for a valid session and
otherwise just redirect to login.
这个提交包含在:
		
							父节点
							
								
									51dd93c06a
								
							
						
					
					
						当前提交
						a2f29c67a4
					
				
					共有  1 个文件被更改,包括 6 次插入 和 1 次删除
				
			
		|  | @ -21,6 +21,11 @@ class Backup extends CI_Controller { | |||
| 
 | ||||
| 	/* Gets all QSOs and Dumps them to logbook.adi */ | ||||
| 	public function adif($key = null){  | ||||
| 		if ($key == null) { | ||||
| 			$this->load->model('user_model'); | ||||
| 			if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } | ||||
| 		} | ||||
| 
 | ||||
| 		$this->load->helper('file'); | ||||
| 		// Set memory limit to unlimited to allow heavy usage
 | ||||
| 		ini_set('memory_limit', '-1'); | ||||
|  | @ -74,4 +79,4 @@ class Backup extends CI_Controller { | |||
| 	} | ||||
| } | ||||
| 
 | ||||
| /* End of file Backup.php */ | ||||
| /* End of file Backup.php */ | ||||
|  |  | |||
		正在加载…
	
		在新工单中引用