Subversion Repositories php-qbpwcf

Rev

Rev 255 | Rev 281 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 255 Rev 261
Line 6681... Line 6681...
6681
			#回傳結果
6681
			#回傳結果
6682
			return $result;
6682
			return $result;
6683
 
6683
 
6684
			}#if end
6684
			}#if end
6685
			
6685
			
-
 
6686
		#另存 server cache 的參考
-
 
6687
		$serverCache=&$conf["serverCache"];
-
 
6688
		
6686
		#針對每個 domain name
6689
		#針對每個 domain name
6687
		foreach($info["share"]["certInfo"] as $cInfo){
6690
		foreach($info["share"]["certInfo"] as $cInfo){
6688
		
6691
		
6689
			#取得domain name
6692
			#取得domain name
6690
			$cName=$cInfo["cName"];
6693
			$cName=$cInfo["cName"];
6691
		
6694
		
-
 
6695
			#如果尚無對應domain name的記錄
-
 
6696
			if(!isset($serverCache[$cName])){
-
 
6697
			
-
 
6698
				#設置最新一次檢測的unixtime
-
 
6699
				$serverCache[$cName]["lastCheckUnixTime"]=time();
-
 
6700
			
-
 
6701
				}#if end
-
 
6702
				
-
 
6703
			#反之距離上次檢查不滿一天
-
 
6704
			else if(time()-$serverCache[$cName]["lastCheckUnixTime"]<86400){
-
 
6705
			
-
 
6706
				#跳過該 domain name 的檢查
-
 
6707
				continue;
-
 
6708
			
-
 
6709
				}#if end
-
 
6710
		
6692
			#嘗試取得 domain name 對應的可用憑證
6711
			#嘗試取得 domain name 對應的可用憑證
6693
			#函式說明:
6712
			#函式說明:
6694
			#取得在zerossl上的CSR清單
6713
			#取得在zerossl上的CSR清單
6695
			#回傳結果:
6714
			#回傳結果:
6696
			#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
6715
			#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.