This file contains 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 | |
/** | |
* JSON Web Token implementation | |
* | |
* Minimum implementation used by Realtime auth, based on this spec: | |
* http://self-issued.info/docs/draft-jones-json-web-token-01.html. | |
* | |
* @author Neuman Vong <[email protected]> | |
*/ | |
class JWT |
This file contains 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
static function urlAmigavel($nom_tag,$slug="-") { | |
$string = strtolower($nom_tag); | |
// Código ASCII das vogais | |
$ascii['a'] = range(224, 230); | |
$ascii['e'] = range(232, 235); | |
$ascii['i'] = range(236, 239); | |
$ascii['o'] = array_merge(range(242, 246), array(240, 248)); | |
$ascii['u'] = range(249, 252); | |