123456789101112131415161718192021222324252627 |
- <?php
- //Log::record("This is signatrue file.");
- //
- //$signature = $_GET["signature"];
- //$timestamp = $_GET["timestamp"];
- //$nonce = $_GET["nonce"];
- //$echostr = $_GET["echostr"];
- $data = json_encode($_POST);
- $sign = $_SERVER['HTTP_SIGN'];
- Log::record("signature data : {$data}",Log::DEBUG);
- Log::record("HTTP_SIGN : {$sign}",Log::DEBUG);
- echo ('SUCCESS');
- //echo("{$echostr}");
- //
- //$token = 'stanleykinghelloworld';
- //$tmpArr = [$token, $timestamp, $nonce];
- //sort($tmpArr, SORT_STRING);
- //$tmpStr = implode( $tmpArr );
- //$tmpStr = sha1( $tmpStr );
- //
- //if( $tmpStr == $signature ){
- // return true;
- //}else{
- // return false;
- //}
|