signature.php 479 B

123456789101112131415161718192021222324
  1. <?php
  2. //Log::record("This is signatrue file.");
  3. //
  4. //$signature = $_GET["signature"];
  5. //$timestamp = $_GET["timestamp"];
  6. //$nonce = $_GET["nonce"];
  7. //$echostr = $_GET["echostr"];
  8. echo ('SUCCESS');
  9. //echo("{$echostr}");
  10. //
  11. //$token = 'stanleykinghelloworld';
  12. //$tmpArr = [$token, $timestamp, $nonce];
  13. //sort($tmpArr, SORT_STRING);
  14. //$tmpStr = implode( $tmpArr );
  15. //$tmpStr = sha1( $tmpStr );
  16. //
  17. //if( $tmpStr == $signature ){
  18. // return true;
  19. //}else{
  20. // return false;
  21. //}