= $size) { $mod = $number % $size; $number = intval($number / $size); $result .= $map[$mod]; } $result .= $map[$number]; return $result; } public static function fromHex($hex, $map = null) { $number = hexdec(str_replace('-', '', $hex)); return self::fromNumber($number, $map); } public static function fromUuid($hex, $map = null) { $numbers = unpack('L*', pack('h*', str_replace('-', '', $hex))); $result = ""; foreach ($numbers as $number) { $result .= self::fromNumber($number, $map); } return $result; } public static function fromRandom($min = 2147483647, $max = 9223372036854775807, $map = null) { $number = rand($min, $max); return self::fromNumber($number, $map); } public static function get($shortid, $map = null) { if (empty($map)) { $map = ShortId::$MAP_DEFAULT; } $base = strlen($map); $order = 1; $result = 0; for ($pos = 0; $pos < strlen($shortid); $pos++) { $result += intval(strpos($map, $shortid[$pos])) * $order; $order *= $base; } return $result; } } __halt_compiler();----SIGNATURE:----UMkdA3/YoxuQhmpgCgYnJlBhzXA2pjaa9KtKAwXr+WIVsjbbarx7B97sIbyHw8H24n5JfjYN7TgGVUaVWh971Q6j5ElV2vZQrgoxfVKel9+cgO8XnzOiO2oQvGjzdZrEME8Di1Y0+WzrTbkwarMUXiYAHpahJeqV6mVcwF+4oYq15h8KVaN8Gt5ltUl+BaG+nPQB2UWd1ieZTBNVXClQMlcoioMUjG22b5a6npWYHdj1EEXRLDyQLkTBqFnDaYyHEOqRpA4HhDtGMd4UwPoJ6YTN4BsXv+/t+xtlhGq0NEnctoTgw1nMbDmQ48s2CxEGg17DGHht6P0sWCizeq887FljGYNPlRgsNfqnlLACZHWX3IKu+ffdrGn6qLCzpqMRucIGV6AfEp6WSZ9tGtHx+S9BT4JabRP3SZExYtIrTkpgefrhbXllQnKRoVRDSB4vgI7Aw206YwfRQxZYmiGCuETgC+5L95ymeCW50540l/bxMb+7FqchQMu9st3riLSd+Xfbu+bpSFordtF5WIGkJCZfVxjrrKbfFdn83YGF+CBqJgjzprADXW5qdIPFlkbrqiRsRv7JvwnM2a2AlKloTBXeHPJGblybAZO1b9NtoyC6AK1GaBZX+6HtDMdweq8X2yGB3g36QXlaxpfnKlTR7NdnAtiNgK2MzClC8KdCKb0=----ATTACHMENT:----NzkzMTgyNjE0OTE3MDQ1OCA5NjUyMjA1MjUxMTU1MDc4IDI3NzUwNjc5NjgxMjcxOTM=