This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function getDigest($flexpost, $source_encoding=null) { | |
if ( array_key_exists('epoch_digest', $flexpost) ) | |
unset($flexpost['epoch_digest']); | |
ksort($flexpost); | |
$sorted_string = urldecode(strtr(http_build_query($flexpost), ['&' => '', '=' => ''])); | |
if ( $source_encoding ) | |
$sorted_string = mb_convert_encoding($sorted_string, self::UTF8_ENCODING, $source_encoding); | |
return hash_hmac('md5', $sorted_string, $this->hmac_key); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
SFML_VERSION='2.2' | |
GLEW_VERSION='1.10.0' | |
get_file() | |
{ | |
local file_to_get="$1" |
NewerOlder