Subversion Repositories qbpwcf-lib(archive)

Rev

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

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