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