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