Subversion Repositories qbpwcf-lib(archive)

Rev

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

Rev 950 Rev 952
Line 93... Line 93...
93
	#啟動 session
93
	#啟動 session
94
	session_start();
94
	session_start();
95
 
95
 
96
	}#if end
96
	}#if end
97
 
97
 
-
 
98
#如果尚未取得 lib path
-
 
99
if(!isset($folderOfUsrLib)){
-
 
100
 
-
 
101
	#儲存要執行的指令
-
 
102
	$cmd="php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../../bin/libexec/folderOfUsrLib.php");
-
 
103
 
-
 
104
	#取得 lib path
-
 
105
	exec($cmd,$output,$status);
-
 
106
 
-
 
107
	#如果執行失敗
-
 
108
	if($status!==0){
-
 
109
 
-
 
110
		#debug
-
 
111
		var_dump($cmd,$ouput,$status);
-
 
112
 
-
 
113
		#結束執行,回傳shell 1.
-
 
114
		exit(1);
-
 
115
 
-
 
116
		}#if end
-
 
117
 
-
 
118
	#儲存lib path
-
 
119
	$folderOfUsrLib=$output[0];
-
 
120
	
-
 
121
	}#if end
-
 
122
 
98
#匯入自建的php類別檔
123
#匯入自建的php類別檔
99
require_once("amazon.php"); #跟 amazon 互動的類別
124
require_once("amazon.php"); #跟 amazon 互動的類別
100
require_once("analyse.php"); #跟問卷整理分析有關的類別
125
require_once("analyse.php"); #跟問卷整理分析有關的類別
101
require_once("app.php"); #讓網頁變得更行動與app化
126
require_once("app.php"); #讓網頁變得更行動與app化
102
require_once("autoService.php"); #讓網頁可以管理系統的自動化服務
127
require_once("autoService.php"); #讓網頁可以管理系統的自動化服務
Line 265... Line 290...
265
define("qbpwcf_usock_path",$qbpwcf_usock_path);
290
define("qbpwcf_usock_path",$qbpwcf_usock_path);
266
 
291
 
267
#定義 Zero SSL API access key
292
#定義 Zero SSL API access key
268
define("zeroSSLapiKey",$zeroSSLapiKey);
293
define("zeroSSLapiKey",$zeroSSLapiKey);
269
 
294
 
-
 
295
#定義 Google Re CAPTCHA secert
-
 
296
define("googleReCAPTCHAsecret",$googleReCAPTCHAsecret);
-
 
297
 
270
/*
298
/*
271
 
299
 
272
#取得使用者拜訪的頁面
300
#取得使用者拜訪的頁面
273
#涵式說明:
301
#涵式說明:
274
#取得用戶端的資訊
302
#取得用戶端的資訊