Subversion Repositories php-qbpwcf

Rev

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

Rev 2 Rev 17
Line 775... Line 775...
775
		
775
		
776
			#異常結束執行
776
			#異常結束執行
777
			exit(1);
777
			exit(1);
778
		
778
		
779
			}#if end
779
			}#if end
780
			
-
 
781
		#如果是 rpm 模式
-
 
782
		if($mode==="rpm"){
-
 
783
		
780
		
784
			#移除 $libOfRootPath."/usr/lib64/qbpwcf/testCase"
-
 
785
			#函式說明:
-
 
786
			#移除檔案
-
 
787
			#回傳結果:
-
 
788
			#$result["status"],"true"代表移除成功,"false"代表移除失敗.
-
 
789
			#$result["error"],錯誤訊息陣列.
-
 
790
			#$result["warning"],警告訊息陣列.
-
 
791
			#$result["function"],當前執行的函數名稱.
-
 
792
			#$result["argu"],當前函式使用的參數.
-
 
793
			#必填參數:
-
 
794
			#$conf["fileAddress"],字串,要移除檔案的位置.
-
 
795
			$conf["fileAddress"]=$libOfRootPath."/usr/lib64/qbpwcf/testCase";
-
 
796
			#$conf["fileArgu"],字串,php變數__FILE__的內容,亦即該檔案在檔案系統的絕對路徑.
-
 
797
			$conf["fileArgu"]=__FILE__;
-
 
798
			#可省略參數:
-
 
799
			#$conf["commentsArray"],字串陣列,提示的文字描述,$conf["commentsArray"][$i]代表第($+1)行的描述.
-
 
800
			$conf["commentsArray"]=array("deleting ".$conf["fileAddress"]."...");
-
 
801
			#$conf["allowDelSymlink"],字串,預設為"false",不移除軟連結;"true"代表要移除軟連結.
-
 
802
			$conf["allowDelSymlink"]="true";
-
 
803
			#$conf["allowDelFolder"],字串,預設為"false",不移除目錄;"true"代表要移除目錄.
-
 
804
			$conf["allowDelFolder"]="true";
-
 
805
			#參考資料:
-
 
806
			#無.
-
 
807
			#備註:
-
 
808
			#無.
-
 
809
			$delFile=fileAccess::delFile($conf);
-
 
810
			unset($conf);
-
 
811
			
-
 
812
			#如果執行失敗
-
 
813
			if($delFile["status"]==="false"){
-
 
814
			
-
 
815
				#印出結果
-
 
816
				var_dump($delFile);
-
 
817
				
-
 
818
				#結束執行,回傳 shell 1
-
 
819
				exit(1);
-
 
820
			
-
 
821
				}#if end
-
 
822
			
-
 
823
			#移除 $libOfRootPath."/usr/lib64/qbpwcf/lib"
-
 
824
			#函式說明:
-
 
825
			#移除檔案
-
 
826
			#回傳結果:
-
 
827
			#$result["status"],"true"代表移除成功,"false"代表移除失敗.
-
 
828
			#$result["error"],錯誤訊息陣列.
-
 
829
			#$result["warning"],警告訊息陣列.
-
 
830
			#$result["function"],當前執行的函數名稱.
-
 
831
			#$result["argu"],當前函式使用的參數.
-
 
832
			#必填參數:
-
 
833
			#$conf["fileAddress"],字串,要移除檔案的位置.
-
 
834
			$conf["fileAddress"]=$libOfRootPath."/usr/lib64/qbpwcf/lib";
-
 
835
			#$conf["fileArgu"],字串,php變數__FILE__的內容,亦即該檔案在檔案系統的絕對路徑.
-
 
836
			$conf["fileArgu"]=__FILE__;
-
 
837
			#可省略參數:
-
 
838
			#$conf["commentsArray"],字串陣列,提示的文字描述,$conf["commentsArray"][$i]代表第($+1)行的描述.
-
 
839
			$conf["commentsArray"]=array("deleting ".$conf["fileAddress"]."...");
-
 
840
			#$conf["allowDelSymlink"],字串,預設為"false",不移除軟連結;"true"代表要移除軟連結.
-
 
841
			$conf["allowDelSymlink"]="true";
-
 
842
			#$conf["allowDelFolder"],字串,預設為"false",不移除目錄;"true"代表要移除目錄.
-
 
843
			$conf["allowDelFolder"]="true";
-
 
844
			#參考資料:
-
 
845
			#無.
-
 
846
			#備註:
-
 
847
			#無.
-
 
848
			$delFile=fileAccess::delFile($conf);
-
 
849
			unset($conf);
-
 
850
			
-
 
851
			#如果執行失敗
-
 
852
			if($delFile["status"]==="false"){
-
 
853
			
-
 
854
				#印出結果
-
 
855
				var_dump($delFile);
-
 
856
				
-
 
857
				#結束執行,回傳 shell 1
-
 
858
				exit(1);
-
 
859
			
-
 
860
				}#if end
-
 
861
			
-
 
862
			#移除 $libOfRootPath."/usr/lib64/qbpwcf/non-free-lib
-
 
863
			#函式說明:
-
 
864
			#移除檔案
-
 
865
			#回傳結果:
-
 
866
			#$result["status"],"true"代表移除成功,"false"代表移除失敗.
-
 
867
			#$result["error"],錯誤訊息陣列.
-
 
868
			#$result["warning"],警告訊息陣列.
-
 
869
			#$result["function"],當前執行的函數名稱.
-
 
870
			#$result["argu"],當前函式使用的參數.
-
 
871
			#必填參數:
-
 
872
			#$conf["fileAddress"],字串,要移除檔案的位置.
-
 
873
			$conf["fileAddress"]=$libOfRootPath."/usr/lib64/qbpwcf/non-free-lib";
-
 
874
			#$conf["fileArgu"],字串,php變數__FILE__的內容,亦即該檔案在檔案系統的絕對路徑.
-
 
875
			$conf["fileArgu"]=__FILE__;
-
 
876
			#可省略參數:
-
 
877
			#$conf["commentsArray"],字串陣列,提示的文字描述,$conf["commentsArray"][$i]代表第($+1)行的描述.
-
 
878
			$conf["commentsArray"]=array("deleting ".$conf["fileAddress"]."...");
-
 
879
			#$conf["allowDelSymlink"],字串,預設為"false",不移除軟連結;"true"代表要移除軟連結.
-
 
880
			$conf["allowDelSymlink"]="true";
-
 
881
			#$conf["allowDelFolder"],字串,預設為"false",不移除目錄;"true"代表要移除目錄.
-
 
882
			$conf["allowDelFolder"]="true";
-
 
883
			#參考資料:
-
 
884
			#無.
-
 
885
			#備註:
-
 
886
			#無.
-
 
887
			$delFile=fileAccess::delFile($conf);
-
 
888
			unset($conf);
-
 
889
			
-
 
890
			#如果執行失敗
-
 
891
			if($delFile["status"]==="false"){
-
 
892
			
-
 
893
				#印出結果
-
 
894
				var_dump($delFile);
-
 
895
				
-
 
896
				#結束執行,回傳 shell 1
-
 
897
				exit(1);
-
 
898
			
-
 
899
				}#if end
-
 
900
		
-
 
901
			}#if end
-
 
902
	
-
 
903
		break;
781
		break;
904
		
782
		
905
	#如果是 "link" mode
783
	#如果是 "link" mode
906
	case "link":
784
	case "link":
907
	
785