Subversion Repositories qbpwcf-lib(archive)

Rev

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

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