Subversion Repositories qbpwcf-lib(archive)

Rev

Rev 945 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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