Subversion Repositories php-qbpwcf

Rev

Rev 266 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 266 Rev 280
Line 2293... Line 2293...
2293
	#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
2293
	#$result["status"],執行是否正常,"true"代表正常,"false"代表不正常.
2294
	#$result["error"],錯誤訊息.
2294
	#$result["error"],錯誤訊息.
2295
	#$result["function"],當前執行的函數名稱.
2295
	#$result["function"],當前執行的函數名稱.
2296
	#$result["argu"],所使用的參數.
2296
	#$result["argu"],所使用的參數.
2297
	#$result["found"],是否有找到符合的檔案,"true"代表有;"false"代表沒有.
2297
	#$result["found"],是否有找到符合的檔案,"true"代表有;"false"代表沒有.
-
 
2298
	#$result["content"],阻擋IP的結果或有問題的IP資訊清單.
2298
	#$result["content"],找到的檔案陣列.
2299
	#$result["reason"][$ip],特定ip被阻擋的資訊.
2299
	#必填參數:
2300
	#必填參數:
2300
	#$conf["fileArgu"],字串,php變數__FILE__的內容,亦即該檔案在檔案系統的絕對路徑
2301
	#$conf["fileArgu"],字串,php變數__FILE__的內容,亦即該檔案在檔案系統的絕對路徑
2301
	$conf["cmd::blockAcctackIp"]["fileArgu"]=__FILE__;
2302
	$conf["cmd::blockAcctackIp"]["fileArgu"]=__FILE__;
2302
	#可省略參數:
2303
	#可省略參數:
2303
	#$conf["excludeIp"],字串陣列,白名單ip陣列.
2304
	#$conf["excludeIp"],字串陣列,白名單ip陣列.
Line 2329... Line 2330...
2329
		exit(1);
2330
		exit(1);
2330
 
2331
 
2331
		}#if end
2332
		}#if end
2332
 
2333
 
2333
	#如果有執行封鎖IP的情形
2334
	#如果有執行封鎖IP的情形
2334
	if(isset($blockAcctackIp["content"])){
2335
	if(isset($blockAcctackIp["reason"])){
2335
 
2336
 
2336
		#comment
2337
		#comment
2337
		echo "本次封鎖IP的結果如下:".PHP_EOL;
2338
		echo "本次封鎖IP的結果如下:".PHP_EOL;
2338
		var_dump($blockAcctackIp["content"]);
-
 
2339
		var_dump($blockAcctackIp["reason"]);
2339
		var_dump($blockAcctackIp["reason"]);
2340
 
2340
 
2341
		}#if end
2341
		}#if end
2342
 
2342
 
2343
	#睡一秒
2343
	#睡一秒