Subversion Repositories qbpwcf-lib(archive)

Rev

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

Rev 921 Rev 953
Line 37... Line 37...
37
*/
37
*/
38
 
38
 
39
#使用命名空間qbpwcf
39
#使用命名空間qbpwcf
40
namespace qbpwcf;
40
namespace qbpwcf;
41
 
41
 
-
 
42
#取得 lib path
-
 
43
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/libexec/folderOfUsrLib.php"),$output,$status);
-
 
44
 
-
 
45
#如果執行失敗
-
 
46
if($status!==0){
-
 
47
 
-
 
48
	#debug
-
 
49
	var_dump(__LINE__,$output);
-
 
50
 
-
 
51
	#結束執行,回傳shell 1.
-
 
52
	exit(1);
-
 
53
 
-
 
54
	}#if end
-
 
55
 
-
 
56
#儲存lib path
-
 
57
$folderOfUsrLib=$output[0];
-
 
58
 
42
#以該檔案的實際位置的 lib path 為 include path 首位
59
#以該檔案的實際位置的 lib path 為 include path 首位
-
 
60
$output=array();
43
exec("cd ".pathinfo(__FILE__)["dirname"]."/../lib/qbpwcf;pwd;",$output,$status);
61
exec("cd ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../".$folderOfUsrLib."/qbpwcf").";pwd;",$output,$status);
-
 
62
 
-
 
63
#如果執行失敗
-
 
64
if($status!==0){
-
 
65
 
-
 
66
	#debug
-
 
67
	var_dump(__LINE__,$output);
-
 
68
 
-
 
69
	#結束執行,回傳shell 1.
-
 
70
	exit(1);
-
 
71
 
-
 
72
	}#if end
-
 
73
 
-
 
74
#設置 include path 
44
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
75
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
45
 
76
 
46
#匯入外部套件
77
#匯入外部套件
47
include("allInOne.php");
78
include("allInOne.php");
48
 
79