You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					18 lines
				
				780 B
			
		
		
			
		
	
	
					18 lines
				
				780 B
			| 
								 
											3 years ago
										 
									 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
							 | 
						||
| 
								 | 
							
								    header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
							 | 
						||
| 
								 | 
							
								    header("Pragma: no-cache");
							 | 
						||
| 
								 | 
							
								    header("Content-Type:text/html;charset=utf-8");
							 | 
						||
| 
								 | 
							
								    header("Access-Control-Allow-Credentials: true");
							 | 
						||
| 
								 | 
							
								    header("Access-Control-Allow-Origin:*"); // 指定允许其他域名访问
							 | 
						||
| 
								 | 
							
								    header('Access-Control-Allow-Headers:Origin,X-Requested-With,Content-type,Accept'); // 响应头设置
							 | 
						||
| 
								 | 
							
								    header('Access-Control-Allow-Methods:GET, POST');  // 响应类型
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    date_default_timezone_set("Asia/Shanghai");
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    define('LOG_PATH_BASE', DATACENTER_ROOT.'/logs/');
							 | 
						||
| 
								 | 
							
								    define('LOG_TRACK_SAVE_PATH', LOG_PATH_BASE.'track/%s/%s.log'); // 监控日志的路径,如2014-02-14/1(检测类型).log
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 |