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