Subversion Repositories qbpwcf-lib(archive)

Rev

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

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