Subversion Repositories qbpwcf-lib(archive)

Rev

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

Rev 924 Rev 955
Line 23... Line 23...
23
*/
23
*/
24
 
24
 
25
#使用命名空間qbpwcf
25
#使用命名空間qbpwcf
26
namespace qbpwcf;
26
namespace qbpwcf;
27
 
27
 
-
 
28
#取得 lib path
-
 
29
exec("php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/libexec/folderOfUsrLib.php"),$output,$status);
-
 
30
 
-
 
31
#如果執行失敗
-
 
32
if($status!==0){
-
 
33
 
-
 
34
	#debug
-
 
35
	var_dump(__LINE__,$output);
-
 
36
 
-
 
37
	#結束執行,回傳shell 1.
-
 
38
	exit(1);
-
 
39
 
-
 
40
	}#if end
-
 
41
 
-
 
42
#儲存lib path
-
 
43
$folderOfUsrLib=$output[0];
-
 
44
 
28
#以該檔案的實際位置的 lib path 為 include path 首位
45
#以該檔案的實際位置的 lib path 為 include path 首位
-
 
46
$output=array();
29
exec("cd ".pathinfo(__FILE__)["dirname"]."/../lib/qbpwcf;pwd;",$output,$status);
47
exec("cd ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../".$folderOfUsrLib."/qbpwcf").";pwd;",$output,$status);
-
 
48
 
-
 
49
#如果執行失敗
-
 
50
if($status!==0){
-
 
51
 
-
 
52
	#debug
-
 
53
	var_dump(__LINE__,$output);
-
 
54
 
-
 
55
	#結束執行,回傳shell 1.
-
 
56
	exit(1);
-
 
57
 
-
 
58
	}#if end
-
 
59
 
-
 
60
#設置 include path 
30
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
61
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
31
 
62
 
32
#匯入外部套件
63
#匯入外部套件
33
include("allInOne.php");
64
include("allInOne.php");
34
 
65