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 23... Line 23...
23
*/
23
*/
24
 
24
 
25
#使用命名空間qbpwcf
25
#使用命名空間qbpwcf
26
namespace qbpwcf;
26
namespace qbpwcf;
27
 
27
 
28
#匯入外部套件
28
#以該檔案的實際位置的 lib path 為 include path 首位
-
 
29
exec("cd ".pathinfo(__FILE__)["dirname"]."/../../".$folderOfUsrLib.";pwd;",$output,$status);
29
include("../../allInOneForSOAP.php");
30
set_include_path($output[0].PATH_SEPARATOR.get_include_path());
30
 
31
 
-
 
32
#匯入外部套件
-
 
33
include("allInOneForSOAP.php");
31
 
34
 
32
#函式說明:
35
#函式說明:
33
#驗證 google reCAPTCH 回傳的驗證碼,當有post的response,key,val時,會進行處理.
36
#驗證 google reCAPTCH 回傳的驗證碼,當有post的response,key,val時,會進行處理.
34
#回傳結果:
37
#回傳結果:
35
#$result["status"],執行正常與否,"false"代表不正常;"true"代表正常.
38
#$result["status"],執行正常與否,"false"代表不正常;"true"代表正常.
Line 37... Line 40...
37
#$result["content"],語法.
40
#$result["content"],語法.
38
#$result["function"],函式名稱.
41
#$result["function"],函式名稱.
39
#$result["passed"],"true"代表通過驗證,"false"代表沒有通過驗證.
42
#$result["passed"],"true"代表通過驗證,"false"代表沒有通過驗證.
40
#必填參數:
43
#必填參數:
41
#$conf["secret"],字串,recaptcha 上對應 site 的 secret.
44
#$conf["secret"],字串,recaptcha 上對應 site 的 secret.
42
$conf["secret"]="6LfCWj0UAAAAAHTMkMN7zfh2dkfr3YwPNEk2Kttf";
45
$conf["secret"]=googleReCAPTCHAsecret;
43
#$conf["fileArgu"],字串,__FILE__的內容.
46
#$conf["fileArgu"],字串,__FILE__的內容.
44
$conf["fileArgu"]=__FILE__;
47
$conf["fileArgu"]=__FILE__;
45
#可省略參數:
48
#可省略參數:
46
#無
49
#無
47
#參考資料:
50
#參考資料: