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 71... Line 71...
71
	#啟動 session
71
	#啟動 session
72
	session_start();
72
	session_start();
73
 
73
 
74
	}#if end
74
	}#if end
75
 
75
 
-
 
76
#如果尚未取得 lib path
-
 
77
if(!isset($folderOfUsrLib)){
-
 
78
 
-
 
79
	#儲存要執行的指令
-
 
80
	$cmd="php -f ".escapeshellarg(pathinfo(__FILE__)["dirname"]."/../../bin/libexec/folderOfUsrLib.php");
-
 
81
 
-
 
82
	#取得 lib path
-
 
83
	exec($cmd,$output,$status);
-
 
84
 
-
 
85
	#如果執行失敗
-
 
86
	if($status!==0){
-
 
87
 
-
 
88
		#debug
-
 
89
		var_dump($cmd,$ouput,$status);
-
 
90
 
-
 
91
		#結束執行,回傳shell 1.
-
 
92
		exit(1);
-
 
93
 
-
 
94
		}#if end
-
 
95
 
-
 
96
	#儲存lib path
-
 
97
	$folderOfUsrLib=$output[0];
-
 
98
	
-
 
99
	}#if end
-
 
100
 
76
#匯入自建的php類別檔
101
#匯入自建的php類別檔
77
require_once("amazon.php"); #跟 amazon 互動的類別
102
require_once("amazon.php"); #跟 amazon 互動的類別
78
require_once("analyse.php"); #跟問卷整理分析有關的類別
103
require_once("analyse.php"); #跟問卷整理分析有關的類別
79
require_once("app.php"); #讓網頁變得更行動與app化
104
require_once("app.php"); #讓網頁變得更行動與app化
80
require_once("autoService.php"); #讓網頁可以管理系統的自動化服務
105
require_once("autoService.php"); #讓網頁可以管理系統的自動化服務
Line 173... Line 198...
173
define("qbpwcf_usock_path",$qbpwcf_usock_path);
198
define("qbpwcf_usock_path",$qbpwcf_usock_path);
174
 
199
 
175
#定義 Zero SSL API access key
200
#定義 Zero SSL API access key
176
define("zeroSSLapiKey",$zeroSSLapiKey);
201
define("zeroSSLapiKey",$zeroSSLapiKey);
177
 
202
 
-
 
203
#定義 Google Re CAPTCHA secert
-
 
204
define("googleReCAPTCHAsecret",$googleReCAPTCHAsecret);
-
 
205
 
178
/*
206
/*
179
 
207
 
180
#取得使用者拜訪的頁面
208
#取得使用者拜訪的頁面
181
#涵式說明:
209
#涵式說明:
182
#取得用戶端的資訊
210
#取得用戶端的資訊